由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
TeX版 - dvi转pdf,为什么不见图片
相关主题
请教:“.ps file does not exist!”How to compile .tex file to get a SLIDE MODE version
俺终于意识到了,原来是 dvipdfmx -_-!MikTex与MetaPost
How to embed fonts怎么改ps2pdf生成的pdf的纸型,答对的有包子
WinEdt, Latex, and BeamerConversion from PS to PDF
dvipdf生成的pdf标题/footnote都很虚?求助:latex插图只显示空白 (转载)
pdf file sizeps死都转不成pdf是什么原因
ps2pdf的问题winedt为什么把y坐标的标题改了?
还有一个弱弱的问题关于贴图问题请问哪儿下载winedt?
相关话题的讨论汇总
话题: pdf话题: dvipdfm话题: ps话题: file话题: dvi
进入TeX版参与讨论
1 (共1页)
u*********g
发帖数: 51
1
因为中间生成dvi察看比pdf要快,所以一直先生成dvi,最后再转成pdf。
发现最后pdf里的图都是空白的,但是在dvi的时候是好的。图用的是eps格式。
请问是哪里出了问题?是gsview吗?怎么解决?谢谢!
T*********r
发帖数: 11175
2
pdflatex would not recognize eps figures
convert to ps first then ps2pdf
(pdflatex works for pdf/jpeg/... figures though)

【在 u*********g 的大作中提到】
: 因为中间生成dvi察看比pdf要快,所以一直先生成dvi,最后再转成pdf。
: 发现最后pdf里的图都是空白的,但是在dvi的时候是好的。图用的是eps格式。
: 请问是哪里出了问题?是gsview吗?怎么解决?谢谢!

u*********g
发帖数: 51
3
问题是在desktop上这样用winedt没有问题,在自己的笔记本上却不行。是不是需要设
置什么?

【在 T*********r 的大作中提到】
: pdflatex would not recognize eps figures
: convert to ps first then ps2pdf
: (pdflatex works for pdf/jpeg/... figures though)

T*********r
发帖数: 11175
4
no idea
at least that's the case for my tetex 3.0 on linux
this probably depends on your tex version

【在 u*********g 的大作中提到】
: 问题是在desktop上这样用winedt没有问题,在自己的笔记本上却不行。是不是需要设
: 置什么?

A**********e
发帖数: 3102
5
do you have the correct converter (from dvi to pdf via ps)? e.g. divpdf

【在 u*********g 的大作中提到】
: 问题是在desktop上这样用winedt没有问题,在自己的笔记本上却不行。是不是需要设
: 置什么?

u*********g
发帖数: 51
6
Could you please be more specific? I installed winedt, do I need to install
divpdf from somewhere?

【在 A**********e 的大作中提到】
: do you have the correct converter (from dvi to pdf via ps)? e.g. divpdf
A**********e
发帖数: 3102
7
sorry, typo. should be dvipdf.
i have no idea about winedt, as it is not free :)) and i have stopped using
it long time ago. but you should be possible to find the convertor winedt
uses from option/preference, and the actual commands.
the compiling seq should be: LaTeX -> dvi -> ps -> pdf

install

【在 u*********g 的大作中提到】
: Could you please be more specific? I installed winedt, do I need to install
: divpdf from somewhere?

S*********g
发帖数: 5298
8
dvipdfm is directly from dvi to pdf
no ps file is involved

using

【在 A**********e 的大作中提到】
: sorry, typo. should be dvipdf.
: i have no idea about winedt, as it is not free :)) and i have stopped using
: it long time ago. but you should be possible to find the convertor winedt
: uses from option/preference, and the actual commands.
: the compiling seq should be: LaTeX -> dvi -> ps -> pdf
:
: install

A**********e
发帖数: 3102
9
dvi files are not independent, hehe. try this: compile your .tex to .dvi,
then rename one of your figure, and view the .dvi file: you can no longer
find your figure.
i.e., dvi files, not as pdf files, normally will only link (not embed) to
your figures (.ps files normally)

winedt

【在 S*********g 的大作中提到】
: dvipdfm is directly from dvi to pdf
: no ps file is involved
:
: using

A**********e
发帖数: 3102
10
just tested on my computer. so please do the following to test:
Windows: from Start -> run... , type `cmd' to get the command window.
then, type `dvipdfm --version' to see if it has been installed (by default,
it should be part of MikTeX)
then cd to your folder (or copy your folder under C:\, which is much easier
and cd into it) type
dvipdfm yourfile.dvi
to see if you can get yourfile.pdf correctly.

install

