LinuxSir.cn,穿越时空的Linuxsir!

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

自认为最简单的中文latex配置,3步就可以了!

[复制链接]
发表于 2004-5-14 08:52:55 | 显示全部楼层
是这样的,我用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找不到,
 楼主| 发表于 2004-5-14 11:20:38 | 显示全部楼层
这是tex嵌入图形的问题,我也不是太清楚,
dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run
这里嵌入的是jig文件,好像tex不能直接支持jpg,需要转化为eps文件,可能是这里的问题!
发表于 2004-5-14 16:34:12 | 显示全部楼层
说的是啊,这个挺搞笑啊,
dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run
安全级别的问题?我看了看,我的电脑上没又jpeg2ps这个工具,找了一个,还是提示这个错误,
没办法,以root身份上去,还是这个错误提示,
发表于 2004-5-14 17:37:27 | 显示全部楼层
dvips: Secure mode is 1 so execute <jpeg2ps -r 140 ./figs/cat.jpg> will not run
是安全级别的原因,谁知道怎么调整这个secure mode?
 楼主| 发表于 2004-5-14 17:41:58 | 显示全部楼层
发表于 2004-5-14 19:10:12 | 显示全部楼层
我试过了,还是不行,真郁闷啊!要不aries1998帮忙编译一下?
发表于 2004-5-14 19:25:54 | 显示全部楼层
真郁闷啊,还是不行,谁帮忙编译一下,连接在:
http://learn.tsinghua.edu.cn/hom ... /src/example.tar.gz
发表于 2004-5-14 20:51:07 | 显示全部楼层
没问题的,试一下别的字体行不行,可能是字体的问题,或者把别的TeX系统的字体拷过来试一下,比如把Windows下CTeX的下的字体复制一份试一下
发表于 2004-5-14 20:58:14 | 显示全部楼层
搞定了,这可能是个bug,不过可以这样
dvips -R0 foo
ps2pdf foo.ps
就可以了,生成地pdf很酷啊!!
 楼主| 发表于 2004-5-14 21:14:57 | 显示全部楼层
还别说,我也是自己下载编译后出现了那样的问题,上网找到了那篇文章,没想到还要转ps这一步,马上看看效果怎么样。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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