由买买提看人间百态

topics

全部话题 - 话题: dvipdfm
1 (共1页)
A**********e
发帖数: 3102
1
这个东西怎么设置,俺就完全地不知道了。这个牵涉到 CJK 的很多 map。俺说呢,
怎么 dvipdfm 的 conf 改名字了,hoho。
dvipdfmx 的一个大问题,就是连文档都没有。查无可查。如果有兴趣,不妨从 mi
ktex.ini 开始查起 (看 Dvipdfm(x?)那部分),按着路径捋吧,把沿途的 conf
和 font map 都检查一下,对照 dvipdfm -vv 的结果找。
对了,不如抄个别人的 conf 放在 dvipdfm/conf/ 下面 。。。 我怀疑你其实现在
装得是 dvipdfm,但是由于历史原因,搞乱了。我的 conf 文件如下,注意这个文
件的路径要和 miktex.ini 的设置一致。
% dvipdfm config for MiKTeX 2.4.1775
% See \texmf\doc\dvipdfm\dvipdfm.pdf, for more information.
% Distiller template examples. Uncomment
% the appropriate one, or (preferably) cr
A**********e
发帖数: 3102
2
来自主题: TeX版 - dvi转pdf,为什么不见图片
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
3
来自主题: TeX版 - dvi转pdf,为什么不见图片
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
c*******h
发帖数: 1096
4
来自主题: TeX版 - dvi转pdf,为什么不见图片
eps 其实也是 ps。ps 的 format 太复杂了,应该是你的 dvipdfm 认不出
那幅图。一个 dirty trick,你用 gsview 将那幅图打开并另存一下,希望
dvipdfm 能认出新图
a***f
发帖数: 150
5
来自主题: TeX版 - pdf file size
The PDF file that I generated use dvipdfm from the same set of tex files and
eps figures at home PC(3.8M) and office PC(5M) has a big difference. Could
anybody explain why? Are there any information lost in the small file??
I use MiKTeX for both system. My office PC might have a slightly newer
version.
Thank you!
w****a
发帖数: 186
6
gsview可以看eps文件。
如果你最终的目标是生成PDF文件,那么有好几种方式:
1)PDFTex: Tex -> PDF
2)dvipdfm(x): Tex -> DVI -> PDF
3)dvips+ps2pdf: Tex -> EPS -> PDF
每种都调用不同的程序,这些程序应该在你的Tex 系统(比如MikTex)中已经有了,不用
再下载。在TexnicCenter里面应该可以增加更多的方式吧。
K****2
发帖数: 753
7
今天我又试了试,把MikTex 2.4卸载了,安装了MikTex 2.5,用了如下的命令:
\usepackage{xspace}
\usepackage{epsfig}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage[dvipdfm,%
colorlinks,%
linkcolor=blue,%
citecolor = blue,%
hyperindex,%
plainpages=false,%
urlcolor = blue,%
pdfstartview=FitH]{hyperref}
现在生成的dvi和pdf都有hyperlink了。但是问题3参考文献的hyperlink问题还没有解
决...
S*********g
发帖数: 5298
8
来自主题: TeX版 - dvi转pdf,为什么不见图片
dvipdfm is directly from dvi to pdf
no ps file is involved

using
u*********g
发帖数: 51
9
来自主题: TeX版 - dvi转pdf,为什么不见图片
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
发帖数: 3102
10
来自主题: TeX版 - dvi转pdf,为什么不见图片
dvipdfm mimics the behaviors of dvips, then converts meta files to pdf files
.

