* lib/layouts/IEEEtran.layout: Add a proper definition to the
preamble when using the MarkBoth environment (fix bug 3510).
Allow inserting an optional argument for theorem like environments.
Remove white space from begin of line in preamble stuff.
* lib/templates/IEEEtran.lyx: Reintroduce the MarkBoth environment
in the document body thanks to the fix above. Use optional argument
instead of ERT in Theorem environment. Use the new --Separator--
environment for splitting biography environments.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18767
a592a061-630c-0410-9148-
cb99ea01b6c8
LabelFont
Shape Italic
EndFont
LabelFont
Shape Italic
EndFont
LatexName thm
LabelString "Theorem #:"
Preamble
LatexName thm
LabelString "Theorem #:"
Preamble
- \newtheorem{thm}{Theorem}
+ \newtheorem{thm}{Theorem}
LatexName lemma
LabelString "Lemma #:"
Preamble
LatexName lemma
LabelString "Lemma #:"
Preamble
- \newtheorem{lemma}{Lemma}
+ \newtheorem{lemma}{Lemma}
LatexName cor
LabelString "Corollary #:"
Preamble
LatexName cor
LabelString "Corollary #:"
Preamble
- \newtheorem{cor}{Corollary}
+ \newtheorem{cor}{Corollary}
LatexName prop
LabelString "Proposition #:"
Preamble
LatexName prop
LabelString "Proposition #:"
Preamble
- \newtheorem{prop}{Proposition}
+ \newtheorem{prop}{Proposition}
LatexName conject
LabelString "Conjecture #:"
Preamble
LatexName conject
LabelString "Conjecture #:"
Preamble
- \newtheorem{conject}{Conjecture}
+ \newtheorem{conject}{Conjecture}
LatexName criter
LabelString "Criterion #:"
Preamble
LatexName criter
LabelString "Criterion #:"
Preamble
- \newtheorem{criter}{Criterion}
+ \newtheorem{criter}{Criterion}
LatexName fact
LabelString "Fact #:"
Preamble
LatexName fact
LabelString "Fact #:"
Preamble
- \newtheorem{fact}{Fact}
+ \newtheorem{fact}{Fact}
LatexName axi
LabelString "Axiom #:"
Preamble
LatexName axi
LabelString "Axiom #:"
Preamble
- \newtheorem{axi}{Axiom}
+ \newtheorem{axi}{Axiom}
LatexName definitn
LabelString "Definition #:"
Preamble
LatexName definitn
LabelString "Definition #:"
Preamble
- \newtheorem{definitn}{Definition}
+ \newtheorem{definitn}{Definition}
LatexName example
LabelString "Example #:"
Preamble
LatexName example
LabelString "Example #:"
Preamble
- \newtheorem{example}{Example}
+ \newtheorem{example}{Example}
LatexName condition
LabelString "Condition #:"
Preamble
LatexName condition
LabelString "Condition #:"
Preamble
- \newtheorem{condition}{Condition}
+ \newtheorem{condition}{Condition}
LatexName problem
LabelString "Problem #:"
Preamble
LatexName problem
LabelString "Problem #:"
Preamble
- \newtheorem{problem}{Problem}
+ \newtheorem{problem}{Problem}
LatexName exacise
LabelString "Exercise #:"
Preamble
LatexName exacise
LabelString "Exercise #:"
Preamble
- \newtheorem{exacise}{Exercise}
+ \newtheorem{exacise}{Exercise}
LatexName remrk
LabelString "Remark #:"
Preamble
LatexName remrk
LabelString "Remark #:"
Preamble
- \newtheorem{remrk}{Remark}
+ \newtheorem{remrk}{Remark}
LatexName claim
LabelString "Claim #:"
Preamble
LatexName claim
LabelString "Claim #:"
Preamble
- \newtheorem{claim}{Claim}
+ \newtheorem{claim}{Claim}
LatexName note
LabelString "Note #:"
Preamble
LatexName note
LabelString "Note #:"
Preamble
- \newtheorem{note}{Note}
+ \newtheorem{note}{Note}
LatexName notation
LabelString "Notation #:"
Preamble
LatexName notation
LabelString "Notation #:"
Preamble
- \newtheorem{notation}{Notation}
+ \newtheorem{notation}{Notation}
LatexName case
LabelString "Case #:"
Preamble
LatexName case
LabelString "Case #:"
Preamble
- \newtheorem{case}{Case}
+ \newtheorem{case}{Case}
Style MarkBoth
LaTeXType Command
Style MarkBoth
LaTeXType Command
Align Center
AlignPossible Center
Align Center
AlignPossible Center
+ Preamble
+ % protect against redefinition of \markboth by babel >= 3.6
+ \let\IEEEmarkboth=\markboth
+ EndPreamble
#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
#LyX 1.5.0svn created this file. For more info see http://www.lyx.org/
\begin_document
\begin_header
\textclass IEEEtran
\begin_document
\begin_header
\textclass IEEEtran
-\begin_preamble
-% The following definition specifies the text on the headers:
-% Use this instead of the "MarkBoth" paragraph style
-\markboth{This is for left pages}{and this is for right pages}
-\end_preamble
\language english
\inputencoding default
\font_roman default
\language english
\inputencoding default
\font_roman default
-\begin_layout Standard
-\begin_inset Note Note
-status open
-
-\begin_layout Standard
-To specify the left and right header, go to
-\family sans
-Document\SpecialChar \menuseparator
-Settings\SpecialChar \menuseparator
-Preamble
-\family default
- and change the definition there.
-\end_layout
-
-\end_inset
-
-
-\end_layout
-
\begin_layout Title
Your Title: And maybe a bit extra
\end_layout
\begin_layout Title
Your Title: And maybe a bit extra
\end_layout
simplicity, beauty, elegance
\end_layout
simplicity, beauty, elegance
\end_layout
+\begin_layout MarkBoth
+This is for left pages
+\begin_inset ERT
+status collapsed
+
+\begin_layout Standard
+
+}{
+\end_layout
+
+\end_inset
+
+and this is for right pages
+\end_layout
+
\begin_layout Section
Introduction
\begin_inset Note Note
\begin_layout Section
Introduction
\begin_inset Note Note
\end_layout
\begin_layout Theorem
\end_layout
\begin_layout Theorem
status collapsed
\begin_layout Standard
status collapsed
\begin_layout Standard
-
-[
-\end_layout
-
-\end_inset
-
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-]
- For a named theorem or theorem-like environment you need to use a little
- evil red text (LaTeX mode) around the name.
+For a named theorem or theorem-like environment you need to insert the name
+ through
+\family sans
+Insert\SpecialChar \menuseparator
+Short Title
+\family default
+, as done here.
\end_layout
\begin_layout Lemma
\end_layout
\begin_layout Lemma
-\begin_layout Standard
-\begin_inset ERT
-status collapsed
-
-\begin_layout Standard
-
-% This LaTeX comment is needed to force LyX to generate two separate environment
-s
-\end_layout
-
-\begin_layout Standard
-
-\end_layout
-
-\end_inset
-
+\begin_layout --Separator--