LinuxSir.cn,穿越时空的Linuxsir!

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

今天升级tex出错了(最新进展,问题部分解决了)

[复制链接]
 楼主| 发表于 2006-11-2 18:15:36 | 显示全部楼层
顶一下,现在问题部分解决了。见一楼。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-3 13:51:06 | 显示全部楼层
现在感觉也不错,字体有宋体和楷体。
只是有些字编译通不过,如芶,是不能用gbk环境的结果,不能用gbk环境是不是因为没有用gbkfonts生成gbk字体?

现在着手改以前的模板了。

还有,看网上说tetex不再维护了,推荐改用texlive,有用的没有?怎么样?
看到testing的源上有texlive,有装的吗?
想试试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-3 14:35:49 | 显示全部楼层
发现了繁体字或gbk字的输入方法,
环境改成Bg5,字体是bsmi和bkai
且*.tex文件的编码也要改成Bg5的。

由于我用的机器的local是gbk的,用vi编辑的文件的编码都是gbk的。只有用texmaker才可以变换编码。

呵呵,算自己留存吧。
回复 支持 反对

使用道具 举报

发表于 2006-11-3 16:02:33 | 显示全部楼层
改成Bg5还不如直接用UTF8呢,debian源里的中文字体应该是utf8的,别的Bg5等用的是虚拟字体,记得原先的latex-cjk中的big5字体生成脚本是这样的,不知现在的咋样了
tetex已经停止开发了,Thomas Esser应该是累了,在开源的世界里经常碰到德国人做得东东,TeX中仅个人知道的作品还有CJK和beamer
生成字体的话,cjk-current.tar.gz里的cjk-current/utils/subfonts/目录下的几个脚本可以用来生成字体,给个链接,Werner示范了下生成UTF8的字体,对Bg5使用vf字体
http://lists.ffii.org/pipermail/cjk/2005-September/001264.html
  1. [Cjk] fontforge scripts
  2. Werner LEMBERG wl at gnu.org
  3. Sun Sep 4 21:15:07 CEST 2005
  4.     * Previous message: [Cjk] fontforge scripts
  5.     * Next message: [Cjk] fontforge scripts
  6.     * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
  7. > From what I've understood, these are the commands that I should use:
  8. >
  9. >   fontforge -script subfonts.pe bsmi00lp.ttf bsmi \
  10. >             /usr/share/texmf/ttf2tfm/UBig5.sfd
  11. >
  12. >   perl uni2sfd.pl bsmi /usr/share/texmf/ttf2tfm/UBig5.sfd bsmiu \
  13. >        cjkbig5
  14. >
  15. >   fontforge -script vertical.pe bsmi00lp.ttf bsmiv
  16. >
  17. >   perl clonevf.pl bsmiv bsmi
  18. >
  19. >   fontforge -script vertref.pe bsmi00lp.ttf bsmivr
  20. >
  21. >   perl makefdx.pl bsmivr.afm /usr/share/texmf/ttf2tfm/UBig5.sfd \
  22. >        c00bsmi.fdx
  23. This is not correct.  For the bsmi00lp font in TeXLive, I've created
  24. *Unicode* encoded real fonts which are mapped to virtual Big 5 fonts.
  25. Using the font names from TeXLive, we have
  26. [color="Magenta"]
  27.   # create Unicode encoded subfonts `bsmiu00' .. `bsmiuff'
  28.   fontforge -script subfonts.pe bsmi00lp.ttf bsmiu Unicode.sfd
  29.   # create font `bsmiuv' with all vertical glyph representation forms
  30.   fontforge -script vertical.pe bsmi00lp.ttf bsmiuv
  31.   # create font `bsmiuvr' which has the same structure as `bsmiuv',
  32.   # but normal glyphs instead of vertical representation forms
  33.   fontforge -script vertref.pe bsmi00lp.ttf bsmiuvr
  34.   # create a virtual font `bsmilpv' which is a clone of `bsmiuv'
  35.   perl clonevf.pl bsmiuv bsmilpv
  36.   # create virtual fonts `bsmilp00' .. `bsmilp55' in Big 5 encoding
  37.   # which use Unicode encoded `bsmiuXX' subfonts as raw fonts
  38.   # and `cjkbig5' as the `CODINGSCHEME' parameter value
  39.   perl uni2sfd.pl bsmiu UBig5.sfd bsmilp cjkbig5
  40.   # create entries for the extended font definition file
  41.   # `c00bsmi.fdx' (which uses Big 5 encoding), with `bsmiuvr' as
  42.   # the reference font
  43.   perl makefdx.pl bsmiuvr.afm UBig5.sfd c00bsmi.fdx
  44.   # create entries for the extended font definition file
  45.   # `c70bsmi.fdx' (which uses Unicode encoding), with `bsmiuvr' as
  46.   # the reference font
  47.   perl makefdx.pl bsmiuvr.afm Unicode.sfd c70bsmi.fdx
  48. [/color]
  49. I hope I got it right from memory...
  50. > Yet I don't get the same fonts as Werner's package at
  51. > [url]http://www.tug.org/tex-archive/fonts/arphic/bsmi00lp-20050720.tar.gz[/url]
  52. > Its README file isn't clear: it says that subfonts.pe makes the
  53. > Unicode encoded files and uni2sfd.pl creates the Big5 files, but
  54. > reading the script files themselves make me conclude the opposite.
  55. How do you come to this conclusion?
  56. > Secundo, I have interchanged namestem and uni_namestem with
  57. > uni2sfd.pl, otherwise I can't run uni2sfd.pl.
  58. I hope that the above makes it clear how to use it.
  59. > Tertio, should vertical.pe have bsmiv or bsmiuv as argument?  And
  60. > should vertref.pe have bsmivr or bsmiuvr as argument?  I like to use
  61. > a straightforward naming scheme.
  62. In the CJK package, `v' is handled as a plane, so I use `bsmiuv' for
  63. the vertical glyphs, and `bsmiuvr' for the reference font.
  64. > Quinto, makefdx.pl only creates \CJKvdef lines, no \CJKvlet lines
  65. > for boldface.  Is there a possibility to add these lines to the Perl[Cjk] fontforge scripts
  66. Werner LEMBERG wl at gnu.org
  67. Sun Sep 4 21:15:07 CEST 2005
  68.     * Previous message: [Cjk] fontforge scripts
  69.     * Next message: [Cjk] fontforge scripts
  70.     * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-3 17:48:24 | 显示全部楼层
呵呵,不是要改成bg5,是想把有些字打出来,我的机器里面没有gbk这样的字可用。
现在怎么用gbk的字或环境?
回复 支持 反对

使用道具 举报

发表于 2006-11-4 09:56:26 | 显示全部楼层
免费的大字体好像也就小越南的字体可用( http://sourceforge.net/projects/vietunicode/ ),不免费的除常见的几款字体外,还有海峰五笔页面上的sunext{a,b}.ttf可用。可能的话,还是直接使用UTF8,中文书签和复制粘贴及更多的符号文字(中日韩、简繁...)等优势明显,照上述的步骤生成type1字体,毕竟一个ttf只能有65536个字

下面的步骤是Danai SAE-HAN(韓達耐)在cjk的邮件列表上发的东东,可以参考一下:

  1. I don't know how to name the font, so I'll just call it "sunext".
  2. I'm not going to explain how to get vertical fonts or how to use
  3. uni2sfd, because I haven't tried myself yet.  Check out the CJK
  4. documentation.

  5. Put Sun-Ext{A,B}.ttf in /usr/local/share/fonts/truetype/sunext/ and
  6. put symlinks in /usr/local/share/texmf/fonts/truetype/sunext/ .

  7. $ mkdir -p /usr/src/sunext{a,b}

  8. $ cd /usr/src/sunexta
  9. $ fontforge -script /usr/src/cjk-current/utils/subfonts/subfonts.pe \
  10.     /usr/local/share/fonts/truetype/sunext/Sun-ExtA.ttf sunext \
  11.     /usr/local/share/texmf/fonts/sfd/Unicode.sfd

  12. $ cd ../sunextb
  13. $ fontforge -script /usr/src/cjk-current/utils/subfonts/subfonts.pe \
  14.     /usr/local/share/fonts/truetype/sunext/Sun-ExtB.ttf sunext \
  15.     /usr/local/share/texmf/fonts/sfd/Unicode.sfd
  16. $ rm -f sunext00.*

  17. The Fontforge process will consume hundreds of MB of memory and take
  18. hours to compile.

  19. As root, do the following:

  20. $ mkdir -p /usr/local/share/texmf/fonts/{afm,tfm,type1}/sunext
  21. $ mkdir -p /usr/local/share/texmf/fonts/map/dvips/sunext/
  22. $ cp sunext?/*.afm /usr/local/share/texmf/fonts/afm/sunext/
  23. $ cp sunext?/*.tfm /usr/local/share/texmf/fonts/tfm/sunext/
  24. $ cp sunext?/*.pfb /usr/local/share/texmf/fonts/type1/sunext/

  25. $ cd /usr/local/share/texmf/fonts/type1/sunext/
  26. $ for filename in *.pfb;
  27.     do echo "$(basename $filename .pfb) $(basename $filename .pfb) <$filename" \
  28.     >> ../../map/dvips/sunext/sunext.map;
  29.     done

  30. $ texhash


  31. Now you have to update "updmap" to get the Type1 fonts working
  32. properly.  This depends heavily on your distribution.

  33. On Debian you would have to create a file called
  34. /etc/texmf/updmap.d/10sunext.cfg with the following lines:

  35. ######
  36. # 10sunext.cfg
  37. Map sunexta.map
  38. ######

  39. and then as root run "update-updmap" and "updmap-sys".


  40. In the nobmp2.tex file, change a few lines:

  41. [...]

  42. \usepackage{array}
  43. \usepackage[T1]{CJKutf8}

  44. [...]

  45. \begin{CJK}{UTF8}{sunext}

  46. [...]



  47. That's it!



  48. Danai SAE-HAN
  49. 韓達耐
复制代码
回复 支持 反对

使用道具 举报

发表于 2006-11-13 09:44:49 | 显示全部楼层
etch中的cjk-latex升级到4.7,问题解决了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-13 13:22:56 | 显示全部楼层
目前版还是4.6版
回复 支持 反对

使用道具 举报

发表于 2006-11-13 13:55:13 | 显示全部楼层
已经4.7了,你的源可能更新慢一些


Post by molucule
目前版还是4.6版
回复 支持 反对

使用道具 举报

发表于 2006-11-13 22:52:25 | 显示全部楼层
texlive 大家用了感觉如何 阿。我以前作了几个tex文档。感觉还行,不知texlive是否对中文标签支持的更好?
回复 支持 反对

使用道具 举报

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

本版积分规则

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