Issue:
Exporting a linuxdoc article to latex on RH8.0 using Lyx 1.2.3 rpm seems to 
always end up with "letterpaper" in the documentclass. Since latex is used as 
an intermediate format for pdf etc this will affect those formats too.

Tried:
Choosing A4 in the Layout | Document dialogue-box doesn't seem towork

Setting \default_papersize "a4" in the lyxrc.defaults file doesn't seem to 
work (checked in both master copy and home directory).

/usr/share/linuxdoc-tools/dist/linuxdoc/latex2e/mapping contains 
"\\documentclass\[a4paper\]{article}" and is being processed.

/usr/share/texmf/tex/latex/base/article.cls contains
  \DeclareOption{a4paper}
but it is inside
  \if@compatibility\else
which may or may not be important, although changing the line
  \ExecuteOptions{letterpaper,10pt,oneside,onecolumn,final}
to refer to "a4paper" doesn't seem to help.

Workaround:
In the lyxrc.defaults file (master copy in /usr/share/lyx, local copy in 
~/.lyx) change the line:
\converter linuxdoc latex "sgml2latex $$i" ""
to
\converter linuxdoc latex "sgml2latex -p a4 $$i" ""

I don't know if there's a better way, but this works as a temporary measure.

-- 
  Richard Huxton

Reply via email to