X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Frevtex4.layout;h=c4b902d0fd508826d35793be458df5a48da071ab;hb=dfaa4e9466fd0e5bf22bf55965a26e86a767cfa7;hp=87e99917cf65bd642c9c4b0f0619ef1bd6f5ef5c;hpb=b9b619641bf3a5cac120abba2e1b67e43995a384;p=lyx.git diff --git a/lib/layouts/revtex4.layout b/lib/layouts/revtex4.layout index 87e99917cf..c4b902d0fd 100644 --- a/lib/layouts/revtex4.layout +++ b/lib/layouts/revtex4.layout @@ -1,5 +1,6 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[revtex4,natbib.sty,revsymb.sty]{article (REVTeX 4)} +# \DeclareLaTeXClass[revtex4,natbib.sty,revsymb.sty]{REVTeX (V. 4)} +# \DeclareCategory{Articles} # RevTeX 4 textclass definition file. Based on: # AMS-Article textclass definition file. Taken from initial LyX source code # and from the Article textclass definition file, following the AMS sample @@ -8,14 +9,21 @@ # Marc Mengel (RevTeX) # Amir Karger (LyX v11.34 style modifications) # Amir Karger (RevTeX 4 beta) 9/1999, 7/2000 +# Heavily modifed and enhanced by serveral developers. +Format 65 -Format 30 -Columns 1 -Sides 1 -PageStyle Headers -Provides natbib-internal 1 -Provides url 1 +Columns 1 +Sides 1 +PageStyle Headers + +Provides natbib-internal 1 +Provides url 1 +Provides tablefootnote 1 +Provides footnote-alternative 1 + +SecNumDepth 4 +TocDepth 3 # Default textclass options. The user may need to modify this. ClassOptions @@ -33,11 +41,12 @@ Preamble \definecolor{CYAN}{cmyk}{1,0,0,0} \definecolor{MAGENTA}{cmyk}{0,1,0,0} \definecolor{YELLOW}{cmyk}{0,0,1,0} - } + } EndPreamble Style Standard + Category MainText Margin Static LatexType Paragraph LatexName dummy @@ -60,40 +69,24 @@ Style Section Align Center AlignPossible Block, Center, Left Font - Series Medium Shape Smallcaps - Size Large EndFont - TocLevel 1 -End - - -Style Subsection - Font - Series Bold - Size Normal - EndFont - TocLevel 2 End Style Subsubsection Font + Series Medium Shape Italic - Size Normal EndFont - TocLevel 3 End Style Paragraph - TopSep 0.7 - ParSep 0.4 Font + Series Medium Shape Italic - Size Normal EndFont - TocLevel 4 End # then define the unumbered sections, based on the numbered ones. @@ -111,6 +104,7 @@ Input stdstruct.inc Style Preprint + Category FrontMatter Margin Right_Address_Box LatexType Command InTitle 1 @@ -130,32 +124,22 @@ Style Title End -Style Author - Font - Size Large - Shape Smallcaps - EndFont -End - - Style Date LabelType Static LabelString "Date:" LabelFont Shape Italic - Size Large EndFont End Style Affiliation + Category FrontMatter Margin Dynamic LatexType Command InTitle 1 LatexName affiliation ParSkip 0.4 -# BottomSep 1.5 -# ParSep 1.5 Align Center AlignPossible Block, Left, Right, Center LabelType Static @@ -168,13 +152,29 @@ Style Affiliation End -Style AltAffiliation +Style Affiliation_(alternate) CopyStyle Affiliation PassThru 1 ParbreakIsNewline 1 LatexName altaffiliation - OptionalArgs 1 - LabelString "AltAffiliation" + Argument 1 + LabelString "Alternate Affiliation Option" + Tooltip "Optional argument to the altaffiliation command" + EndArgument + LabelString "Affiliation (alternate):" +End + + +Style Affiliation_(none) + CopyStyle Affiliation + KeepEmpty 1 + LabelString "No affiliation" + LatexName noaffiliation% +End + + +Style AltAffiliation + ObsoletedBy Affiliation_(alternate) End @@ -187,6 +187,13 @@ Style Address End +Style Collaboration + CopyStyle Affiliation + LatexName collaboration + LabelString "Collaboration:" +End + + Style Thanks CopyStyle Affiliation LatexName thanks @@ -199,7 +206,10 @@ Style Author_Email PassThru 1 ParbreakIsNewline 1 LatexName email - OptionalArgs 1 + Argument 1 + LabelString "Electronic Address Option|s" + Tooltip "Optional argument to the email command" + EndArgument LabelString "Electronic Address:" TextFont Family Typewriter @@ -215,7 +225,10 @@ Style Author_URL PassThru 1 ParbreakIsNewline 1 LatexName homepage - OptionalArgs 1 + Argument 1 + LabelString "Author URL Option" + Tooltip "Optional argument to the homepage command" + EndArgument LabelString "URL:" End @@ -224,31 +237,30 @@ Style Abstract InTitle 1 ItemSep 0.2 ParSep 0.3 - LabelFont - Size Large - EndFont End Style Acknowledgments + Category BackMatter LatexType Environment LatexName acknowledgments ParIndent MM ParSkip 0.4 + TopSep 0.7 Align Block AlignPossible Block, Left, Right, Center - LabelType Centered_Top_Environment - LabelString "acknowledgments" + LabelType Centered + LabelString "Acknowledgments" LabelBottomSep 0.5 LabelFont - Series Medium - Shape Smallcaps + Series Bold Size Large EndFont End Style PACS + Category FrontMatter Margin Dynamic LatexType Command InTitle 1 @@ -268,5 +280,11 @@ Style Keywords End +# RevTeX uses normal footnotes in tables +InsetLayout Foot:InFloatTable + CopyStyle Foot +End + + Input stdfloats.inc Input stdcounters.inc