,
longer
to
c*******h
发帖数: 1096
11
来自主题: TeX版 - dvi转pdf,为什么不见图片
这样吧,在 gsview 里面将你的那个 什么.eps convert 成 什么.ps
在 tex 原代码里面将 什么.eps 换成 什么.ps
latex 一下生成 dvi
然后 dvipdfm
如果还不行的我也没辙了,只有亲自看你的电脑才知道怎么回事了
A**********e
发帖数: 3102
12
来自主题: TeX版 - dvi转pdf,为什么不见图片
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
13
来自主题: TeX版 - dvi转pdf,为什么不见图片
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.
c*******h
发帖数: 1096
14
来自主题: TeX版 - dvi转pdf,为什么不见图片
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
发帖数: 3102
15
来自主题: TeX版 - dvi转pdf,为什么不见图片
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
发帖数: 1096
16
来自主题: TeX版 - dvi转pdf,为什么不见图片
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
发帖数: 3102
17
来自主题: TeX版 - dvi转pdf,为什么不见图片
对了,另外,用 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
18
来自主题: TeX版 - dvi转pdf,为什么不见图片
see #2993
btw, config is the conf for dvipdfm, and dvipdfmx.cfg is for dvipdfmx (which
does not work correctly in your system)
T*******n
发帖数: 493
19
Try \usepackage[dvipdf]{hyperref}.
(I'm not sure that this will work since I never use dvipdf/dvi2pdf/dvipdfm,
so this is just a suggestion.)

