The flow like following sequence.
Cwtex XXX.ctx (Must be big5 file) –> latex XXX.ctx.tex –> XXX.pdf
Why am I use cwtex to compile xxx.ctx.
I want to make a slide by using beam.
When I write Chinese into \section{}, can't use latex to compile it.
So I use cwtex to compile it, then latex to compile it.
This method work for me. So I share with all you guys.
Download cwtex-1.63g-linux-1.tar.bz2
tar cwtex-1.63g-linux-1.tar.bz2
cd texmf
Save following command as a bash script(ex: happy.sh).
Change permission to executable.
CWD=`pwd`
MYTEXMF=/usr/share/texmf
MYFONT=$MYTEXMF/fonts
BIBDIR=$MYTEXMF/bibtex/bst
T1DIR=$MYFONT/type1
TFMDIR=$MYFONT/tfm
MAPDIR=$MYFONT/map/dvips
LTXDIR=$MYTEXMF/tex/latex
mkdir -p $BIBDIR $T1DIR $TFMDIR $MAPDIR $LTXDIR
cd $CWD
cp -r bibtex/bst/cwtex $BIBDIR
cp bin/* /usr/bin/
cp -r dvips/cwtex $MAPDIR
cp -r fonts/tfm/cwtex $TFMDIR
cp -r fonts/type1/cwtex $T1DIR
cp -r tex/latex/cwtex $LTXDIR
cp -r cwtex $MYTEXMF
./happy.sh <— will start to install. [Ubuntu] Update tex system
sudo texhash
sudo update-updmap
sudo updmap-sys
Download 中文TEX投影片範本(ZIP壓縮檔)
If want open the BIG5 by using geany. Please ref 3
Practice to compile cwtex once.
cwtex math-bm.ctx (Must be big5 file) –> latex math-bm.ctx.tex –> math-bm.pdf
Reference:
1. Ubuntu 安裝 cwtex 系統(中文須為big5)
2. 中央研究院-數學研究所
3. [分享] Geany 的 使用心得
0 意見:
張貼留言