From a717cfa028b92ec197192f2ed95b09f188b4d9f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Tue, 7 Oct 2008 00:44:22 +0000 Subject: [PATCH] - elsarticle.lyx: forgot that elsarticle has a frontmatter environment and a \journal command - ACM-sigplan.lyx: small cleanup - elsarticle.layout, iopart.layout, sigplanconf.layout: categorize git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26794 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/elsarticle.layout | 9 ++++- lib/layouts/iopart.layout | 27 ++++++++----- lib/layouts/sigplanconf.layout | 32 +++++++++------- lib/templates/ACM-sigplan.lyx | 9 ++--- lib/templates/elsarticle.lyx | 70 +++++++++++++++++++++++++++------- 5 files changed, 104 insertions(+), 43 deletions(-) diff --git a/lib/layouts/elsarticle.layout b/lib/layouts/elsarticle.layout index b4f7b79a48..28fcef017a 100644 --- a/lib/layouts/elsarticle.layout +++ b/lib/layouts/elsarticle.layout @@ -51,9 +51,10 @@ NoStyle Chapter* Style Title Margin Static LatexType Command + LatexName title + Category FrontMatter InTitle 1 OptionalArgs 0 - LatexName title ParSkip 0.4 ItemSep 0 TopSep 0 @@ -72,6 +73,7 @@ Style "Title footnote" Margin Dynamic LatexType Command LatexName tnotetext + Category FrontMatter InTitle 1 OptionalArgs 1 ParSkip 0.4 @@ -90,6 +92,7 @@ End Style Author Margin Static LatexType Command + Category FrontMatter InTitle 1 OptionalArgs 1 LatexName author @@ -123,6 +126,7 @@ End Style Address Margin Static LatexType Command + Category FrontMatter LatexName address InTitle 1 OptionalArgs 1 @@ -150,6 +154,7 @@ Style Abstract Margin Static LatexType Environment LatexName abstract + Category FrontMatter InTitle 1 NextNoIndent 1 LeftMargin MMM @@ -178,6 +183,7 @@ Style Keywords Margin Dynamic LatexType Environment LatexName keyword + Category FrontMatter InTitle 1 Align Left NextNoIndent 1 @@ -198,6 +204,7 @@ Style Bibliography Margin First_Dynamic LatexType Bib_Environment LatexName thebibliography + Category BackMatter NextNoIndent 1 LeftMargin MM ParSkip 0.4 diff --git a/lib/layouts/iopart.layout b/lib/layouts/iopart.layout index dc4f9b78df..5e885dceda 100644 --- a/lib/layouts/iopart.layout +++ b/lib/layouts/iopart.layout @@ -55,9 +55,10 @@ NoStyle Chapter* Style Title Margin Static LatexType Command + LatexName title + Category FrontMatter InTitle 1 OptionalArgs 1 - LatexName title ParSkip 0.4 ItemSep 0 TopSep 0 @@ -123,9 +124,10 @@ End Style Author Margin Static LatexType Command - InTitle 1 LatexName author - LabelSep xxx + Category FrontMatter + InTitle 1 + LabelSep xxx ParSkip 0.4 TopSep 1.3 BottomSep 0.7 @@ -142,22 +144,24 @@ Style Address Margin Static LatexType Command LatexName address + Category FrontMatter InTitle 1 ParSkip 0.4 Align Center LabelType No_Label + Font + Shape Italic + EndFont End Style Email - Margin Static - LatexType Command + CopyStyle Address LatexName ead - InTitle 1 - ParSkip 0.4 BottomSep 0.5 - Align Center - LabelType No_Label + Font + Shape Up + EndFont End @@ -165,6 +169,7 @@ Style Abstract Margin Static LatexType Environment LatexName abstract + Category FrontMatter InTitle 1 NextNoIndent 1 LeftMargin MMM @@ -193,6 +198,7 @@ Style Keywords Margin Dynamic LatexType Command LatexName "noindent{\it Keywords\/}: " + Category FrontMatter InTitle 1 ParSkip 0.4 BottomSep 0.5 @@ -232,6 +238,7 @@ Style Acknowledgments Margin Dynamic LatexType Command LatexName ack{} + Category BackMatter NeedProtect 1 NextNoIndent 1 KeepEmpty 1 @@ -253,6 +260,7 @@ Style "Bibliography (plain)" Margin First_Dynamic LatexType Bib_Environment LatexName thebibliography + Category BackMatter NextNoIndent 1 LeftMargin MM ParSkip 0.4 @@ -275,6 +283,7 @@ End Style "Bibliography heading" CopyStyle Section LatexName section*{References} + Category BackMatter KeepEmpty 1 LabelType Static LabelString "References" diff --git a/lib/layouts/sigplanconf.layout b/lib/layouts/sigplanconf.layout index 3a5840eabd..5f2445438f 100644 --- a/lib/layouts/sigplanconf.layout +++ b/lib/layouts/sigplanconf.layout @@ -65,6 +65,7 @@ Style Conference Margin Dynamic LatexType Command LatexName conferenceinfo + Category FrontMatter InTitle 1 ParSkip 0.4 BottomSep 0.5 @@ -107,27 +108,28 @@ Style Subtitle CopyStyle Title LatexName subtitle Font - Size Larger + Size Larger EndFont End # overwrite the Author definition from stdtitle.inc Style Author - Margin Static - LatexType Command - InTitle 1 - LatexName authorinfo - LabelSep xxx - ParSkip 0.4 - TopSep 1.3 - BottomSep 0.7 - ParSep 0.7 - Align Center - AlignPossible None - LabelType No_Label + Margin Static + LatexType Command + LatexName authorinfo + Category FrontMatter + InTitle 1 + LabelSep xxx + ParSkip 0.4 + TopSep 1.3 + BottomSep 0.7 + ParSep 0.7 + Align Center + AlignPossible None + LabelType No_Label Font - Size Large + Size Large EndFont End @@ -150,6 +152,7 @@ Style Abstract Margin Static LatexType Environment LatexName abstract + Category FrontMatter NextNoIndent 1 LeftMargin MMM RightMargin MMM @@ -176,6 +179,7 @@ End Style Acknowledgments CopyStyle Abstract LatexName acks + Category BackMatter InTitle 0 LabelBottomsep 0 LabelType Top_Environment diff --git a/lib/templates/ACM-sigplan.lyx b/lib/templates/ACM-sigplan.lyx index abb8e1bbf8..35600ef893 100644 --- a/lib/templates/ACM-sigplan.lyx +++ b/lib/templates/ACM-sigplan.lyx @@ -72,7 +72,7 @@ The Conference expects 2 infos that are separated by \begin_inset Quotes erd \end_inset - in TeX-code as in this example. + in TeX code. \end_layout \end_inset @@ -167,10 +167,7 @@ status open \begin_layout Plain Layout At least one autor is required. -\end_layout - -\begin_layout Plain Layout -The Author field expects 3 infos that are separated by + The Author field expects 3 infos that are separated by \begin_inset Quotes eld \end_inset @@ -182,7 +179,7 @@ The Author field expects 3 infos that are separated by \begin_inset Quotes erd \end_inset - in TeX-code as in these examples. + in TeX code. \end_layout \end_inset diff --git a/lib/templates/elsarticle.lyx b/lib/templates/elsarticle.lyx index e1de0d81c6..0877459378 100644 --- a/lib/templates/elsarticle.lyx +++ b/lib/templates/elsarticle.lyx @@ -4,17 +4,8 @@ \begin_header \textclass elsarticle \begin_preamble -% options for the bibliography, see the elsarticle documentation for further -% information! -%\biboptions{longnamesfirst,angle,semicolon} - -% sort and compress citations -% the heading "Reference" is inserted by natbib -%\usepackage[numbers, sort&compress]{natbib} - -% define \newblock to get natbib work with ioparticle -% (normally only needed for the "thebibliography" environment) -%\def\newblock{\hskip .11em plus .33em minus .07em} +% specify here the journal +\journal{Example: Nuclear Physics B} \end_preamble \language english \inputencoding auto @@ -59,8 +50,9 @@ status open \begin_layout Plain Layout -For the right document class options to get the page format for your journal, - have a look at the elsarticle documentation: +The Journal is specified in the document preamble! For the right document + class options to get the page format for your journal, have a look at the + elsarticle documentation: \begin_inset Flex URL status collapsed @@ -77,6 +69,32 @@ http://www.ctan.org/get/macros/latex/contrib/elsarticle/elsdoc.pdf \end_inset +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +begin{frontmatter} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +starts the front matter +\end_layout + +\end_inset + + \end_layout \begin_layout Title @@ -676,6 +694,32 @@ MSC \end_inset +\end_layout + +\begin_layout Standard +\begin_inset ERT +status collapsed + +\begin_layout Plain Layout + + +\backslash +end{frontmatter} +\end_layout + +\end_inset + + +\begin_inset Note Note +status collapsed + +\begin_layout Plain Layout +ends the front matter +\end_layout + +\end_inset + + \end_layout \begin_layout Section