Chinaunix首页 | 论坛 | 博客
  • 博客访问: 327299
  • 博文数量: 53
  • 博客积分: 1037
  • 博客等级: 准尉
  • 技术积分: 1066
  • 用 户 组: 普通用户
  • 注册时间: 2012-05-13 14:09
文章分类

全部博文(53)

文章存档

2016年(1)

2015年(10)

2013年(2)

2012年(40)

分类: LINUX

2012-05-27 22:01:49

TeXLive 对于我来说是必须要安装的.

  1. sudo pacman -S texlive-most
  2. sudo pacman -S texlive-langcjk

安装过程中显示

texlive-core 的可选依赖
    perl: for many useful tools
    ruby: for old ConTeXT MkII and epspdf
    tk: for texdoctk
    python2: for dviasm
    ghostscript: for epstopdf, epspdf and other ConTeXt tools
    psutils: to manipulate the output of dvips
    t1utils: can be useful when installing Type1 fonts

一般 perl, python2 ghostscript 已经安装, 可以用 pacman 安装其他的软件包.

texlive-most 中包含了下面这么多宏包()

pacman -Q -l texlive-core
列出texlive-core 所安装的位置. 默认安装在 /usr/share/texmf-dist/...

安装完成, 可以测试一下, 将下面的代码保存为 test.tex, 然后运行 xelatex test, 即可生成 pdf 文件.

  1. \documentclass{ctexart}

  2. \begin{document}
  3. Hello, haifeng!

  4. # 你好!
  5. \end{document}
如果只有英文, 则是没有问题的. 但是要排版中文, 则很可能会出现下面的提示:

  1. kpathsea: Running mktexmf SimSun
  2. ! I can't find file `SimSun'.
  3. <*> ...:=ljfour; mag:=1; nonstopmode; input SimSun

  4. Please type another input file name
  5. ! Emergency stop.
  6. <*> ...:=ljfour; mag:=1; nonstopmode; input SimSun

  7. Transcript written on mfput.log.
  8. grep: SimSun.log: 没有那个文件或目录
  9. mktextfm: `mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input SimSun' failed to make SimSun.tfm.
  10. kpathsea: Appending font creation commands to missfont.log.


  11. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  12. !
  13. ! fontspec error: "font-not-found"
  14. !
  15. ! The font "SimSun" cannot be found.
  16. !
  17. ! See the fontspec documentation for further information.
  18. !
  19. ! For immediate help type H .
  20. !...............................................
此时, 按 x 退出.

解决办法参考安装字体一文, 主要是修改 /usr/share/texmf-dist/tex/latex/ctex/fontset/ 下面的几个文件.

阅读(3408) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~