f**y 发帖数: 368 | 1 加了\usepackage{epstopdf}, 因为所有现成的图都是eps格式,但pdflatex后出来的
文件中图像质量差于latex->dvips->ps2pdf
请问怎样加强pflatex后的图像质量?没找到epstopdf包有什么参数啊~~~ |
|
s*****l 发帖数: 16 | 2 俺发现了小兰框的问题,必须直接通过 PDFLaTex编译。但是,编译后所有eps图都显现
不出来。然后发现PDFLaTex不支持eps. 然后发现要用 epstopdf命令。于是在\
usepackage{graphix}的下面马上跟\usepackage{epstopdf}.
问题是eps图还是显不出来,急死我了。请大家帮忙,看看能不能解决。 谢谢。 |
|
p***o 发帖数: 1252 | 3 Better to convert eps files to pdf files first using epstopdf.
Then you can use pdflatex.
There maybe some bounding box issues but you can always edit
the eps file manually. The unit is 72 points/inch, very easy
to measure if you use something like visio to draw the figure.
Also if you are generating eps files from ps files, gswin32
can automatically decide the correct bounding box since
more than 4 yours ago. |
|
i********w 发帖数: 2223 | 4 是better to convert esp files to pdf
还是have to convert esp file to pdf
Better to convert eps files to pdf files first using epstopdf.
Then you can use pdflatex.
There maybe some bounding box issues but you can always edit
the eps file manually. The unit is 72 points/inch, very easy
to measure if you use something like visio to draw the figure.
Also if you are generating eps files from ps files, gswin32
can automatically decide the correct bounding box since
more than 4 yours ago. |
|
f*****e 发帖数: 2992 | 5 1)装一个hp的HP Universal Print Driver,属性里设置打印到文件,扩展名eps。打出来
的文件u.eps没有clipping。
2)latex安装包里有一个ps2epsi程序。执行:
ps2epsi u.eps t.eps
t.eps就是clipped的,刚好占满一个frame。
3)latex里usepackage{epstopdf}
不过我觉得这样还是不完美,就改用tikz了。
xfig |
|
l********e 发帖数: 3632 | 6 加上
\usepackage{epstopdf}
可以直接编译eps图形了。 |
|
p***o 发帖数: 1252 | 7
在打
powe
序处
我原来都是直接拿ultraedit改eps文件头。
去年下了个texlive2007,发现自带的gswin32会自动把eps的框切好,于是直接
gswin32 -sDEVICE=epswrite -sOutputFile=xxx.eps -dBATCH -dEPSFitPage xxx.ps
epstopdf xxx.eps
完事。 |
|
T*******n 发帖数: 493 | 8 I use the following procedure (on Linux, but the same
principles should work on Windows):
1. In Acrobat Reader, print the whole page to a PS file.
The PS file should have good resolution.
2. Rename this PS file as an EPS file.
3. Open this EPS file in a text editor and change the first
line to "%!PS-Adobe-3.0 EPSF-2.0". Also edit the
%%BoundingBox line so that the bounding box crops
the portion of the page you want. Save the file.
4. Run this EPS file through epstopdf (available wi |
|
z*****n 发帖数: 7639 | 9 Thanks to all buddies.
Finally I got my way work:
1. use gsview open the pdf file containing the figure you need.
2. file->convert->epswrite, and select the specific page
containing the figure. Save the file as eps.
3. open the eps file with gsview. File->PS to EPS and
unselect "Automatically calculate the bounding box".
4. Specify the boundaries follow the indication.
5. Save the file as the second eps file.
6. Use epstopdf utility convert the second file to be pdf.
7. Convert the pdf back to b |
|
s***t 发帖数: 195 | 10 you can try the following, no guarantee will work.
use epstopdf to convert .eps to .pdf, it seems to me it embeds the fonts.
then convert the .pdf back to .eps using, for example, "pdftops -eps" from
xpdf. |
|
v******d 发帖数: 1322 | 11 I use epstopdf. maybe you can try... |
|
k******e 发帖数: 2 | 12 You can also write something like that:
\ifx\pdfoutput\undefined
% we are running LaTeX, not pdflatex
\usepackage{graphicx}
\else
% we are running pdflatex, so convert .eps files to .pdf
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\fi
换
操 |
|
s***t 发帖数: 195 | 13 2 ways: either use jpeg2ps to wrap jpegs with an eps header and use
latex+dvips, or use epstopdf to convert eps to pdf and use pdflatex |
|
T*******n 发帖数: 493 | 14 In bash/sh/ksh on Linux/Unix:
for file in *.eps; do epstopdf $file ; done
I don't have a solution for Windows or Mac. |
|
i*i 发帖数: 918 | 15 use epstopdf to convert your eps file to pdf, and use pdflatex. BTW,
pdflatex is usually better for compiling beamer presentation. |
|
p****o 发帖数: 1340 | 16 do you use linux? if so, it is possible to have the system to
convert eps to pdf figures automatically for you.
\usepackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.eps}
\usepackage{epstopdf}
when you refer an image file foobar.eps in the tex, use
\includegraphics{foobar}
then you can compile the latex files
pdflatex -shell-escape your-latex-file
of course, you can change the pdftex.cfg to make "shell-escape"
a default option for pdflatex. |
|
M******y 发帖数: 736 | 17 用 epstopdf 命令把 eps 文件转成 pdf 文件。
eps 和 pdf 都是包装而已。 |
|
c*******h 发帖数: 1096 | 18 all what you have to do is to
1) include the epstopdf package after the graphicx package, and
2) run `pdflatex' with the option --shell-escape.
i don't know of any modern people using the `pdftex' command nowadays. |
|
F**p 发帖数: 1046 | 19 问:
好多EPS的图片,如果batch convert成JPEG呢?发现有人推荐imagemagick(IM),发现用:
》》c:\ convert a.eps a.jpg
转换以后得到的a.jpg没有转换的很好,图片都在一页的底部。
答:
用IM可以轻松实现这个目的:首先把EPS转换成PDF:
》》c:\ epstopdf a.eps
然后有一个a.pdf产生,然后:
》》c:\convert -density 100 a.pdf a.jpg
就会发现一个a.jpg产生在相同的目录下面。density越高,resolution越高。 |
|
k**f 发帖数: 372 | 20 Here's what I use:
\usepackage{graphicx}
%
% other stuff
%
\begin{figure}
\centering
\includegraphics{myfigure}
\caption{Caption of the figure}
\label{fig:myfigure}
\end{figure}
This should work for latex with DVI or DVI->PS output. If you run pdflatex
directly, you need to convert the eps figure to pdf file using epstopdf.
If you still have questions, please post your code here.
Good luck. |
|
p***o 发帖数: 1252 | 21 For font embedding, I always use epstopdf to convert eps into pdf first
and then run pdflatex to generate pdf directly. |
|
a**e 发帖数: 5794 | 22 你可以用MikTeX附带的设置程序Settings安装metapost及其例子。
Settings -> Packages -> Documentation -> Metapost-examples
比如metapost源文件是mygraph.mp,内容如下
beginfig(1); %图形起始
... %绘图命令
endfig; %图形结尾
beginfig(2);
...
endfig;
...
end; %文件结尾
可以这么编译 mpost mygraph.mp
输出的是mygraph.1, mygraph.2 ...
这些文件是mps格式,一种特殊的eps,可以用GSview看,也可以用
epstopdf命令把mps转成pdf看。 |
|
|
|
s*****g 发帖数: 5159 | 25 eps2pdf.exe windows
or
epstopdf in linux |
|
I*l 发帖数: 1649 | 26 或者include epstopdf 这个package,
编译时遇到eps会自动转换成pdf |
|
e*******s 发帖数: 1927 | 27 哦,对对,呵呵我太弱了。
在前面usepackage{epstopdf}就可以了
多谢多谢 |
|
r*****z 发帖数: 906 | 28 用pdf格式的图,或者用epstopdf包自动转
话说,这个和你遇到的问题完全是两回事,你得检查你得gs安装是否正确,
命令是否在path中,winedt是否正确配置了gs的命令路径,等等 |
|
M****M 发帖数: 980 | 29 新手
环境:linux+pdflatex
前面是这么定义的:
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
\usepackage{epsf}
\usepackage{float}
\begin{figure*}[!h]
\centering
\includegraphics[height=10cm,width=12cm]{figures/*.pdf}
\caption{}
\end{figure*}
比如我在第2。1个section加了个图片,本来图片应该出现在2。1的文字后面,
但是编译以后,图片却出现在了后几页,比如跑到3。5section的后面去了。
这是为啥? |
|
b*****i 发帖数: 58 | 30 to use pdflatex, can use 'epstopdf' to get a pdf copy of your eps file, then
\usepackage[pdflatex]{graphicx}
% need to specify the driver explicitly above
and use the 'figure' enviroment to include the .eps file.
% it's said that 'graphicx' is better than 'epsfig' which is
% kind of old...
btw, I usu. generate a pdf in the way:.tex->.ps->.pdf
latex foo.tex
dvips foo.dvi
distill foo.ps
% there is no pdf[la]tex in our unix server.
文 |
|
T*********r 发帖数: 11175 | 31
latex > dvips vs pdflatex?
你的pdf图形是epstopdf做的?
看起来eps边界不对阿
还有includegraphic的时候,尺寸对不对 |
|
y***r 发帖数: 1845 | 32 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! |
|