LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 927|回复: 1

我的latex配置,大家看看哪里有问题

[复制链接]
发表于 2005-1-18 17:27:16 | 显示全部楼层 |阅读模式
按照 http://www.linuxsir.cn/bbs/showt ... mp;page=2&pp=15 的方法
在我看来最简单, 最符合 Debian 理念的方法是:
1. apt-get install texmf-zh cjk-latex # 这会自动安装 gbkfonts, tetex 等
2. install-gbkfonts song.ttf song # 安装 gbk 字体, song.ttf 和 kai.ttf 分别为含有 宋体和楷体的 ttf 字库文件, 由用户提供
install-gbkfonts kai.ttf kai
3. pdfllatex test # 得到 test.pdf, test.tex 为你的 cjk latex 文件(比如原贴中的这个)
4. 当你不再需要前面所安装的 GBK 字体时:
remove-gbkfonts song
remove-gbkfonts kai
多干净的方法!

装完后,${TeX}/texmf/dvipdfm/config/目录下面相应字体的map文件都齐全。
转换以下test.tex文件:$pdflatex test
\documentclass{article}
\usepackage{CJK}
\begin{document}
\begin{CJK}{GBK}{song}
这是latex
\end{CJK}
\end{document}

错误信息如下:

  1. ===========================================
  2. Local configuration file hyphen.cfg used
  3. ===========================================
  4. (/usr/share/texmf/tex/generic/babel/hyphen.cfg
  5. File: hyphen.cfg 2001/03/01 v3.7h Babel language switching mechanism
  6. \l@american=\language0

  7. (/usr/share/texmf/tex/generic/hyphen/hyphen.tex)
  8. \l@USenglish=\language0
  9. \l@english=\language0
  10. \l@french=\language1

  11. (/usr/share/texmf/tex/generic/hyphen/frhyph.tex
  12. frhyph.tex - French hyphenation patterns (V2.11) <2002/01/16>)
  13. \l@patois=\language1
  14. \l@german=\language2

  15. (/usr/share/texmf/tex/generic/hyphen/dehypht.tex
  16. German Traditional Hyphenation Patterns `dehypht' Version 3.2a <1999/03/03>
  17. (Formerly known under the name `ghyph31' and `ghyphen'.))
  18. \l@austrian=\language2
  19. \l@ngerman=\language3

  20. (/usr/share/texmf/tex/generic/hyphen/dehyphn.tex
  21. New German Hyphenation Patterns `dehyphn' Rev.31 <2001-05-07> (WaS))
  22. \l@naustrian=\language3
  23. \l@bahasa=\language4

  24. (/usr/share/texmf/tex/generic/hyphen/inhyph.tex)
  25. \l@basque=\language5

  26. (/usr/share/texmf/tex/generic/hyphen/bahyph.tex)
  27. \l@catalan=\language6

  28. (/usr/share/texmf/tex/generic/hyphen/cahyph.tex
  29. Catalan Hyphenation Patterns `cahyphen' Version 1.11 <2003/07/15>)
  30. \l@croatian=\language7

  31. (/usr/share/texmf/tex/generic/hyphen/hrhyph.tex)
  32. \l@czech=\language8

  33. (/usr/share/texmf/tex/generic/hyphen/czhyph.tex
  34. (/usr/share/texmf/tex/csplain/t1code.tex Font encoding set to Cork.)
  35. The \^, \`, \', \v, " and \r expands to characters by Cork.
  36. (/usr/share/texmf/tex/csplain/czhyphen.tex))
  37. \l@danish=\language9

  38. (/usr/share/texmf/tex/generic/hyphen/dkhyphen.tex
  39. (/usr/share/texmf/tex/generic/hyphen/dkcommon.tex)
  40. (/usr/share/texmf/tex/generic/hyphen/dkspecial.tex)
  41. (/usr/share/texmf/tex/generic/hyphen/dkspecial.tex))
  42. \l@dutch=\language10

  43. (/usr/share/texmf/tex/generic/hyphen/nehyph.tex)
  44. \l@finnish=\language11

  45. (/usr/share/texmf/tex/generic/hyphen/fi8hyph.tex)
  46. \l@greek=\language12

  47. (/usr/share/texmf/tex/generic/hyphen/grhyph.tex
  48. Greek language hyphenation patterns)
  49. \l@icelandic=\language13

  50. (/usr/share/texmf/tex/generic/hyphen/icehyph.tex)
  51. \l@irish=\language14

  52. (/usr/share/texmf/tex/generic/hyphen/gahyph.tex
  53. Hyphenation patterns `gahyph.tex' Version 1.0 <2004/01/22>)
  54. \l@italian=\language15

  55. (/usr/share/texmf/tex/generic/hyphen/ithyph.tex)
  56. \l@latin=\language16

  57. (/usr/share/texmf/tex/generic/hyphen/lahyph.tex
  58. Latin Hyphenation Patterns `lahyph' Version 3.0b <2001/11/21>)
  59. \l@magyar=\language17

  60. (/usr/share/texmf/tex/generic/hyphen/huhyph.tex Hungarian hyphenation patterns)
  61. \l@norsk=\language18
  62. (/usr/share/texmf/tex/generic/hyphen/nohyph.tex Norsk hyphenation patterns)
  63. \l@norsk=\language19

  64. (/usr/share/texmf/tex/generic/hyphen/nohyphbc.tex Norsk hyphenation patterns)
  65. \l@portuges=\language20

  66. (/usr/share/texmf/tex/generic/hyphen/pt8hyph.tex
  67. portuguese hiphenation 8 bits and -)
  68. \l@romanian=\language21

  69. (/usr/share/texmf/tex/generic/hyphen/rohyphen.tex
  70. Romanian Hyphenation Patterns: `rohyphen' 1.1 <29.10.1996>)
  71. \l@russian=\language22

  72. (/usr/share/texmf/tex/generic/ruhyphen/ruhyphen.tex
  73. (/usr/share/texmf/tex/generic/ruhyphen/catkoi.tex)
  74. (/usr/share/texmf/tex/generic/ruhyphen/koi2t2a.tex)
  75. (/usr/share/texmf/tex/generic/ruhyphen/ruhyphal.tex)
  76. (/usr/share/texmf/tex/generic/ruhyphen/cyryoal.tex)
  77. (/usr/share/texmf/tex/generic/ruhyphen/hypht2.tex))
  78. \l@slovak=\language23

  79. (/usr/share/texmf/tex/generic/hyphen/skhyph.tex
  80. (/usr/share/texmf/tex/csplain/t1code.tex Font encoding set to Cork.)
  81. The \^, \`, \', \v, " and \r expands to characters by Cork.
  82. (/usr/share/texmf/tex/csplain/skhyphen.tex))
  83. \l@slovene=\language24

  84. (/usr/share/texmf/tex/generic/hyphen/sihyph23.tex
  85. Slovene Hyphenation Patterns `sihyph23' Version 2.3 <97/15/04>)
  86. \l@spanish=\language25

  87. (/usr/share/texmf/tex/generic/hyphen/sphyph.tex)
  88. \l@swedish=\language26

  89. (/usr/share/texmf/tex/generic/hyphen/sehyph.tex
  90. Swedish hyphenation patterns, Jan Michael Rynning, 1994-03-03.)
  91. \l@turkish=\language27

  92. (/usr/share/texmf/tex/generic/hyphen/trhyph.tex
  93. Turkish Hyphenation Patterns `trhyph' Version 1.0a <97/05/04>)
  94. \l@ukrainian=\language28

  95. (/usr/share/texmf/tex/generic/ukrhyph/ukrhyph.tex
  96. Ukrainian hyphenation patterns in t2a encoding
  97. (/usr/share/texmf/tex/generic/ukrhyph/catlcy.tex)
  98. (/usr/share/texmf/tex/generic/ukrhyph/lcy2t2a.tex)
  99. (/usr/share/texmf/tex/generic/ukrhyph/ukrhypmp.tex))
  100. \l@nohyphenation=\language29

  101. (/usr/share/texmf/tex/generic/hyphen/zerohyph.tex))
  102. =================================
  103. Applying patch file ltpatch.ltx
  104. =================================
  105. (/usr/share/texmf/tex/latex/base/ltpatch.ltx)
  106. ) )
  107. Beginning to dump on file pdflatex.fmt
  108. (format=pdflatex 2005.1.18)
  109. 4925 strings of total length 66052
  110. 46393 memory locations dumped; current usage is 144&42203
  111. 3160 multiletter control sequences
  112. \font\nullfont=nullfont
  113. \font\OMX/cmex/m/n/10=cmex10
  114. \font\tenln=line10
  115. \font\tenlnw=linew10
  116. \font\tencirc=lcircle10
  117. \font\tencircw=lcirclew10
  118. \font\OT1/cmr/m/n/5=cmr5
  119. \font\OT1/cmr/m/n/7=cmr7
  120. \font\OT1/cmr/m/n/10=cmr10
  121. \font\OML/cmm/m/it/5=cmmi5
  122. \font\OML/cmm/m/it/7=cmmi7
  123. \font\OML/cmm/m/it/10=cmmi10
  124. \font\OMS/cmsy/m/n/5=cmsy5
  125. \font\OMS/cmsy/m/n/7=cmsy7
  126. \font\OMS/cmsy/m/n/10=cmsy10
  127. 3633 words of font info for 14 preloaded fonts
  128. 198 hyphenation exceptions
  129. Hyphenation trie of length 120934 has 3173 ops out of 35111
  130.   103 for language 28
  131.   12 for language 27
  132.   127 for language 26
  133.   9 for language 25
  134.   71 for language 24
  135.   248 for language 23
  136.   135 for language 22
  137.   68 for language 21
  138.   7 for language 20
  139.   402 for language 19
  140.   220 for language 18
  141.   137 for language 17
  142.   26 for language 16
  143.   30 for language 15
  144.   229 for language 14
  145.   147 for language 13
  146.   6 for language 12
  147.   31 for language 11
  148.   265 for language 10
  149.   60 for language 9
  150.   63 for language 8
  151.   19 for language 7
  152.   21 for language 6
  153.   5 for language 5
  154.   21 for language 4
  155.   235 for language 3
  156.   207 for language 2
  157.   88 for language 1
  158.   181 for language 0
  159. No pages of output.
复制代码

如何解决?
发表于 2006-5-24 22:27:43 | 显示全部楼层
我也遇到了这个问题,不过现在总算是解决了。
原来texmf-zh不是debian官方源里的东西,于是就出现问题了。
apt-get remove --purge texmf-zh就行了。重新安装就行了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表