【在 u*********g 的大作中提到】
: Could you please be more specific? I installed winedt, do I need to install
: divpdf from somewhere?

相关主题
pdf file sizeHow to compile .tex file to get a SLIDE MODE version
ps2pdf的问题MikTex与MetaPost
还有一个弱弱的问题关于贴图问题怎么改ps2pdf生成的pdf的纸型,答对的有包子
进入TeX版参与讨论
A**********e
发帖数: 3102
11
just realized i forgot to ask: do you have Ghostscript installed? i.e., can
you use gsview to open .ps files?

【在 u*********g 的大作中提到】
: 因为中间生成dvi察看比pdf要快,所以一直先生成dvi,最后再转成pdf。
: 发现最后pdf里的图都是空白的,但是在dvi的时候是好的。图用的是eps格式。
: 请问是哪里出了问题?是gsview吗?怎么解决?谢谢!

u*********g
发帖数: 51
12
MikTex did have dvipdfm, I checked it out. And I tried to generate pdf file
by following your suggestions. But it didn't work. Here is some information.
Mind if you take a look? Looks like a problem from PS-->PDF, how can I fix
it?
(transmitter.eps
Config file contains no template to perform PS -> PDF conversion
)
pdf: image inclusion failed for (transmitter.eps).
Thanks a lot.

,
easier

【在 A**********e 的大作中提到】
: just tested on my computer. so please do the following to test:
: Windows: from Start -> run... , type `cmd' to get the command window.
: then, type `dvipdfm --version' to see if it has been installed (by default,
: it should be part of MikTeX)
: then cd to your folder (or copy your folder under C:\, which is much easier
: and cd into it) type
: dvipdfm yourfile.dvi
: to see if you can get yourfile.pdf correctly.
:
: install

A**********e
发帖数: 3102
13
have you installed ghostscrip and ghostview?
try this: type
dvips yourfile.dvi
can you get the yourfile.ps? can you open it?

file
information.
fix
default

【在 u*********g 的大作中提到】
: MikTex did have dvipdfm, I checked it out. And I tried to generate pdf file
: by following your suggestions. But it didn't work. Here is some information.
: Mind if you take a look? Looks like a problem from PS-->PDF, how can I fix
: it?
: (transmitter.eps
: Config file contains no template to perform PS -> PDF conversion
: )
: pdf: image inclusion failed for (transmitter.eps).
: Thanks a lot.
:

u*********g
发帖数: 51
14
Yeah, I did install GS and EPS files could be open by gsview. I double-
checked it.

can

【在 A**********e 的大作中提到】
: just realized i forgot to ask: do you have Ghostscript installed? i.e., can
: you use gsview to open .ps files?

c*******h
发帖数: 1096
15
eps 其实也是 ps。ps 的 format 太复杂了,应该是你的 dvipdfm 认不出
那幅图。一个 dirty trick,你用 gsview 将那幅图打开并另存一下,希望
dvipdfm 能认出新图

【在 u*********g 的大作中提到】
: Yeah, I did install GS and EPS files could be open by gsview. I double-
: checked it.
:
: can

A**********e
发帖数: 3102
16
try
dvips yourfile.dvi
if you can get yourfile.ps, then try
ps2pdf yourfile.ps

【在 u*********g 的大作中提到】
: Yeah, I did install GS and EPS files could be open by gsview. I double-
: checked it.
:
: can

u*********g
发帖数: 51
17
I did it just now. PS file looks fine and figures are there. If I need to
convert every PS file into PDF file, it's kinda inconvenient.

【在 A**********e 的大作中提到】
: have you installed ghostscrip and ghostview?
: try this: type
: dvips yourfile.dvi
: can you get the yourfile.ps? can you open it?
:
: file
: information.
: fix
: default

S*********g
发帖数: 5298
18
How is this related to your step dvi->PS?

【在 A**********e 的大作中提到】
: dvi files are not independent, hehe. try this: compile your .tex to .dvi,
: then rename one of your figure, and view the .dvi file: you can no longer
: find your figure.
: i.e., dvi files, not as pdf files, normally will only link (not embed) to
: your figures (.ps files normally)
:
: winedt

A**********e
发帖数: 3102
19
that's just for testing/debugging.

【在 u*********g 的大作中提到】
: I did it just now. PS file looks fine and figures are there. If I need to
: convert every PS file into PDF file, it's kinda inconvenient.

A**********e
发帖数: 3102
20
dvipdfm mimics the behaviors of dvips, then converts meta files to pdf files
.

,
longer
to

