Graphics, Figures & TablesCompiling conflicts

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
GP89
Posts: 4
Joined: Fri Mar 04, 2011 8:04 pm

Compiling conflicts

Post by GP89 »

I'm having an issue which I've not encountered before.

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!
Last edited by GP89 on Fri Mar 04, 2011 10:51 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Compiling conflicts

Post by localghost »

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. […]
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).


Best regards and welcome to the board
Thorsten
GP89
Posts: 4
Joined: Fri Mar 04, 2011 8:04 pm

Compiling conflicts

Post by GP89 »

Hi,

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"
I'll try looking into the auto-pst-pdf package

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?
Last edited by GP89 on Fri Mar 04, 2011 10:25 pm, edited 2 times in total.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Compiling conflicts

Post by localghost »

GP89 wrote:[…] I've just tried using latex, dvips, ps2pdf but doesn't seem to work. […]
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
Posts: 4
Joined: Fri Mar 04, 2011 8:04 pm

Compiling conflicts

Post by GP89 »

It compiles fine with the latex, dvips, ps2pdf commands when I comment out the \includegraphics command, but when it's there I get the same error as I was before with latex dvipdf.

Code: Select all

LaTeX Error: Cannot determine size of graphic in projplan.pdf (no BoundingBox
)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Compiling conflicts

Post by localghost »

LaTeX does not accept graphics files in any other format than EPS. So you have to convert from PDF to EPS. (On a Linux system quite easy with »pdftops« and »ps2eps«.) If you can make auto-pst-pdf work this step will not be necessary.
GP89
Posts: 4
Joined: Fri Mar 04, 2011 8:04 pm

Re: Compiling conflicts

Post by GP89 »

Excellent! Thank you!

After using pdftops and ps2epsi (not sure what the epsi is but it worked the same :) ) the includegraphics accepted my graphic and I can compile again with latex, dvipdf.

Thanks very much for your help!
Post Reply