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
Document Classes ⇒ Using IEEEtran with PDFLaTeX
Using IEEEtran with PDFLaTeX
Last edited by atpr on Mon Jun 13, 2011 3:21 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Using IEEEtran with PDFLaTeX
Who told you so? The below example compiles flawlessly with PDFLaTeX.atpr wrote:[…] By default, IEEEtran specifies DVI output. […]
Code: Select all
Code, edit and compile here:
\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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Using IEEEtran with PDFLaTeX
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
...
-- 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
Re: Using IEEEtran with PDFLaTeX
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!