【在 S*********g 的大作中提到】
: How is this related to your step dvi->PS?
相关主题
Conversion from PS to PDFwinedt为什么把y坐标的标题改了?
求助:latex插图只显示空白 (转载)请问哪儿下载winedt?
ps死都转不成pdf是什么原因LaTex
进入TeX版参与讨论
u*********g
发帖数: 51
21
试了,不照,咋办?

【在 c*******h 的大作中提到】
: eps 其实也是 ps。ps 的 format 太复杂了,应该是你的 dvipdfm 认不出
: 那幅图。一个 dirty trick,你用 gsview 将那幅图打开并另存一下,希望
: dvipdfm 能认出新图

c*******h
发帖数: 1096
22
这样吧,在 gsview 里面将你的那个 什么.eps convert 成 什么.ps
在 tex 原代码里面将 什么.eps 换成 什么.ps
latex 一下生成 dvi
然后 dvipdfm
如果还不行的我也没辙了,只有亲自看你的电脑才知道怎么回事了

【在 u*********g 的大作中提到】
: 试了,不照,咋办?
A**********e
发帖数: 3102
23
if gs works, then dvipdfm should work, i.e., the conf of dvipdfm may have
problems.
dvipdfm uses gs as the distiller.

【在 c*******h 的大作中提到】
: 这样吧,在 gsview 里面将你的那个 什么.eps convert 成 什么.ps
: 在 tex 原代码里面将 什么.eps 换成 什么.ps
: latex 一下生成 dvi
: 然后 dvipdfm
: 如果还不行的我也没辙了,只有亲自看你的电脑才知道怎么回事了

u*********g
发帖数: 51
24
Are you suggesting me to reinstall the whole Miktex?

【在 A**********e 的大作中提到】
: if gs works, then dvipdfm should work, i.e., the conf of dvipdfm may have
: problems.
: dvipdfm uses gs as the distiller.

A**********e
发帖数: 3102
25
of coz not. just try ps2pdf so that we will know if that is the problem.
if not, then that's easy.

have

【在 u*********g 的大作中提到】
: Are you suggesting me to reinstall the whole Miktex?
u*********g
发帖数: 51
26
I did two tests. dvi-->ps-->pdf, no problem exists. So where is the problem?

【在 A**********e 的大作中提到】
: of coz not. just try ps2pdf so that we will know if that is the problem.
: if not, then that's easy.
:
: have

A**********e
发帖数: 3102
27
then post your conf file. it should be under
\texmf\dvipdfm\conf\
and the file name is `config'. use notepad to open it, and post the content
here.
BTW, you may also want to post the config file which is on your desktop and
compare them.

problem?

【在 u*********g 的大作中提到】
: I did two tests. dvi-->ps-->pdf, no problem exists. So where is the problem?
u*********g
发帖数: 51
28
The file I found is "dvipdfmx.cfg", which is the only config file in that
directory. I'm not sure if it is the right one. Thanks.
%%
%% PDF Version Setting
%%
%% PDF (minor) version stamp to use in output file.
%% This also implies maximal version of PDF file allowed to be included.
%% Dvipdfmx does not support 1.0, 1.1, 1.2 since TrueType font embedded
%% as CIDFontType2 requires at least version 1.3. Transparent imaging
%% model requires version 1.4. So if you want soft-masking support for
%%

【在 A**********e 的大作中提到】
: then post your conf file. it should be under
: \texmf\dvipdfm\conf\
: and the file name is `config'. use notepad to open it, and post the content
: here.
: BTW, you may also want to post the config file which is on your desktop and
: compare them.
:
: problem?

