文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>在ArchLinux上安装Latex

在ArchLinux上安装Latex

时间:2006-10-01  来源:mylxiaoyi

(1) Install tetex package


# pacman -Sv tetex
   

(2) Prepare localized directory tree


# mkdir -p /usr/share/texmf-local/tex/latex/

# mkdir -p /usr/share/texmf-local/fonts/truefont/chinese
2

(3) Download latest CJK from the following link:


ftp://ftp.ffii.org/pub/cjk/
Uncompress the CJK package, then:
# mv cjk-version/texinput/ /usr/share/texmf-local/tex/latex/CJK

(4) Build tools:

gbkfonts, it requires header file from freetype 1.x
http://learn.tsinghua.edu.cn/homepage/015450/programs.html
ttf2pk, it is included in contrib/ of freetype 1.x, build it
statically since your system may have freetype2 installed!

# tar -xvf gbkfonts-linux-0.3.tar.gz
# cd gbkfonts-linux-0.3
# cp go appendconf gbkfonts /usr/bin

Edit the file,/usr/bin/go and comment the lines including the fonts you do not need or delete them.

(5) Build fonts from TTF fonts:


# cd /usr/share/texmf-local/
# cp YOURPATH/*.ttf fonts/truetype/chinese
# go fonts/truetype/chinese

Move generated file in the current directory (/usr/share/texmf-local) to correct location:


# mv cid-x.map dvipdfm/config/
# mv cjk.map dvips/config/
# cp ../texmf-dist/dvips/config/config.ps dvips/config/
# echo "p +cjk.map" >> dvips/config/config.ps
# mv pdftex.cfg pdftex/config/

(6) Clean up:


# cd tex/latex/CJK/
# rm -rf JIS/ KS/ SJIS/ thai/ CEF/
# /usr/share/texmf/bin/mktexlsr
# rm /usr/bin/go /usr/bin/appendconf /usr/bin/gbkfonts

Reference:http://www.linuxaid.com.cn/articles/5/2/529930305.shtml
相关阅读 更多 +
排行榜 更多 +
Office转换器

Office转换器

商务办公 下载
牛杂网

牛杂网

购物比价 下载
极上红颜

极上红颜

角色扮演 下载