X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Faa.layout;h=677d48d156b64ad7581318bf9c9bcb023c8afcb9;hb=569841f2921f8d61c031c1435cfcf9823d5143fa;hp=622cd34e1741a1b4ad126d50a013ed1bf82cf45d;hpb=458b9ad6cdae7ae3c176357cb97186a8b91868e0;p=lyx.git diff --git a/lib/layouts/aa.layout b/lib/layouts/aa.layout index 622cd34e17..677d48d156 100644 --- a/lib/layouts/aa.layout +++ b/lib/layouts/aa.layout @@ -1,330 +1,395 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[aa]{article (A&A)} +# \DeclareLaTeXClass[aa,answers.sty]{Astronomy & Astrophysics} +# \DeclareCategory{Articles} # -# Author: Peter Sütterlin +# Author: Peter Sütterlin +# Author: Jürgen Spitzmüller +# Author: Uwe Stöhr # # 2001-05-17 take out include of stdlayouts; merge aapaper.inc # remove LaTeX style, rename to aa +# 2001-05-31 Adapt to aa.cls version 5.01: +# take out thesaurus, email -> mail +# change layout of title +# abstract is command +# 2008-06-09 Implement \inst and \email as char styles, +# implement paragraph style keywords +# 2008-10-26 Updated for aa.cls version 6.1 +# 2013-05-26 Updated for aa.cls version 8.2 + + +Format 71 +Columns 2 +Sides 2 +SecNumDepth 3 +TocDepth 0 +PageStyle Plain + +# Pre-loaded packages +Provides inputenc 1 +Provides natbib 1 + +ClassOptions + Other latin9 +End -# General textclass parameters -Columns 2 -Sides 2 -MaxCounter Counter_Section -SecNumDepth 3 -TocDepth 0 -PageStyle Plain - -DefaultFont - Family Roman - Series Medium - Shape Up - Size Normal - Color None -EndFont - -# Standard style definition Style Standard - Margin Static - LatexType Paragraph - LatexName dummy - ParIndent MM - ParSkip 0.4 - Align Block - AlignPossible Block, Left, Right, Center - LabelType No_Label + Category MainText + Margin Static + LatexType Paragraph + LatexName dummy + ParIndent MM + ParSkip 0.4 + Align Block + AlignPossible Block, Left, Right, Center + LabelType No_Label End -# I want to keep the entries in a logical order. -# Therefore I'll define the entries first, then fill them - -Style Section - End -Style Subsection - End -Style Subsubsection - End -Style Itemize - End -Style Enumerate - End -Style Description - End -Style List - End -Style Caption - End -Style Title - End -Style Subtitle - End -Style Author - End -Style Address - End -Style Email - End -Style Offprint - End -Style Thesaurus - End -Style Date - End -Style Abstract - End -Style Acknowledgement - End -Style Bibliography - End - -# OK, now we have a more or less consistent Ordering. Now fill the -# definitions. -# First, the standard includes - +Input stdinsets.inc Input stdlists.inc Input stdsections.inc Input stdtitle.inc Input stdstruct.inc - -# Remove unwanted Styles +Input stdfloats.inc +Input stdcounters.inc NoStyle Chapter +NoCounter chapter NoStyle Paragraph +NoCounter paragraph NoStyle Subparagraph +NoCounter subparagraph NoStyle Part +NoCounter part +NoStyle Abstract +NoStyle Bibliography -# Definitions only valid for A&A style -# Subitle style definition Style Subtitle - Margin Static - LatexType Command - InTitle 1 - LatexName subtitle - NextNoIndent 1 - ParSkip 0.4 - ItemSep 0 - TopSep 1.3 - BottomSep 1.3 - ParSep 1 - Align Left - AlignPossible Left - LabelType No_Label - - # standard font definition - Font - Size Normal - Series Bold - EndFont + Margin Static + LatexType Command + InTitle 1 + LatexName subtitle + Category FrontMatter + NextNoIndent 1 + ParSkip 0.4 + ItemSep 0 + TopSep 1.3 + BottomSep 1.3 + ParSep 1 + Align Center + LabelType No_Label + Font + Family Sans + Size Larger + Series Bold + EndFont End -# Address style definition + Style Address - Margin Static - LatexType Command - InTitle 1 - LatexName institute - ParSkip 0.4 - BottomSep 0.4 - Align Left - AlignPossible Block, Left, Right, Center - LabelType No_Label - - Font - Family Sans - Size Small - EndFont + LeftMargin MMM + Margin Static + LatexType Command + InTitle 1 + LatexName institute + Category FrontMatter + ParSkip 0.4 + #BottomSep 0.4 + Align Left + LabelType No_Label + Font + Family Roman + Size Small + EndFont End -# Email address style definition -Style Email - Margin Static - LatexType Command - InTitle 1 - LatexName mail - Align Left - AlignPossible Left - LeftMargin email:M - LabelType Static - LabelString email: - LabelSep M - - Font - Family Sans - Size Small - EndFont -End -# Address for Offprints style definition Style Offprint - Margin Static - LatexType Command - InTitle 1 - LatexName offprints - Align Left - AlignPossible Left - LeftMargin "Offprint Requests to:MN" - LabelType Static - LabelString "Offprint Requests to:" - LabelSep M - - Font - Family Sans - Size Small - EndFont + Margin Static + LatexType Command + Category FrontMatter + InTitle 1 + LatexName offprints + Align Left + LeftMargin "Offprint Requests to:M" + LabelType Static + LabelString "Offprint Requests to:" + LabelSep M + Font + Family Roman + Size Small + EndFont + LabelFont + Family Roman + Size Small + Shape Slanted + EndFont End -# Acnowledgement style definition -Style Acknowledgement - Margin Static - LatexType Environment - LatexName acknowledgements - NextNoIndent 1 - ItemSep 0 - TopSep 0.2 - BottomSep 0 - ParSep 0 - Align Block - AlignPossible Block - LabelType Top_Environment - LabelString Acknowledgements - LabelSep M - # standard font definition - Font - Size Small - EndFont - - # label font definition - LabelFont - Size Small - Shape Italic - EndFont -End - -Style Thesaurus - LabelType Static - LatexType Command - InTitle 1 - LatexName thesaurus - NextNoIndent 1 - TopSep 0 - BottomSep 1 - LeftMargin Thesaurus:M - LabelSep M - LabelType Static - LabelString Thesaurus: - Font - Size Small - EndFont + +Style Mail + Margin Static + LatexType Command + InTitle 1 + Category FrontMatter + LatexName mail + Align Left + LeftMargin "Correspondence to:M" + LabelType Static + LabelString "Correspondence to:" + LabelSep M + Font + Family Roman + Size Small + EndFont + LabelFont + Family Roman + Size Small + Shape Slanted + EndFont End -# Caption style definition -Style Caption - Margin First_Dynamic - LatexType Command - LatexName caption - NeedProtect 1 - LabelSep xx - ParSkip 0.4 - TopSep 0.5 - Align Center - AlignPossible Center - LabelType Sensitive - LabelString Caption - - # label font definition - LabelFont - Series Bold - EndFont + +Style Acknowledgement + Margin First_Dynamic + LatexType Environment + LatexName acknowledgements + Category BackMatter + NextNoIndent 0 + ItemSep 0 + TopSep 1.2 + BottomSep 0 + ParSep 0 + Align Block + LabelType Static + LabelString "Acknowledgements." + LabelSep M + Font + Size Small + EndFont + LabelFont + Size Small + Shape Italic + EndFont End -# Redefine some things -# Section style redefinition Style Section - TopSep 2.0 - BottomSep 1.3 - Font - Size Normal - EndFont + Font + Family Sans + Size Large + EndFont End -# Subsection style redefinition + Style Subsection - TopSep 1.7 - BottomSep 1.1 - Font - Series Medium - Size Normal - Shape Italic - EndFont + Font + Family Sans + Series Medium + Size Normal + Shape Slanted + EndFont End -# Subsubsection style redefinition + Style Subsubsection - TopSep 1.7 - BottomSep 1.1 - Font - Series Medium - Size Normal - EndFont + Font + Series Medium + Size Normal + EndFont End -# Title style redefinition + Style Title - TopSep 2 - BottomSep 1.3 - Align Left - AlignPossible Left - Font - Series Bold - EndFont + TopSep 2 + BottomSep 1.3 + Align Center + AlignPossible Left + Font + Family Sans + Series Bold + EndFont End -# Author style redefinition + Style Author - Align Left - AlignPossible Left - LabelType No_Label - Font - Size Normal - Series Bold - EndFont + Align Center + LabelType No_Label + BottomSep 1.5 + Font + Size Large + Series Medium + EndFont End -# Date style redefinition + Style Date - LabelSep "" - TopSep 1.2 - Align Left - AlignPossible Left - Font - Size Small - EndFont + InTitle 1 + LeftMargin MMM + LabelSep "" + TopSep 1.2 + Align Left + Font + Size Small + EndFont +End + + +InsetLayout "Flex:institutemark" + LyxType custom + LatexType command + LatexName inst + LabelString "Institute Mark" + Font + Color foreground + Size Small + Family Roman + Shape Up + Series Medium + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color green + Size Small + EndFont + MultiPar true +End + + +Style Abstract_(unstructured) + LatexType Command + LatexName abstract + Category FrontMatter + InTitle 1 + NextNoIndent 1 + Margin Static + LeftMargin MMM + RightMargin MMM + ParIndent "" + ItemSep 0 + TopSep 1.2 + BottomSep 0.7 + ParSep 0 + Align Left + LabelType Centered + LabelString "ABSTRACT" + LabelBottomSep 0.7 + Font + Size Small + EndFont + LabelFont + Family Sans + Series Bold + Size Small + EndFont +End + + +Style Abstract + ObsoletedBy Abstract_(unstructured) +End + + +Style Abstract_(structured) + CopyStyle Abstract_(unstructured) + Argument 1 + Mandatory 1 + LabelString "Context" + Tooltip "Context of your work (optional, can be left empty)" + EndArgument + Argument 2 + Mandatory 1 + LabelString "Aims" + Tooltip "Aims of your work" + EndArgument + Argument 3 + Mandatory 1 + LabelString "Methods" + Tooltip "Methods used in your work" + EndArgument + Argument 4 + Mandatory 1 + LabelString "Results" + Tooltip "Results of your work" + EndArgument +End + + +Style Keywords + Margin First_Dynamic + LatexType Command + LatexName keywords + Category FrontMatter + InTitle 1 + NextNoIndent 1 + LeftMargin MMM + RightMargin MMM + ParIndent "" + ItemSep 0 + TopSep 1.2 + BottomSep 0.7 + ParSep 0 + Align Block + LabelType static + LabelString "Key words." + LabelSep M + LabelBottomSep 0 + Font + Size Small + EndFont + LabelFont + Family Sans + Series Bold + Size Small + EndFont +End + + +InsetLayout Flex:Institute + LyXType charstyle + LatexType command + LatexName inst + Font + Color blue + EndFont + ResetsFont true +End + + +InsetLayout Flex:E-Mail + LyXType charstyle + LatexType command + LatexName email + Font + Family Typewriter + Color blue + EndFont + ResetsFont true End -# Abstract style redefinition -Style Abstract - LeftMargin "" - RightMargin "" - ParIndent "" - TopSep 1.4 - BottomSep 0.7 - LabelType Top_Environment - Font - Size Normal - EndFont - LabelFont - Series Bold - Size Normal - EndFont -End - -# Bibliography style redefinition -Style Bibliography - Align Left - AlignPossible Left - LabelFont - Series Bold - EndFont + +InsetLayout "Flex:Email" + LyxType custom + LatexType command + LatexName email + LabelString "Email" + Font + Color foreground + Size Small + Family Roman + Shape Up + Series Medium + Misc No_Emph + Misc No_Noun + Misc No_Bar + EndFont + LabelFont + Color urllabel + Size Small + EndFont + MultiPar true End