A**********e
发帖数: 3102
29
try a simple one for mgs:
comment the line started with
D "mgs.exe ...
by adding % in front of D, then add the following line
D "mgs.exe -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -
dUseFlateCompression=true -dNOPAUSE -sOutputFile=\"%o\" \"%i\" -c quit"
before it. then delete yourfile.ps and yourfile.pdf, use
dvipdfm yourfile.dvi
again to see if it works or not. if not, delete the `-q', then re-try, and
post the error message :)
good luck.

【在 u*********g 的大作中提到】
: The file I found is "dvipdfmx.cfg", which is the only config file in that
: directory. I'm not sure if it is the right one. Thanks.
: %%
: %% PDF Version Setting
: %%
: %% PDF (minor) version stamp to use in output file.
: %% This also implies maximal version of PDF file allowed to be included.
: %% Dvipdfmx does not support 1.0, 1.1, 1.2 since TrueType font embedded
: %% as CIDFontType2 requires at least version 1.3. Transparent imaging
: %% model requires version 1.4. So if you want soft-masking support for

c*******h
发帖数: 1096
30
i don't understand. if miktex, the dvi driver for building pdf is dvipdfm,
which calls the miktex ghostscript, mgs. what i am suggesting is using the
viewer of AFPL ghostscript to convert a figure to a certain format. are we
talking about the same thing?

【在 A**********e 的大作中提到】
: if gs works, then dvipdfm should work, i.e., the conf of dvipdfm may have
: problems.
: dvipdfm uses gs as the distiller.

相关主题
如何把visio变成eps又不损失太多?俺终于意识到了,原来是 dvipdfmx -_-!
A problem with Latex (MikTex+WinEdt), many thanksHow to embed fonts
请教:“.ps file does not exist!”WinEdt, Latex, and Beamer
进入TeX版参与讨论
A**********e
发帖数: 3102
31
yes, almost the same thing. the difference is that: ps or mps is used to
convert .ps or .eps to .pdf. if ps2pdf works, then the para setting for gs
in the script file (ps2pdfwr) can be used for setting the distiller in the
conf of dvipdfm. or you can use gs as the distiller directly in conf.
i guess in the default conf there are too many para, and one or two of them
conflict with other settings.
BTW, a quick way to test if it's mgs' problem is to replace gs with mgs in
ps2pdfwr and check if ps2p

【在 c*******h 的大作中提到】
: i don't understand. if miktex, the dvi driver for building pdf is dvipdfm,
: which calls the miktex ghostscript, mgs. what i am suggesting is using the
: viewer of AFPL ghostscript to convert a figure to a certain format. are we
: talking about the same thing?

c*******h
发帖数: 1096
32
ok. i am not sure exactly what causes his problem, neither do i know if he
solves it. just for technical interest, i can summarize in this way: (i
suspect) his dvipdfm can not recognize the transmitter.eps file, because
there are so many formats ending at a .ps or .eps extention, and all the
software recognize only some. so i suggested him use gsview to convert the
transmitter.eps into transmitter.ps, which at least the AFPL gs can
recognize. and i hope that the miktex gs can also recognize it,

【在 A**********e 的大作中提到】
: yes, almost the same thing. the difference is that: ps or mps is used to
: convert .ps or .eps to .pdf. if ps2pdf works, then the para setting for gs
: in the script file (ps2pdfwr) can be used for setting the distiller in the
: conf of dvipdfm. or you can use gs as the distiller directly in conf.
: i guess in the default conf there are too many para, and one or two of them
: conflict with other settings.
: BTW, a quick way to test if it's mgs' problem is to replace gs with mgs in
: ps2pdfwr and check if ps2p

u*********g
发帖数: 51
33
I tried them both. But they didn't work. The problem was still the same.
...
(transmitter.eps
Config file contains no template to perform PS -> PDF conversion
)
pdf: image inclusion failed for (transmitter.eps).
...

【在 A**********e 的大作中提到】
: try a simple one for mgs:
: comment the line started with
: D "mgs.exe ...
: by adding % in front of D, then add the following line
: D "mgs.exe -q -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.3 -
: dUseFlateCompression=true -dNOPAUSE -sOutputFile=\"%o\" \"%i\" -c quit"
: before it. then delete yourfile.ps and yourfile.pdf, use
: dvipdfm yourfile.dvi
: again to see if it works or not. if not, delete the `-q', then re-try, and
: post the error message :)

u*********g
发帖数: 51
34
Let's say even if it works like you said, the problem is the figures I use
are generally eps files, I can not convert each and every one of them
manually.
Thanks for your suggestion anyway.

【在 c*******h 的大作中提到】
: ok. i am not sure exactly what causes his problem, neither do i know if he
: solves it. just for technical interest, i can summarize in this way: (i
: suspect) his dvipdfm can not recognize the transmitter.eps file, because
: there are so many formats ending at a .ps or .eps extention, and all the
: software recognize only some. so i suggested him use gsview to convert the
: transmitter.eps into transmitter.ps, which at least the AFPL gs can
: recognize. and i hope that the miktex gs can also recognize it,

c*******h
发帖数: 1096
35
you may write a batch file to to that if it works...

【在 u*********g 的大作中提到】
: Let's say even if it works like you said, the problem is the figures I use
: are generally eps files, I can not convert each and every one of them
: manually.
: Thanks for your suggestion anyway.

A**********e
发帖数: 3102
36
事实上他用 dvi2ps 加上 ps2pdf 已经 work 了。也就是说,他可以放心地继续用
dvi,只是在完稿后跑一遍 dvi2ps + ps2pdf 就可以了。

