On Tue, Feb 25, 2003 at 10:46:55AM +0100, EXT / TEAMLOG MELLERIN Pierrick wrote:
> I would like to know if it is possible to have the AMS environments (like
> Theorem, Example, ...) and other tag (like chapter, ...) in french in the
> output (DVI, ...) ? I set my document's language to french but that doesn't
> go ... (except "Table of contents" which is translated to "table des
> mati?res"). The only solution that I found consist in modifying manually the
> amsmath layout (by setting english terms to french terms).
>
> Also, a few days ago, I post a message about the possibility to have AMS
> environments with a "book" document (in place of 'book (AMS)') ? Is it
> possible ? One of the reasons is that, with 'book (AMS)', there is no
> possibility to have a line break for the start of subsection, and I would
> like to have one ... And 'book' allow it.
Yes, it is possible.
1. Create a symbolic link from LYXDIR/layouts/stdclass.inc to
~/.lyx/layouts/stdclass-orig.inc
2. Create a file ~/.lyx/layouts/stdclass.inc containing the following:
Preamble
\usepackage{amsthm}
\newtheorem{theorem}{Theorem}[section]
EndPreamble
Input stdclass-orig.inc
Input theorem.inc
-- end ---
You should replace the string 'Theorem' by the string you want.
3. Put the attached theorem.inc in ~/.lyx/layouts/, and replace the
last string in a line of the form
\newtheorem{corollary}[theorem]{Corollary}
by the string you want.
Style Theorem
MarginFirst_Dynamic
LatexType Environment
LatexName theorem
NextNoIndent 1
LabelSep xx
ParIndent MMM
ParSkip 0.4
ItemSep 0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left
LabelType Static
LabelString "Theorem #."
OptionalArgs 1
Font
Shape Italic
SizeNormal
EndFont
LabelFont
Shape Up
Series Bold
EndFont
End
Style Corollary
CopyStyle Theorem
LatexName corollary
LabelString "Corollary #."
Preamble
\newtheorem{corollary}[theorem]{Corollary}
EndPreamble
End
Style Lemma
CopyStyle Theorem
LatexName lemma
LabelString "Lemma #."
Preamble
\newtheorem{lemma}[theorem]{Lemma}
EndPreamble
End
Style Claim
CopyStyle Theorem
LatexName claim
LabelString "Claim #."
Preamble
\newtheorem{claim}[theorem]{Claim}
EndPreamble
End
Style Proof
MarginFirst_Dynamic
LatexType Environment
LatexName proof
NextNoIndent 1
LabelSep xx
ParIndent MMM
ParSkip 0.4
ItemSep 0.2
TopSep0.7
BottomSep 0.7
ParSep0.3
Align Block
AlignPossible Block, Left, Center
LabelType Static
LabelString "Proof:"
EndLabelType Filled_Box
Font
Shape Up
SizeNormal
EndFont
LabelFont
Shape Italic
EndFont
End