Am Donnerstag, 6. Juli 2006 09:00 schrieb Michael Reeken:
> Hello everybody,
>
> I have the following problem: when I use AMS article from the layout
> menu
> in my LyX 1.3.6 and earlier versions it will put the section headings
> on top of the
> related pages of the document. That is okay but what is not okay is
> that it
> precedes these headings by the word "english" or "german" written in
> small letters
> depending on the language I choose in the layout menu.

Same here with LyX 1.3.5 and SUSE Linux 9.3.

> Exporting the 
> file to LaTeX and
> looking at the preamble nothing special can be recognized it looks
> exactly as I would type it in manually.

FWIW, here is the preamble:
\documentclass[12pt,oneside,english]{amsart}
\usepackage{palatino}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{a4wide}
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\usepackage{amssymb}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
 \theoremstyle{plain}
 \newtheorem{thm}{Theorem}[section]
 \numberwithin{equation}{section} %% Comment out for 
sequentially-numbered
 \numberwithin{figure}{section} %% Comment out for sequentially-numbered

\usepackage{babel}
\makeatother
\begin{document}

> Also the LyX amsart file 
> looks innocuous.
> Just an observation which may help spotting the error: the bug
> appears in the
> Suse Linux version of an older LyX and it appears in exactly the same
> form
> on the above mentioned version for Mac OS X which -- I think --
> points to a defect
> in the LyX amsart file.

I highly doubt this because the bug also occurs if one runs the exported 
tex file through latex. I suspect babel to be the culprit. It doesn't 
seem to be compatible with amsart. If you remove the "english" from 
\documentclass and add it to \usepackage[english]{babel} then exactly 
the same problem occurs, but if you remove \usepackage{babel} then the 
problem disappears.

> Does anybody know how to correct this stupid bug which completely
> upends the aim of LyX to create professionally typeset articles.

Remove \usepackage{babel} from the exported tex file. Maybe there's a 
special option to make babel compatible with amsart or vice-versa.

Regards,
Ingo

Attachment: pgpF5YKZmeSGH.pgp
Description: PGP signature

Reply via email to