use

【在 c*******h 的大作中提到】
: you may write a batch file to to that if it works...
A**********e
发帖数: 3102
37
呃。。。 你的 \usepackage{graphics} 挂得是什么参数?

and

【在 u*********g 的大作中提到】
: I tried them both. But they didn't work. The problem was still the same.
: ...
: (transmitter.eps
: Config file contains no template to perform PS -> PDF conversion
: )
: pdf: image inclusion failed for (transmitter.eps).
: ...

A**********e
发帖数: 3102
38
对了,另外,用 dvipdfm -vv yourfile.dvi,贴结果上来吧。这个详细些,可以知
道是哪里出了问题 :((

I tried them both. But they didn't work. The problem was still the same.
...
(transmitter.eps
Config file contains no template to perform PS -> PDF conversion
)
pdf: image inclusion failed for (transmitter.eps).
...

【在 u*********g 的大作中提到】
: I tried them both. But they didn't work. The problem was still the same.
: ...
: (transmitter.eps
: Config file contains no template to perform PS -> PDF conversion
: )
: pdf: image inclusion failed for (transmitter.eps).
: ...

u*********g
发帖数: 51
39
对,这样是没有问题的。

【在 A**********e 的大作中提到】
: 事实上他用 dvi2ps 加上 ps2pdf 已经 work 了。也就是说,他可以放心地继续用
: dvi,只是在完稿后跑一遍 dvi2ps + ps2pdf 就可以了。
:
: use

u*********g
发帖数: 51
40
还要挂参数的吗?我好像都没有用参数。

【在 A**********e 的大作中提到】
: 呃。。。 你的 \usepackage{graphics} 挂得是什么参数?
:
: and

相关主题
WinEdt, Latex, and Beamerps2pdf的问题
dvipdf生成的pdf标题/footnote都很虚?还有一个弱弱的问题关于贴图问题
pdf file sizeHow to compile .tex file to get a SLIDE MODE version
进入TeX版参与讨论
u*********g
发帖数: 51
41
刚在desktop上对照了一下,发现config目录下有两个file:config和dvipdfmx.cfg,而
我的笔记本上却没有config这个。我比较了一下,两个的参数设置不同,而且似乎是
config才起作用,所以打算晚上把这个file放到笔记本上再运行一下试试先,不行再来
请教。

【在 A**********e 的大作中提到】
: 对了,另外,用 dvipdfm -vv yourfile.dvi,贴结果上来吧。这个详细些,可以知
: 道是哪里出了问题 :((
:
: I tried them both. But they didn't work. The problem was still the same.
: ...
: (transmitter.eps
: Config file contains no template to perform PS -> PDF conversion
: )
: pdf: image inclusion failed for (transmitter.eps).
: ...

A**********e
发帖数: 3102
42
see #2993
btw, config is the conf for dvipdfm, and dvipdfmx.cfg is for dvipdfmx (which
does not work correctly in your system)

【在 u*********g 的大作中提到】
: 刚在desktop上对照了一下,发现config目录下有两个file:config和dvipdfmx.cfg,而
: 我的笔记本上却没有config这个。我比较了一下,两个的参数设置不同,而且似乎是
: config才起作用,所以打算晚上把这个file放到笔记本上再运行一下试试先,不行再来
: 请教。

u*********g
发帖数: 51
43
I copy the config into my laptop, then it works.
Thank you for your help!

which

【在 A**********e 的大作中提到】
: see #2993
: btw, config is the conf for dvipdfm, and dvipdfmx.cfg is for dvipdfmx (which
: does not work correctly in your system)

A**********e
发帖数: 3102
44
glad to know it. i also learnt a lot through it :)

【在 u*********g 的大作中提到】
: I copy the config into my laptop, then it works.
: Thank you for your help!
:
: which

1 (共1页)
进入TeX版参与讨论
相关主题
请问哪儿下载winedt?dvipdf生成的pdf标题/footnote都很虚?
LaTexpdf file size
如何把visio变成eps又不损失太多?ps2pdf的问题
A problem with Latex (MikTex+WinEdt), many thanks还有一个弱弱的问题关于贴图问题
请教:“.ps file does not exist!”How to compile .tex file to get a SLIDE MODE version
俺终于意识到了,原来是 dvipdfmx -_-!MikTex与MetaPost
How to embed fonts怎么改ps2pdf生成的pdf的纸型,答对的有包子
WinEdt, Latex, and BeamerConversion from PS to PDF
相关话题的讨论汇总
话题: pdf话题: dvipdfm话题: ps话题: file话题: dvi