Re: teTeX 3.0: new default LaTeX engine
Julian Gilbey <[email protected]>
| Newsgroups | gmane.comp.tex.tetex.general |
|---|---|
| Message-ID | <20050411213256.GA16958@burnside> |
On Mon, Apr 11, 2005 at 03:34:01PM +0100, Ant?nio Rodrigues Tom? wrote:
> This is almost certain true but now I'm not anymore able to compile a final
> version of an accepted article by Non linear Process in Geophysics
>
> http://www.copernicus.org/EGU/npg/guidelines_for_manuscript_and_article.html
>
> the problem is most certainly in the class file they provide
>
> http://www.copernicus.org/guidelines/egu.cls
Here's a patch (untested). Note that graphicx.sty and color.sty
intelligently test whether they're producing pdf or dvi, and \ifpdf
(from the ifpdf.sty package) does the same. So this is much simpler
than the original code in these respects.
HTH,
Julian
--- egu.cls.orig 2005-04-11 22:25:05.000000000 +0100
+++ egu.cls 2005-04-11 22:30:52.000000000 +0100
@@ -42,7 +42,7 @@
% \documentclass[inbook]{egu} (for book camera-ready copy) or as
% \documentclass[ms]{egu} (for manuscript)
% It requires the local files
- % article.cls size10.clo fleqn.clo
+ % article.cls size10.clo fleqn.clo ifpdf.sty
\def\ACP{Atmospheric Chemistry and Physics}
\def\ACPD{Atmospheric Chemistry and Physics Discussions}
\def\BG{Biogeosciences}
@@ -110,21 +110,12 @@
\paperheight=277mm\paperwidth=210mm
\if@aglet\paperheight=283mm\paperwidth=213mm\fi
\ifacpd\paperheight=159mm\paperwidth=166mm\fi
-\newif\if@ps
-\ifx\pdfoutput\undefined%
- \IfFileExists{graphicx.sty}{\RequirePackage[dvips]{graphicx}% LaTeX
- \DeclareGraphicsExtensions{.eps,.ps}}{%
+\IfFileExists{graphicx.sty}{\RequirePackage{graphicx}}{%
\ClassWarningNoLine{egu}{Cannot find graphicx.sty; proceeding without it}}
- \if@aglet\IfFileExists{color.sty}{\RequirePackage{color}}{%
+\if@aglet\IfFileExists{color.sty}{\RequirePackage{color}}{%
\ClassWarningNoLine{egu}{Cannot find color.sty; proceeding without it}}\fi
- \@pstrue
-\else%
- \IfFileExists{graphicx.sty}{\RequirePackage[pdftex]{graphicx}% pdfLaTeX
- \DeclareGraphicsExtensions{.pdf,.png,.jpg}}{%
- \ClassWarningNoLine{egu}{Cannot find graphicx.sty; proceeding without it}}
- \if@aglet\IfFileExists{color.sty}{\RequirePackage[pdftex]{color}}{%
- \ClassWarningNoLine{egu}{Cannot find color.sty; proceeding without it}}\fi
- \@psfalse
+\RequirePackage{ifpdf}
+\ifpdf
\pdfinfo{/Creator (egu.cls version \clsversion)}
\fi
\IfFileExists{url.sty}%
@@ -507,7 +498,7 @@
\evensidemargin -0.9cm % 0cm
\topmargin -3.0cm % -2.1cm
\if@aglet \evensidemargin -0.6cm \topmargin -2.7cm \fi
-\if@ps\topmargin -1.0cm\fi
+\ifpdf\else\topmargin -1.0cm\fi
\headheight 2cm
\headsep 0.5cm
\topskip = 12pt