shiblon / latex-makefile

A Makefile for LaTeX - drop it in, type make, and magic happens.
Other
185 stars 30 forks source link

option "pdftex" in the documentclass options within texlive 2009 generates error #99

Closed shiblon closed 8 years ago

shiblon commented 8 years ago

Originally reported on Google Code with ID 86

Hi
I am very new to Latex and TexLive area. Recently we upgraded our PDF building environment
to texlive 2009. After upgrading we are unable to build PDF for the Latex files that
use the option "pdftex"  in the documentclass options (for submissions that use jpeg
or PDF figures) produces a PDF anymore. 

The error message I get is the following

! Package pdftex.def Error: PDF mode expected, but DVI mode detected!
(pdftex.def) If you are using `latex', then call `pdflatex'.

I went through issue 55 and the suggession is to edit the makefile but when i give
a search for makefile within texlive2009 folder i get many under almost every directory.
Please can you help me on this. We do not have control to the latex document submitted
as it is submitted by end users.

Reported by sundharbas on 2010-06-23 22:45:06

shiblon commented 8 years ago
Which version of the makefile are you using?

Reported by shiblon on 2010-06-23 22:51:52

shiblon commented 8 years ago
Hi Shiblon

Can you please letme know which directory i can locate the makefile you are referring
to.

Reported by sundharbas on 2010-06-24 05:23:51

shiblon commented 8 years ago
Oh, did you know this is a support queue for a *Makefile* for LaTeX, not for LaTeX itself?
 The makefile I have created is separate - you can download it from this site, and
it helps you build your LaTeX documents (and TexLive 2009 is supported).

What the error says is that you need to use pdflatex instead of latex -> dvips -> ps2pdf.
 Either that, or add the "dvips" option (or ps2pdf, depending on the package) to some
of your included packages.

I'm going to mark this bug as closed, but please ping me off-tracker for general LaTeX
questions and I'll do my best to answer them.  My email is my username + @gmail.com

Reported by shiblon on 2010-06-24 14:23:09