LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: debianl

tetex中文环境完美解决UTF-8编码,现放出ebuild

[复制链接]
发表于 2006-9-14 16:46:05 | 显示全部楼层
我想问一下
1.为什么要生成type1字体?汉语很难看。
2.tetex2.0和3.0区别有多大?我现在是用2.0
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-9-14 21:50:21 | 显示全部楼层
Post by vliqi
我想问一下
1.为什么要生成type1字体?汉语很难看。


如果你要生成用于打印的ps文件的话,type1字体仍然是有用的,如果你只需要生成pdf文件,你可以不用type1字体!

Post by vliqi

2.tetex2.0和3.0区别有多大?我现在是用2.0


没用过tetex 2.0,我也不知道。
回复 支持 反对

使用道具 举报

发表于 2006-9-28 22:18:46 | 显示全部楼层
Post by debianl
首先。。你用pdflatex则无法生成内嵌TrueType字体。。再者用pdflatex生成的pdf文档是无法进行中文复制的。。这也是dvipmdfx诞生的原由。。看一下我第一帖就说明的问题。。产生pdf的过程:

latex xxx.tex
dvipdfmx -v xxx.dvi



看看上面我截的图,我统一使用了宋体,现在唯一美中不足的就是加粗的效果,所以一般大家都用黑体代替加粗的地方。

pdflatex是可以直接嵌入ttf字体的,另外,pdflatex用加载ccmap宏包,再利用type1字体,也是可以复制中文的,不过后者在gbk下试验成功;
回复 支持 反对

使用道具 举报

发表于 2006-9-28 22:22:28 | 显示全部楼层
tetex.20和3.0有个主要区别是利用updmap来管理字体映射
回复 支持 反对

使用道具 举报

发表于 2006-10-1 05:59:31 | 显示全部楼层
我的问题解决了,要先升级tetex,后升级dvipdfmx,是个次序问题。
回复 支持 反对

使用道具 举报

