[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Adonthell-devel] pdflatex and eps
From: |
Kai Sterker |
Subject: |
[Adonthell-devel] pdflatex and eps |
Date: |
Sun, 8 Sep 2002 22:00:46 +0200 |
Since I've talked about this at the meeting, here is some more info on
the topic of including eps graphics in pdflatex.
First of all, I gpt it sort of working. But the resulting pdf file is
different from the one James produced. If you look at File->Document
Info->Fonts, his file uses the font supplied with acrobat for the text
contained in the .eps image:
Original Font Type Encoding Used Font Type
Times-Roman Type 1 Standard TimesNewRomanPSMT Type 1
The pdf I generate embeds the font instead:
Times-Roman Type 1 Standard Embedded Subset Type 1
Due to a bug in acroread, it sometimes has problems with extracting
embedded fonts when using non-english locale settings, like I do. After
modifying the startup script, my document also displays properly.
(see http://www.trillia.com/acrobat-bugs.html for the detials)
However, it will most likely fail for others, and the file is marginally
(20k) larger too. I tried to figure out why it does embed a font that
comes with acrobat, but so far I have no clue.
For those that are interested, using .ps gfx with pdflatex works as
follows:
* In your latex header, include the following lines:
\usepackage[pdftex]{graphicx}
\usepackage{epstopdf}
The epstopdf package is available at
http://www.ctan.org/tex-archive/macros/latex/contrib/supported/oberdiek/epstopdf.sty
* You also need the epstopdf program. There's a perl script for Unix and
I also read about a binary for Windows. Might come with your latex
distro already.
* To properly include the graphics, they should be in eps format, with a
correct bounding box. I found a tool called ps2eps that takes care of
that: http://www.tm.uka.de/~bless/ps2eps
* Afterwards, you can use \includegraphics{filename.eps} to include
them. pdflatex will take care of converting them to pdf format on
the fly. Of course you could also convert them manually and just
\includegraphics{filename.pdf}. In latter case, you don't even have
to \usepackage{epstopdf}.
Note that you have to run pdflatex with the --shell-escape command line
switch if you go for the automatic conversion.
That's all there is to it. If anyone has any clue regarding this
embedding stuff, I'd be very grateful. Otherwise I'll have to bother
some ML or another.
Now on to the doc-writing!
Kai
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Adonthell-devel] pdflatex and eps,
Kai Sterker <=