[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4779: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4781: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4782: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4783: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3887)
Gentoo Taiwan 討論區 • 檢視主題 - [分享]用Latex打中文

[分享]用Latex打中文

在顯示、輸入、處理中文上遇到什麼困難嗎?

版主: Forums Team

[分享]用Latex打中文

文章seifer » 週四 3月 17, 2005 9:01 am

#emerge tetex cjk-latex
#emerge kile (optional)

然後下載 http://edt1023.sayya.org/tex/mycjk/mkfont.sh

在使用mkfont.sh之前請先

#emerge ttf2pt1
#emerge t1utils

之後到 http://ttf2pt1.sourceforge.net/download.html 下載 ttf2pt1-chinese-3.4.0.tgz
解開後將*.map放到 /usr/share/doc/ttf2pt1-3.4.0/maps

最後把 mkfont.sh這檔案的 115列到117列 改為
if [ -d /usr/share/doc/ttf2pt1-3.4.0/maps ]
then
MAPDIR=/usr/share/doc/ttf2pt1-3.4.0/maps

接下來
$cd ~/Desktop
$mkdir aming
$cp /usr/share/fonts/arphicfonts/bsmi00lp.ttf aming
然後把mkfont.sh跟bsmi00lp.ttf擺在相同目錄 然後執行
$./mkfont.sh bsmi00lp.ttf aming

之後會產生 aming-afm, aming-tfm, aming-pfb, aming-enc 四個目錄
以及c00aming.fd, cid-x.map, aming.map 三個檔案

然後
TEXMF="/usr/share/texmf/"
以下出現的CJK目錄要自己建立
#cp aming-afm/* $TEXMF/fonts/afm/CJK
#cp aming-tfm/* $TEXMF/fonts/tfm/CJK
#cp aming-pfb/* $TEXMF/fonts/type1/CJK
#cp aming-enc/* $TEXMF/dvips/CJK
#cp c00aming.fd $TEXMF/tex/CJK/Bg5
#cp cid-x.map $TEXMF/dvipdfm/config
#cp aming.map $TEXMF/dvips/config

之後在 $TEXMF/dvips/config/config.ps 檔中加入:
p +aming.map

最後下指令
#texhash 即可

再來測試是否成功\r
$nano -w test.tex
然後加上

\documentclass[a4paper,10pt,landscape]{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{Bg5}{aming}
{\Huge中文測試成功 YA}
\end{CJK}
\end{document}

$bg5latex test.tex
$dvipdfm test.dvi
會得到 test.pdf 應該中文就出現了(我用adobe reader看的)

參考文件 http://edt1023.sayya.org/tex/mycjk/node5.html

測試過文鼎的字體都沒問題,新細明體跟標楷體在執行mkfont.sh 就出現錯誤訊息

若要裝第二種之後的字體的話,在
#cp cid-x.map $TEXMF/dvipdfm/config 這步驟
應該是 cat cid-x.map >> $TEXMF/dvipdfm/config/cid-x.map
-----------------------------------------------------------------
最後大家有推薦dvi reader可以看中文的嗎?
因為kdvi 看不到中文 :x
頭像
seifer
 
文章: 248
註冊時間: 週三 12月 10, 2003 7:54 am
來自: 台灣/台南

文章MengC » 週四 3月 17, 2005 2:14 pm

Java is not platform-independent, it is the platform.
頭像
MengC
 
文章: 47
註冊時間: 週三 1月 19, 2005 9:53 am
來自: Hong Kong

文章seifer » 週四 3月 17, 2005 3:45 pm

頭像
seifer
 
文章: 248
註冊時間: 週三 12月 10, 2003 7:54 am
來自: 台灣/台南

Re: [分享]用Latex打中文

文章edt1023 » 週四 3月 17, 2005 5:36 pm

Edward G.J. Lee
頭像
edt1023
 
文章: 29
註冊時間: 週日 7月 04, 2004 2:11 am
來自: 鄉下

文章seifer » 週六 3月 19, 2005 2:00 pm

請教一下,為什麼LaTex轉出的pdf 無法複製貼上中文呢? :roll:

OO.org 製作的可以
頭像
seifer
 
文章: 248
註冊時間: 週三 12月 10, 2003 7:54 am
來自: 台灣/台南

文章edt1023 » 週六 3月 19, 2005 10:25 pm

Edward G.J. Lee
頭像
edt1023
 
文章: 29
註冊時間: 週日 7月 04, 2004 2:11 am
來自: 鄉下

文章seifer » 週六 3月 19, 2005 10:37 pm

頭像
seifer
 
文章: 248
註冊時間: 週三 12月 10, 2003 7:54 am
來自: 台灣/台南

文章edt1023 » 週六 3月 19, 2005 11:14 pm

Edward G.J. Lee
頭像
edt1023
 
文章: 29
註冊時間: 週日 7月 04, 2004 2:11 am
來自: 鄉下

文章edt1023 » 週六 3月 19, 2005 11:52 pm

Edward G.J. Lee
頭像
edt1023
 
文章: 29
註冊時間: 週日 7月 04, 2004 2:11 am
來自: 鄉下

文章seifer » 週日 3月 20, 2005 2:15 am

頭像
seifer
 
文章: 248
註冊時間: 週三 12月 10, 2003 7:54 am
來自: 台灣/台南

文章edt1023 » 週日 3月 20, 2005 12:29 pm

Edward G.J. Lee
頭像
edt1023
 
文章: 29
註冊時間: 週日 7月 04, 2004 2:11 am
來自: 鄉下

文章seifer » 週二 3月 29, 2005 10:59 am

頭像
seifer
 
文章: 248
註冊時間: 週三 12月 10, 2003 7:54 am
來自: 台灣/台南


回到 Gentoo 中文化

誰在線上

正在瀏覽這個版面的使用者:沒有註冊會員 和 14 位訪客

cron