Hi Günter and others,

I looked inside the latex code. I will post the preambel part of it here 

% Quellcode vorschauen
%% LyX 1.6.5 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[oneside,english,ngerman]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{varioref}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}

\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{Theorem}
\else
\newtheorem{thm}{Theorem}[chapter]
\fi
\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}
\theoremstyle{remark}
\newtheorem{rem}[thm]{Remark}
\theoremstyle{definition}
\newtheorem{example}[thm]{Example}
 \ifx\proof\undefined\
   \newenvironment{proof}[1][\proofname]{\par
     \normalfont\topsep6\p@\@plus6\p@\relax
     \trivlist
     \itemindent\parindent
     \item[\hskip\labelsep
           \scshape
       #1]\ignorespaces
   }{%
     \endtrivlist\@endpefalse
   }
   \providecommand{\proofname}{Proof}
 \fi
\theoremstyle{plain}
\newtheorem{lem}[thm]{Lemma}
\theoremstyle{definition}
\newtheorem{problem}[thm]{Problem}
\theoremstyle{plain}
\newtheorem{prop}[thm]{Proposition}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{tikz}
\usetikzlibrary{mindmap,trees}
\let\example\undefined
\let\endexample\undefined
\theoremstyle{definition}
\newtheorem{example}[thm]{Beispiel}
 \ifx\proof\undefined\
   \newenvironment{proof}[1][\proofname]{\par
     \normalfont\topsep6\p@\@plus6\p@\relax
     \trivlist
     \itemindent\parindent
     \item[\hskip\labelsep
           \scshape
       #1]\ignorespaces
   }{%
     \endtrivlist\@endpefalse
   }
   \providecommand{\proofname}{Proof}
 \fi

\makeatother

\usepackage{babel}


In the "User specified Latex commands" part of the source code I overwrote the 
settings of Lyx (to be precise someone made that for me, I can't do). I don't 
think this the "Spirit of Lyx"-way to solve the problem. On the other hand I 
don't really know to do so. 

Isn't there a nice way to solve this. And if not, how can I overwrite the 
settings of the "remark"-environment which I want to be "Bemerkung" and 
"example" which I want to be "Beispiel".

Regards, Mike



On 2011-05-27, Mike Bonhoff wrote:
> Hi all,

> I have a little problem with my language settings. 

> At first I wrote my text in english and then decided to write it in
> German. Of course I want the environments to have the same language
> (for example "Bemerkung" instead of "Remark"; I think these are
> environments in the module "Theorem").  

> So I changed language by
> "Document->Settings->language->language:German". But unfortunately some
> of the environments appear in English (for example "example" and
> "remark") while others appear in German (for example "Beweis", which is
> the German word for "proof").  

There might be two reasons: missing translation for these environments
or still English.

> I saw in the Code that Lyx still uses
> the options english and ngerman both:
> \documentclass[oneside,english,ngerman]{scrbook}

This means that there are both English and German text parts in your
document and German (as the last in the list) is the default language.

> Is it possible to change the language for all environments?

Yes. But sometimes you need to do it twice (or even more times),
because LyX does not change the language in all "nested" environments.
With the normal settings, you will still see the blue underline in
these environments/boxes/insets and the status bar might show the
"different than default" language.

It might also be the other way round: the inset is English but the
content German (then you won't see the blue underline).

I would look at the TeX source (View>Source) or at the *.lyx file in a
text editor.


Günter
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

Reply via email to