发表于 2007-1-13 08:24:32 | 显示全部楼层
刚emerge了gentoo-china-overlay里的latex-unicode-fonts-util, 但弄不懂到底要怎么做。
以普通用户:
  1. $instfonts.home /usr/share/fonts/cjkuni-fonts/
  2. /usr/bin/ttf2pt1
  3. /usr/bin/t1asm
  4. /usr/bin/extconv
  5. Generating subfonts of uming.tff from plane 0 to plane 255 ...
  6. [0]**** Cannot access fonts/truetype/uming.tff ****
  7. Can't open uming00.t1a: No such file or directory.
  8. Can't open uming00.afm: No such file or directory.
  9. afm2tfm: fatal: afm file `uming00.afm' not found.
  10. afm2tfm: fatal: afm file `uming00.afm' not found.
  11. grep: uming00.afm: No such file or directory
  12. [1]**** Cannot access fonts/truetype/uming.tff ****
  13. Can't open uming01.t1a: No such file or directory.
  14. Can't open uming01.afm: No such file or directory.
  15. afm2tfm: fatal: afm file `uming01.afm' not found.
  16. afm2tfm: fatal: afm file `uming01.afm' not found.
  17. grep: uming01.afm: No such file or directory
  18. [2]**** Cannot access fonts/truetype/uming.tff ****
  19. Can't open uming02.t1a: No such file or directory.
  20. Can't open uming02.afm: No such file or directory.
  21. afm2tfm: fatal: afm file `uming02.afm' not found.
  22. afm2tfm: fatal: afm file `uming02.afm' not found.
  23. grep: uming02.afm: No such file or directory
  24. [3]**** Cannot access fonts/truetype/uming.tff ****
  25. Can't open uming03.t1a: No such file or directory.
  26. Can't open uming03.afm: No such file or directory.
  27. afm2tfm: fatal: afm file `uming03.afm' not found.
  28. afm2tfm: fatal: afm file `uming03.afm' not found.
  29. grep: uming03.afm: No such file or directory
  30. [4]**** Cannot access fonts/truetype/uming.tff ****
  31. Can't open uming04.t1a: No such file or directory.
  32. Can't open uming04.afm: No such file or directory.
  33. afm2tfm: fatal: afm file `uming04.afm' not found.
  34. afm2tfm: fatal: afm file `uming04.afm' not found.
  35. grep: uming04.afm: No such file or directory
  36. [5]**** Cannot access fonts/truetype/uming.tff ****
  37. Can't open uming05.t1a: No such file or directory.
  38. Can't open uming05.afm: No such file or directory.
  39. afm2tfm: fatal: afm file `uming05.afm' not found.
  40. afm2tfm: fatal: afm file `uming05.afm' not found.
  41. grep: uming05.afm: No such file or directory
  42. [6]**** Cannot access fonts/truetype/uming.tff ****
  43. Can't open uming06.t1a: No such file or directory.
  44. Can't open uming06.afm: No such file or directory.
  45. afm2tfm: fatal: afm file `uming06.afm' not found.
  46. afm2tfm: fatal: afm file `uming06.afm' not found.
  47. grep: uming06.afm: No such file or directory
  48. [7]**** Cannot access fonts/truetype/uming.tff ****
  49. Can't open uming07.t1a: No such file or directory.
  50. Can't open uming07.afm: No such file or directory.
  51. afm2tfm: fatal: afm file `uming07.afm' not found.
  52. afm2tfm: fatal: afm file `uming07.afm' not found.
  53. grep: uming07.afm: No such file or directory
  54. [8]**** Cannot access fonts/truetype/uming.tff ****
  55. Can't open uming08.t1a: No such file or directory.
  56. Can't open uming08.afm: No such file or directory.
  57. afm2tfm: fatal: afm file `uming08.afm' not found.
  58. afm2tfm: fatal: afm file `uming08.afm' not found.
  59. grep: uming08.afm: No such file or directory
  60. .................
  61. [252]install: cannot stat `ukaifc.enc': No such file or directory
  62. install: cannot stat `ukaifc.afm': No such file or directory
  63. install: cannot stat `ukaifc.tfm': No such file or directory
  64. install: cannot stat `ukaislfc.tfm': No such file or directory
  65. [253]install: cannot stat `ukaifd.enc': No such file or directory
  66. install: cannot stat `ukaifd.afm': No such file or directory
  67. install: cannot stat `ukaifd.tfm': No such file or directory
  68. install: cannot stat `ukaislfd.tfm': No such file or directory
  69. [254]install: cannot stat `ukaife.enc': No such file or directory
  70. install: cannot stat `ukaife.afm': No such file or directory
  71. install: cannot stat `ukaife.tfm': No such file or directory
  72. install: cannot stat `ukaislfe.tfm': No such file or directory
  73. [255]install: cannot stat `ukaiff.enc': No such file or directory
  74. install: cannot stat `ukaiff.afm': No such file or directory
  75. install: cannot stat `ukaiff.tfm': No such file or directory
  76. install: cannot stat `ukaislff.tfm': No such file or directory

  77. [0][1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][22][23][24][25][26][27][28][29][30][31][32][33][34][35][36][37][38][39][40][41][42][43][44][45][46][47][48][49][50][51][52][53][54][55][56][57][58][59][60][61][62][63][64][65][66][67][68][69][70][71][72][73][74][75][76][77][78][79][80][81][82][83][84][85][86][87][88][89][90][91][92][93][94][95][96][97][98][99][100][101][102][103][104][105][106][107][108][109][110][111][112][113][114][115][116][117][118][119][120][121][122][123][124][125][126][127][128][129][130][131][132][133][134][135][136][137][138][139][140][141][142][143][144][145][146][147][148][149][150][151][152][153][154][155][156][157][158][159][160][161][162][163][164][165][166][167][168][169][170][171][172][173][174][175][176][177][178][179][180][181][182][183][184][185][186][187][188][189][190][191][192][193][194][195][196][197][198][199][200][201][202][203][204][205][206][207][208][209][210][211][212][213][214][215][216][217][218][219][220][221][222][223][224][225][226][227][228][229][230][231][232][233][234][235][236][237][238][239][240][241][242][243][244][245][246][247][248][249][250][251][252][253][254][255]
  78. removed `c70ukai.fd'
  79. removed `ukai.map'


  80. mktexlsr: Updating /home/mzhang/texmf/ls-R...
  81. mktexlsr: /usr/share/texmf: directory not writable. Skipping...
  82. mktexlsr: /usr/share/texmf-site: directory not writable. Skipping...
  83. mktexlsr: /var/cache/fonts/ls-R: no write permission. Skipping...
  84. mktexlsr: /var/lib/texmf: directory not writable. Skipping...
  85. mktexlsr: Done.
  86. updmap: This is updmap, version 1122009795
  87. updmap: using transcript file `/home/mzhang/.texmf-var/web2c/updmap.log'
  88. updmap: initial config file is `/home/mzhang/texmf/web2c/updmap.cfg'
  89. updmap: configuration (updmap.cfg) unchanged. Map files will not be recreated.

  90. OK. all done. ^_^
复制代码


因为我沒有simsun.tff,所以我用cjkuni-fonts 的 uming.tff 和 ukai.tff来试。
请问用法有错吗?
回复 支持 反对

使用道具 举报

发表于 2007-3-7 15:01:06 | 显示全部楼层
谢谢楼主,按照你的方法搞好了latex,我要补充一句:
UTF-8环境用的命名是{UTF8}不是{UTF-8},在这问题上害了我不少时间,逗了一个大圈,哈哈~~~~
谢谢了!
回复 支持 反对

使用道具 举报

发表于 2007-3-12 18:21:06 | 显示全部楼层
Post by gorf
我的问题解决了,要先升级tetex,后升级dvipdfmx,是个次序问题。

这样仍然是乱码
回复 支持 反对

使用道具 举报

发表于 2007-6-7 10:57:45 | 显示全部楼层
很受不了。为什么要把软件包放在 google page 空间里呢? google page 在国内屡遭封禁。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-6-7 11:56:32 | 显示全部楼层
Post by lyanry
很受不了。为什么要把软件包放在 google page 空间里呢? google page 在国内屡遭封禁。


下载下来将后缀.tar.bz2改为.tbz2扔${DISTFILES}里emerge即可

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

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

本版积分规则

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