Jürgen Spitzmüller a écrit :
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,

You mean, approve the last patch, in the line "LyX does nothing to solve what is understood as latex bugs"?

but this all strikes me like the bugs in the class itself.
Did you consider to inform the class author?

Sure, I can draw his attention about the fact that lettre.cls does not honour the papersize class options as letter.cls does (an earlier version of lettre.cls was built on letter.cls and lettre.sty as you can see in the headers).

Maybe he considered that offering a pagesize format choice was not appropriate as most installations have A4 as default format ?

I'll keep you posted.

--
Jean-Pierre

Reply via email to