s*e
发帖数: 21
20
例如装了auctex以后,可以C-c C-c 直接latex我的文件
有什么办法可以也帮定快捷键,比如C-f9 来直接执行dvipdfm呢
btw,我用的是emacs for win32 + miktex.
q*****g
发帖数: 1568
21
照我的.emacs里头这一段改改,以后你用C-c C-c就有pdf, rtf之类的选项了。
(add-hook 'LaTeX-mode-hook
'(lambda ()
(gnuserv-start ())
(add-to-list 'TeX-command-list
(list "rtf" "latex2rtf %s"
'TeX-run-command nil t)
)
(add-to-list 'TeX-command-list
(list "pdf" "dvipdfm %s"
'TeX-run-command nil t)
)
s*e
发帖数: 21
22
谢谢大家的回复和帮助
我最后是这么做的(其实和qiuxing的基本一样)
在.emacs加下面的代码
;; define C-F9 to dvipdf and display pdf file
(add-hook 'text-mode-hook '(lambda ()
(add-to-list 'TeX-command-list
(list "mydvipdf"
"mydvipdf.bat %s"
'TeX-run-discard nil nil))))
(global-set-key [(control f9)] 'do-mydvipdf)
; dvipdf the current file
(defun do-mydvipdf ()
"mydvipdf the current file."
(interactive)
(TeX-command "mydvipdf" 'TeX-master-file))
然后再定义一个mydvipdf.bat,内容是
call dvipdfm %1.dvi
start
d****r
发帖数: 1017
23
接着问.
我又copy了几个.pdf文件到E:\Work\Tex\Beamer\texmf\tex\latex\beamer.
现在emacs不要我安装beamer了.能生成.dvi文件.而且好像没有错误.
但是.dvi显示不对.
经过dvips时能生成.ps文件,但是ps2pdf是有unrecoverable error, 生成的.pdf也不全.
如果直接用dvipdfm, 产生的.pdf更不对,有一大堆ignore.
那该怎么把由beamer产生的.dvi转化成.pdf呢?
h**********c
发帖数: 4120
24
来自主题: TeX版 - 以下问题请教各位天才
以下问题请教各位天才
大家写thesis一般用哪个latex?我用fedeora下命令行latex,和vista 下的
texniccenter
总有一些问题,试来试去没有理想的方案。
thesis 是以前同学的template,不能改了,
如果是应用软件的问题,能否推荐 一个好一点的package.
具体 的问题。
1. 在.tex 文件中 使用 \usepackage[dvipdfm,bookmarks]{hyperref}
在fedora 下 latex *.tex 生成的 dvi文件 pagesize 正确,图也正确,问题是因为有
.png文件, 不能生成.ps 文件, 不能 打印。
在kdvi, export as pdf文件, pagesize 不对, pagemargin 不是大了就是小了,
手动设置pagesize也没有用。
用texniccenter,.ps file里面的png 图片没有颜色。
我现在的办法之能是生成dvi文件然后到windows 下用yap 打印。如何能既包括
pngfigures,又可以自由地生成pdf 和ps 文件?
2. 在.tex 文件中
a**e
发帖数: 5794
25
来自主题: TeX版 - natbib 问题
\usepackage[dvipdfm]{graphicx}
...
\includegraphics[bb=0 0 540 405]{picture.png}
latex命令可以接受png,只是需要指定bounding box。
编译的时候用latex和dvipdfmx
k*********g
发帖数: 791
26
\usepackage{newlfont}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{array}
\usepackage[dvipdfm]{hyperref}
\parindent 1.0cm
\parskip 0.1cm
\renewcommand{\baselinestretch}{1.5}
\input{psfig.sty}
\begin{document}
\begin{frontmatter}
i*******w
发帖数: 405
27
老大,我用的是Miktex + Crimson(Editor),图片只认eps,所以我的方法是在
PowerPoint 里面做Slides,然后打印成pdf,在Acrobat 里面截取想要的内容,再另存
为eps, 然后再包括到tex文件里面。这样编译和转dvi都没有问题,但是dvipdfm 就出
错。
Apc建议先dvips,然后我把生成的ps文件再转成pdf,目前这样works.
d*******d
发帖数: 42
28
图形效果总是不能达到最好,情况如下:
1. 文章包含有dia生成的eps,argouml生成的eps,edraw画的流程图通过gimp转成的
eps
2. latex和dvi2ps编译得到ps文件。
3.1 ps2pdf或者dvipdfm得到的pdf结果显示dia和argouml的eps都很好,gimp过来的有
一点模糊,不过gimp本身看还是很清楚的。
3.2 用acrobat distiller得到的pdf发现gimp过来的eps效果非常清晰,本来丰富的图
形没有几个,当然想能显示清楚一点,这种情况下dia的也没问题,反而argouml的UML
图文字都错位了。
纠结啊,顾此失彼。
a*z
发帖数: 141
29
来自主题: Unix版 - [转载] installed a NtEmacs..
【 以下文字转载自 Software 讨论区 】
【 原文由 ANZ 所发表 】
using in WinXP!
It seems that I dont need to install, just COPY and run it is ok.
what should I do next?
JUst want to use it as editor for Latex.
How can I intergret latex/yap/dvips/dvipdfm with it?
and I almost cant find the "New " option to setup a new document..
n*****h
发帖数: 212
30
偶在WINDOWS下用MIKTEX,命令是DVIPDFM.EXE
s******r
发帖数: 85
31
来自主题: Computation版 - [转载] 一个gnuplot的问题
【 以下文字转载自 Linux 讨论区 】
【 原文由 stranger 所发表 】
如果我选择输出为png, 如何在标题里用latex的格式?
我按照一般写法输入, 如 set title "$\\mu$", 显示只是\mu
输入 set title "$\mu$", 显示是mu
如果把terminal 换成latex
可是生成pdf(latex dvipdfm xpdf)出来的图没有颜色
如果用pslatex
只能首先编辑成ps文件,可是我不想这么麻烦
问题是;如何直接在图片格式里显示latex能识别的东西?
k*********g
发帖数: 791
32
\usepackage{newlfont}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{array}
\usepackage[dvipdfm]{hyperref}
\parindent 1.0cm
\parskip 0.1cm
\renewcommand{\baselinestretch}{1.5}
\input{psfig.sty}
\begin{document}
\begin{frontmatter}
d*****r
发帖数: 18
33
dvipdfm.exe to convert from dvi to pdf also under this directory.
y***r
发帖数: 1845
34
来自主题: Science版 - Re: figure in pdf question
use epstopdf to convert these EPS files to PDF files, and
\includegraphics{xxx.pdf}
will be okay.
EPS cannot be directly inserted into TeX documents if you
use pdflatex.
you can also try dvipdfm, which can convert a DVI file to
a PDF file directly and process EPS figures automatically.
good luck!
1 (共1页)