Document ClassesUsing IEEEtran with PDFLaTeX

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
atpr
Posts: 5
Joined: Sun Jun 12, 2011 3:56 pm

Using IEEEtran with PDFLaTeX

Post by atpr »

I am trying to use the IEEE document class IEEEtran with pdfLatex (via TexWorks) to produce PDF output. By default, IEEEtran specifies DVI output. The class documentation tells me that there is a CLASSINFO control, \ifCLASSINFOpdf that is set to false by default and controls pdf output. But the docs say absolutely nothing about how to use this! Maybe obvious if you have a deep knowledge of Latex classes but...

How do I use IEEEtran with pdfLatex?

pr
Last edited by atpr on Mon Jun 13, 2011 3:21 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Using IEEEtran with PDFLaTeX

Post by localghost »

atpr wrote:[…] By default, IEEEtran specifies DVI output. […]
Who told you so? The below example compiles flawlessly with PDFLaTeX.

Code: Select all

\documentclass[english]{IEEEtran}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{blindtext}

\begin{document}
  \blinddocument
\end{document}

Best regards and welcome to the board
Thorsten
atpr
Posts: 5
Joined: Sun Jun 12, 2011 3:56 pm

Re: Using IEEEtran with PDFLaTeX

Post by atpr »

I came to this conclusion from downloading a copy of the bare journal tex file from the IEEE and adding small section of text. This worked fine with BakomaTex on Windows (which I believe uses DVI). When I tried to move to pdfLatex on Linux I got an output from Latexmk that said:

...
-- Using DVI output.
...

and finally:

...
Latexmk: Log file says output to 'myfile.dvi'
Latexmk: ===For rule 'pdflatex', actual output 'myfile.dvi'
======appears not to match expected output 'myfile.pdf'
...
Failure to make 'myfile.pdf'
Collected error summary (may duplicate other messages):
pdflatex: failed to create output file
Latexmk: Use the -f option to force complete processing.
Latexmk: Errors, so I did not complete making targets

However, having retraced my steps (but this time downloading the bare journal file from CTAN), it all works! So the problem has gone away... although I don't know why!

pr
atpr
Posts: 5
Joined: Sun Jun 12, 2011 3:56 pm

Re: Using IEEEtran with PDFLaTeX

Post by atpr »

Just to tidy things up: I have finally found the reason for this odd behaviour!!! It's caused by BakomaTex which inserts "%&latex" as the first line of a file. This produce the weird error above. Delete this extra line and it all works beautifully!
Post Reply