Graphics, Figures & Tables ⇒ Compiling conflicts
Compiling conflicts
When including a pdf document before using \includegraphics I learnt I had to use pdflatex command to compile my tex file and couldn't use latex, dvipdf.
On another document I was using the poker package which only works if I use latex followed by dvipdf to compile and doesn't work with pdflatex.
What if I want to use both in the same document? Neither command will compile.
This is the problem I'm faced with at the moment.
Thanks for any help you can give!
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
Compiling conflicts
The package is based on PSTricks (see information on the linked page). Either compile LaTeX → DVI → PS → PDF or use the auto-pst-pdf package for direct compilation with PDFLaTeX. Study the package manual thoroughly and follow the instructions (keyword: shell escape).GP89 wrote:[…] On another document I was using the poker package which only works if I use latex followed by dvipdf to compile and doesn't work with pdflatex. […]
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Compiling conflicts
Thanks for the quick reply!
I've just tried using latex, dvips, ps2pdf but doesn't seem to work. My full build script is;
Code: Select all
#!/bin/sh
file=$1
latex ${file}
bibtex ${file}
latex ${file}
latex ${file}
dvips ${file}
ps2pdf ${file}".ps"
Thanks!
Edit: An early stumbling block on auto-pst-pdf, there doesn't seem to be a auto-pst-pdt.sty file in the download. How do you include it?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Compiling conflicts
Just to say that something doesn't work is not very helpful. It requires more concrete information to get closer to a solution. Take a look at the corresponding log file and check it for warnings and error messages.GP89 wrote:[…] I've just tried using latex, dvips, ps2pdf but doesn't seem to work. […]
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Compiling conflicts
Code: Select all
LaTeX Error: Cannot determine size of graphic in projplan.pdf (no BoundingBox
)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Compiling conflicts
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Compiling conflicts
After using pdftops and ps2epsi (not sure what the epsi is but it worked the same

Thanks very much for your help!