On Wednesday 28 December 2005 12:20, Enrico Teppino wrote:
> Georg Baum <[EMAIL PROTECTED]> writes:
> > > I use documentclass "book (AMS)" to write a German text but the words
> > > for "theorem", "proof", "remark" etc only appear in English. I want
> > > them in German.
> >
> > You have to adjust the layout files, see here:
> > http://www.mail-archive.com/lyx-users%40lists.lyx.org/msg41722.html
>
> Thanks! I am trying to do that. 2 problems:
>
> - when I save amsbook.layout to ~/.lyx/layouts/amsbook-de.layout and
> change the 2 lines in that file that say "book (AMS)" to "book (AMSde),
> then tell LyX to reconfigure, and restart lyx,
> then the layout shows up in the pull-down menu for document class as
> "Unavailable: book (AMSde)".

I forgot to tell that the DeclareTextClass line needs the name of the LaTeX 
document class if it is different than the layout file name.

I have created stub files at
http://wiki.lyx.org/pmwiki.php/Layouts/AMS-de, since this question comes from 
time to time.

You can use these, but need to translate some more strings.

> - Where are all those English words I want to translate? Not in
> amsbook.layout (except "Theorem" and "Exercises"). This file imports
> lots of others:
>
> Input stdsections.inc

This does not contain any translations
>
> (and other names instead of "stdsections" too).
> Where do I find those files?

in ~/.lyx/layouts and /usr/share/lyx/layouts (assuming standard installs)

> And do I have to edit them system-wide
> or is there one way to do it with a normal non-privileged user account?

You can do both, see above.

> Thanks for the hint; I just did that. Although, the latex export file
> looks exactly the same except that instead of
>
> \documentclass[12pt,a4paper,ngerman]{amsbook}
>
> it now says:
>
> \documentclass[12pt,a4paper,ngerman,ngerman]{amsbook}
>
> When do as you say and also remove the \usepackage, \selectlanguage,
> then I still get ngerman twice. Maybe because my document default language
> is also ngerman.

This is fine, but it seems that you give 'ngerman' also in the options field. 
Remove that, and you'll get bit only once in the .tex file.


Georg

Reply via email to