[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#344919: teTeX 3.x incompatible to older .sty files



Package: tetex-bin  
Version: 3.0-12

I found out that teTeX 3.0 (in contrast to teTeX 2.x and MiKTeX 2.4 on 
Windows) has some problems with older .sty-files, e.g., osajnl.sty (dated May 
28, 2004) from the Optical Society of America [1]. This is due to the 
following lines:
------ snippet from osajnl.sty ---------
\ifx\pdfoutput\undefined
\usepackage{graphicx}
\else
\usepackage[pdftex]{graphicx}
\fi
------ end of snippet -----------
I believe in teTeX 3.0 \pdfoutput is always defined and set to 0 in dvi mode 
[2]. Because of this, using style files like osajnl.sty will case the option 
"pdftex" to be used with graphicx.sty. "latex file_using_osajnl.tex" will 
output pdf instead of dvi and will ignore all included .eps figures.

I assume there is a good reason why the usage of \pdfoutput was changed. Maybe 
rather osajnl.sty should be changed than teTeX. I still think this is an 
important issue since it might concern a lot more commonly used style files 
and users usually do not edit tex style files. 

[1] http://josab.osa.org/submit/templates/default.cfm
[2] http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ifpdf



Reply to: