Jean-Pierre Chrétien wrote:
> I have a warning with "View DVI":
> 
> xdvi-xaw: Warning: Invalid papersize special `0.0pt,0.0pt'
> 
> Harmless because the DVI file is displayed all right and is
> in A4 format.
> 
> This comes from this command added by LyX to the preamble:
> \special{papersize=\the\paperwidth,\the\paperheight}
> 
> As lettre.cls does not define \paperwidth and \paperheight, the command
> \special{papersize=0.0pt,0.0pt} is handed over to xdvi.
> 
> Both the original format issue with pdflatex and this one come from the
> fact  that the lettre class ignore the a4paper option, so \(pdf)paperwidth
> and \(pdf)paperheight are undefined.
> 
> Hacking the preamble with \input{pdftexconfig.tex} is avoided if I simply
> remove  the a4paper class option in the template, as the attached patch
> does.
> 
> On the other side, the fact that \[pdf]paperwidth and \[pdf]paperheight can
> be  undefined by certain classes will create the same format issues than
> with lettre.cls. If classes are not required to define these, the commands
> added by LyX in the preamble do not seem to be activated correctly.
> 
> What do you think ?

I'm fine with that, but this all strikes me like the bugs in the class itself. 
Did you consider to inform the class author?

Jürgen

Reply via email to