X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fapa.layout;h=e3ceb959d2e0ff10b5e6558614a4058f812f7da9;hb=9108c75fa5be0cdcc2d90307427fab71945cb7de;hp=c788333ecc9da4cb8a5f431c0357fb9f29e21365;hpb=f9b4dde589704f2db7a8fa68f50dc90073775763;p=lyx.git diff --git a/lib/layouts/apa.layout b/lib/layouts/apa.layout index c788333ecc..e3ceb959d2 100644 --- a/lib/layouts/apa.layout +++ b/lib/layouts/apa.layout @@ -1,8 +1,9 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[apa,apacite.sty,endfloat.sty,endnotes.sty]{article (APA)} +# \DeclareLaTeXClass[apa,apacite.sty,endfloat.sty,endnotes.sty,flushend.sty,txfonts.sty]{American Psychological Association (APA)} +# \DeclareCategory{Articles} # Author: Randy Gobbel -Format 33 +Format 76 Columns 1 Sides 1 PageStyle Headers @@ -22,6 +23,7 @@ EndPreamble Style Standard + Category MainText LatexName dummy LatexType Paragraph Margin Static @@ -37,6 +39,7 @@ End Style Title + Category FrontMatter LatexName title LatexType Command InTitle 1 @@ -68,6 +71,7 @@ End Style Abstract + Category FrontMatter LatexName abstract LatexType Command InTitle 1 @@ -90,6 +94,7 @@ End Style ShortTitle + Category FrontMatter LatexName shorttitle LatexType Command InTitle 1 @@ -112,6 +117,7 @@ End Style Author + Category FrontMatter LatexName author LatexType Command InTitle 1 @@ -127,6 +133,7 @@ End Style TwoAuthors + Category FrontMatter LatexName twoauthors LatexType Command InTitle 1 @@ -134,6 +141,7 @@ End Style ThreeAuthors + Category FrontMatter LatexName threeauthors LatexType Command InTitle 1 @@ -141,6 +149,7 @@ End Style FourAuthors + Category FrontMatter LatexName fourauthors LatexType Command InTitle 1 @@ -148,6 +157,7 @@ End Style Affiliation + Category FrontMatter LatexName affiliation LatexType Command InTitle 1 @@ -169,6 +179,7 @@ End Style TwoAffiliations + Category FrontMatter LatexName twoaffiliations LatexType Command InTitle 1 @@ -176,6 +187,7 @@ End Style ThreeAffiliations + Category FrontMatter LatexName threeaffiliations LatexType Command InTitle 1 @@ -183,19 +195,13 @@ End Style FourAffiliations + Category FrontMatter LatexName fouraffiliations LatexType Command InTitle 1 End -Style Journal - LatexName journal - LatexType Command - InTitle 1 -End - - Style Copyright LatexName ccoppy LatexType Command @@ -203,23 +209,8 @@ Style Copyright End -Style CopNum - LatexName copnum - LatexType Command - InTitle 1 -End - - -Style Note - LatexName note - LatexType Command - Font - Size Small - EndFont -End - - Style Acknowledgements + Category BackMatter LatexName acknowledgements LatexType Command Font @@ -255,23 +246,27 @@ End Input stdlayouts.inc -Style CenteredCaption - Margin First_Dynamic - LatexType Command - LatexName caption - NeedProtect 1 - LabelSep xx - ParSkip 0.4 - TopSep 0.5 - Align Center - LabelType Sensitive - LabelString "Senseless!" - OptionalArgs 1 - LabelFont - Series Bold - EndFont - LatexName centeredcaption - Align Center + +InsetLayout Caption:Centered + LabelString standard + LaTeXType command + LatexName centeredcaption + NeedProtect 1 + MultiPar false + Argument 1 + LabelString "Short Title|S" + Tooltip "The caption as it appears in the list of figures/tables" + InsertCotext 1 + EndArgument + HTMLStyle + div.float-caption { + text-align: center; + border: 2px solid black; + padding: 1ex; + margin: 1ex; + } + EndHTMLStyle + HTMLAttr "class='float-caption float-caption-centered'" End @@ -314,7 +309,7 @@ Style Section Series Bold Size Huge EndFont - TocLevel 1 + TocLevel 1 End @@ -324,7 +319,7 @@ Style Subsection Series Bold Size Larger EndFont - TocLevel 2 + TocLevel 2 End @@ -334,7 +329,7 @@ Style Subsubsection Series Bold Size Large EndFont - TocLevel 3 + TocLevel 3 End @@ -344,7 +339,7 @@ Style Paragraph Series Bold Size Normal EndFont - TocLevel 4 + TocLevel 4 End @@ -355,15 +350,17 @@ Style Subparagraph Size Normal Shape Italic EndFont - TocLevel 5 + TocLevel 5 End Style Itemize + Category List Margin Static LatexType Item_Environment LatexName APAitemize NextNoIndent 1 + ToggleIndent Never LeftMargin MMN LabelSep xx ItemSep 0.2 @@ -373,15 +370,30 @@ Style Itemize Align Block AlignPossible Block, Left LabelType Itemize - LabelString "*" + Argument item:1 + LabelString "Custom Item|s" + Tooltip "A customized item string" + EndArgument + Argument listpreamble:1 + LabelString "List preamble" + MenuString "List Preamble" + Tooltip "LaTeX code to be inserted before the first item" + PassThru 1 + Font + Family typewriter + Color latex + EndFont + EndArgument End Style Enumerate + Category List Margin Static LatexType Item_Environment LatexName APAenumerate NextNoIndent 1 + ToggleIndent Never LeftMargin MMN LabelSep xx ParSkip 0.0 @@ -393,10 +405,25 @@ Style Enumerate AlignPossible Block, Left LabelType Enumerate RefPrefix enu + Argument item:1 + LabelString "Custom Item|s" + Tooltip "A customized item string" + EndArgument + Argument listpreamble:1 + LabelString "List preamble" + MenuString "List Preamble" + Tooltip "LaTeX code to be inserted before the first item" + PassThru 1 + Font + Family typewriter + Color latex + EndFont + EndArgument End Style Seriate + Category List Margin Static LatexType Item_Environment LatexName seriate @@ -410,10 +437,20 @@ Style Seriate ParSep 0.0 Align Block AlignPossible Block, Left - LabelType Counter + LabelType Static LabelCounter enumii LabelString "(\alph{enumii})" LabelStringAppendix "(\alph{enumii})" RefPrefix ser + Argument listpreamble:1 + LabelString "List preamble" + MenuString "List Preamble" + Tooltip "LaTeX code to be inserted before the first item" + PassThru 1 + Font + Family typewriter + Color latex + EndFont + EndArgument End