|
|
第 1 帖 | |
|
|
标题: 自认为最简单的中文latex配置,3步就可以了! 以前在不同的系统上搞过latex的中文,都是和系统文件放在一起,重装系统就没了,这次参考了几篇文章,发现其实很简单,重装系统也没有关系了。
1 先期tex包的安装 apt-get install tetex-bin tetex-base tetex-extra cjk-latex dvipdfm-cjk-cmap 然后上http://learn.tsinghua.edu.cn/homepag.../programs.html 下载gbkfonts的可执行文件,只要gbkfonts的那个静态链接文件就可以了,然后chmod +x gbkfonts && cp gbkfonts /usr/local/bin 2 建立texmf-local 推荐不要直接放在/usr/share/texmf 下面,这样以后升级不方便。假设你的中文字体如simsun.ttf simkai.ttf ......等文件放在/usr/share/fonts/zh下面,现在以普通用户配置。 代码:
代码:
代码:
这样的好处是每次重装系统后只要安装好了基本tex环境和cjk-latex包,只要运行mktexlsr就ok了,因为~/texmf 目录默认是mktexlsr搜索的路径。
__________________
签名 |
|
|
|
|
|
|
|
第 2 帖 | |
|
|
好文, 回头试试, ^_^
|
|
|
|
|
|
|
|
第 3 帖 | |
|
|
不错!有时间试试!先顶!
|
|
|
|
|
|
|
|
第 4 帖 | |
|
|
just do
代码:
dvipdfm-cjk and dvipdfm-cjk-cmap are obsoleted already.
__________________
Aoccdrnig to a rscheearch at an Elingsh uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht frist and lsat ltteer is at the rghit pclae. |
|
|
|
|
|
|
|
第 5 帖 | |
|
|
但是这样没有gbk字体吧...
|
|
|
|
|
|
|
|
第 6 帖 | |
|
|
好文。
不过直接用静态文件反而不行(类库文件冲突),用 tar.gz 包中的gbkfonts就可以。 |
|
|
|
|
|
|
|
第 7 帖 | |
|
|
GOOD!!
OK!
__________________
下决心学习了。 |
|
|
|
|
|
|
|
第 8 帖 | |
|
|
太好了,正在为debina下的latex中文配置犯愁
__________________
http://b.henryzhou.com |
|
|
|
|
|
|
|
第 9 帖 | |
|
|
这样是好用了,不过主页上http://learn.tsinghua.edu.cn/homepag...tex_frame.html
给的那个example.tar.gz,编译还对付过去,形成pdf时过不去啊,问题就处在那个jpg图上, |
|
|
|
|
|
|
|
第 10 帖 | |
|
|
你编译成pdf时用的什么命令!
你的意思是latex file.tex可以通过,就是dvi到pdf那一步不行,那个jpg图是怎么一回事? 把错误输出贴出来看看。 此帖于 04-05-13 21:03 被 aries1998 编辑. |
|
|
|
|
|
|
|
第 11 帖 | |
|
|
是这样的,我用debian/unstable,按照上面所说,的确很顺利,编译一般的中文文档是没问题了,可是,编译王垠的那个example.tex就出问题了,用王垠的例子中的Makefile,
dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run ] [19 dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run ] [20 dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run ] [21<./figs/meta.eps>] [22] [23] [24] Makefiel实际是这样做的: latex example latex example dvips example 我要做pdf ,用的是: dvipdfm example 错误提示: .................... Remainder of line unparsed. Current input buffer is -->begin H.R end<-- Ignoring remaining special text following unknown PS operator: "SDict" Remainder of line unparsed. Current input buffer is -->begin [ /View [/XYZ H.V] /Dest (page.21) cvn H.B /...<-- kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 600 gbksongsl43 mktexpk: don't know how to create bitmap font for gbksongsl43. kpathsea: Appending font creation commands to missfont.log. gbksongsl43: Can't locate a Type 1, TTF, PK, or virtual font file Not sure how to proceed. For now this is fatal Maybe in the future, I'll substitute some other font. Output file removed. Makefile本身好像也有点问题,提示 *.eps找不到, |
|
|
|
|
|
|
|
第 12 帖 | |
|
|
这是tex嵌入图形的问题,我也不是太清楚,
dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run 这里嵌入的是jig文件,好像tex不能直接支持jpg,需要转化为eps文件,可能是这里的问题! |
|
|
|
|
|
|
|
第 13 帖 | |
|
|
说的是啊,这个挺搞笑啊,
dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run 安全级别的问题?我看了看,我的电脑上没又jpeg2ps这个工具,找了一个,还是提示这个错误, 没办法,以root身份上去,还是这个错误提示, |
|
|
|
|
|
|
|
第 14 帖 | |
|
|
dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run
是安全级别的原因,谁知道怎么调整这个secure mode? |
|
|
|
|
|
|
|
第 15 帖 | |
|
|
|
|
|
|
|
|