MiKTeX and proTeXt ⇒ Beamer + ps4pdf
Beamer + ps4pdf
latex %n
dvips -t a4 -P pdf -G0 -o %n-pics.ps %n.dvi
ps2pdf %n-pics.ps %n-pics.pdf
after which pdflatex would work fine.
The problem is that now, the %n-pics.ps file is not correctly created (can't be opened with gv for instance).
I found the problem and I can fix manually. In the .ps file: each page is a figure with the psfrag replacement like that:
%%Page: 1 1
TeXDict begin 1 0 bop 0 -591 a
SDict begin [ {ThisPage}<</Trans << /S /R >> >> /PUT pdfmark end
0 -591 a
-32891 -32891 32891 32891 4661699 0 19333534
...
If I cancel the part
"0 -591 a
SDict begin [ {ThisPage}<</Trans << /S /R >> >> /PUT pdfmark end
0 -591 a"
i.e., keeping only
%%Page: 1 1
TeXDict begin 1 0 bop
-32891 -32891 32891 32891 4661699 0 19333534
then I can convert in pdf and all works.
Does one understand where these extra lines comes from?
Can one fix the error automatically (without opening the postscript file)?
Thank you
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Beamer + ps4pdf
Which file format do these pictures have?TWbeta wrote:Since I installed Miktex 2.7 I had the following problem when creating a Beamer presentation with pictures […]
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Beamer + ps4pdf
Example of a picture:
\PSforPDF{
\psfrag{x}[c][][0.8]{$x$}
\psfrag{h}[c][][0.8]{$h(x,t)$}
\includegraphics[height=2.5cm]{h.eps}
}
Until my last update, all was working fine. Now, not anymore.
If there is a simple way to create pdf pictures from the ps with the psfrag replacements, this would also solve the practical problem (by not using ps4pdf anymore).