[pdftex] pdflatex and gnuplot and type-1 fonts
Kevin E. Cahill
kevin at kevin.phys.unm.edu
Sat Aug 11 18:57:42 CEST 2001
When I use pdflatex on a paper of mine
without figures, the output looks fine
and Acroread says it only has type-1 fonts.
But when I use gnuplot to make a figure
1a1s.png that I bring into the latex file
with an \epsfig{file=1a1s,width=5.9in} command
and then use pdflatex, the pdf file, paper.pdf,
contains type-3 fonts and has the figure all by itself
on page 12 instead of embedded in the text
on page 6 where it should be. Ordinary latex,
xdvi, and dvips work do embed the eps file, 1a1s.eps,
correctly on page 6 of paper.ps.
My procedure involves these steps:
I use gnuplot with the settings
set terminal pslatex color
set output 'temp1a1s.tex'
I then use latex on a file, 1a1s.tex,
which has the line
\input{temp1a1s}
to make a dvi file 1a1s.dvi.
I turn 1a1s.dvi into postscript with the command
dvips -Ppdf -G0 -j0 -E -o 1a1s.ps 1a1s
and into png with the further command
gs -q -dNOPAUSE -dBATCH -sDEVICE=png256 \
-sOutputFile=1a1s.png -c save pop -f 1a1s.ps
The file 1a1s.png is then included into the
latex file of my paper in a figure environment
with the command \epsfig{file=1a1s,width=5.9in}.
--
Kevin Cahill Phone: 505 277 5318
Department of Physics and Astronomy Fax: 505 277 1520
University of New Mexico Web page: kevin.phys.unm.edu/~kevin/
Albuquerque, NM 87131-1156 E-mail: cahill at unm.edu
More information about the pdftex
mailing list