]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/apa.layout
latexfonts: more minor fixes
[lyx.git] / lib / layouts / apa.layout
index f4902741d83682af94781fe5e4c2c077dea932ba..e3ceb959d2e0ff10b5e6558614a4058f812f7da9 100644 (file)
@@ -1,7 +1,9 @@
 #% Do not delete the line below; configure depends on this
-#  \DeclareLaTeXClass[apa,apacite.sty]{APA style}
+#  \DeclareLaTeXClass[apa,apacite.sty,endfloat.sty,endnotes.sty,flushend.sty,txfonts.sty]{American Psychological Association (APA)}
+#  \DeclareCategory{Articles}
 # Author: Randy Gobbel <gobbel@andrew.cmu.edu>
 
+Format 76
 Columns                 1
 Sides                   1
 PageStyle               Headers
@@ -21,6 +23,7 @@ EndPreamble
 
 
 Style Standard
+       Category              MainText
        LatexName             dummy
        LatexType             Paragraph
        Margin                Static
@@ -36,6 +39,7 @@ End
 
 
 Style Title
+       Category              FrontMatter
        LatexName             title
        LatexType             Command
        InTitle               1
@@ -43,6 +47,7 @@ Style Title
          Size                Huge
        EndFont
        Align                 Center
+       HTMLTitle             true
 End
 
 
@@ -55,18 +60,18 @@ Style RightHeader
          Shape               SmallCaps
        EndFont
        Labeltype             Static
-       LabelString           "Right header: "
+       LabelString           "Right header:"
        Labelsep              M
        LabelFont
          Series              Bold
          Size                Small
        EndFont
        Align                 Right
-       AlignPossible         Right
 End
 
 
 Style Abstract
+       Category              FrontMatter
        LatexName             abstract
        LatexType             Command
        InTitle               1
@@ -79,7 +84,7 @@ Style Abstract
        Align                 Block
        AlignPossible         Block, Left, Right, Center
        Labeltype             Static
-       LabelString           "Abstract: "
+       LabelString           "Abstract:"
        Labelsep              M
        LabelFont
          Series              Bold
@@ -89,6 +94,7 @@ End
 
 
 Style ShortTitle
+       Category              FrontMatter
        LatexName             shorttitle
        LatexType             Command
        InTitle               1
@@ -96,7 +102,7 @@ Style ShortTitle
        AlignPossible         Left, Right, Center
        Margin                Dynamic
        Labeltype             Static
-       LabelString           "Short title: "
+       LabelString           "Short title:"
        Labelsep              M
        Font
          Shape               SmallCaps
@@ -111,6 +117,7 @@ End
 
 
 Style Author
+       Category              FrontMatter
        LatexName             author
        LatexType             Command
        InTitle               1
@@ -126,6 +133,7 @@ End
 
 
 Style TwoAuthors
+       Category              FrontMatter
        LatexName             twoauthors
        LatexType             Command
        InTitle               1
@@ -133,6 +141,7 @@ End
 
 
 Style ThreeAuthors
+       Category              FrontMatter
        LatexName             threeauthors
        LatexType             Command
        InTitle               1
@@ -140,6 +149,7 @@ End
 
 
 Style FourAuthors
+       Category              FrontMatter
        LatexName             fourauthors
        LatexType             Command
        InTitle               1
@@ -147,6 +157,7 @@ End
 
 
 Style Affiliation
+       Category              FrontMatter
        LatexName             affiliation
        LatexType             Command
        InTitle               1
@@ -158,7 +169,7 @@ Style Affiliation
        Align                 Left
        AlignPossible         Block, Left, Right, Center
        LabelType             Static
-       LabelString           "Affiliation: "
+       LabelString           "Affiliation:"
        Labelsep              M
        LabelFont
          Series              Bold
@@ -168,6 +179,7 @@ End
 
 
 Style TwoAffiliations
+       Category              FrontMatter
        LatexName             twoaffiliations
        LatexType             Command
        InTitle               1
@@ -175,6 +187,7 @@ End
 
 
 Style ThreeAffiliations
+       Category              FrontMatter
        LatexName             threeaffiliations
        LatexType             Command
        InTitle               1
@@ -182,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
@@ -202,25 +209,30 @@ Style Copyright
 End
 
 
-Style CopNum
-       LatexName             copnum
-       LatexType             Command
-       InTitle               1
-End
-
-
-Style Note
-       LatexName             note
+Style Acknowledgements
+       Category              BackMatter
+       LatexName             acknowledgements
        LatexType             Command
        Font
          Size                Small
        EndFont
+       Margin                Dynamic
+       LeftMargin            MMN
+       RightMargin           MMN
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       Labeltype             Static
+       LabelString           "Acknowledgements:"
+       Labelsep              M
+       LabelFont
+         Series              Bold
+         Size                Small
+       EndFont
 End
 
 
 Style Acknowledgments
-       LatexName             acknowledgments
-       LatexType             Command
+       ObsoletedBy           Acknowledgements
 End
 
 
@@ -234,11 +246,27 @@ End
 
 Input stdlayouts.inc
 
-Style CenteredCaption
-       CopyStyle             Caption
-       LatexName             centeredcaption
-       Align                 Center
-       AlignPossible         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
 
 
@@ -256,25 +284,83 @@ End
 
 Input stdsections.inc
 Input stdstarsections.inc
+Input stdinsets.inc
 
 Input stdfloats.inc
 Input stdcounters.inc
 
 NoStyle Part
-NoStyle Section
-NoStyle Subsection
-NoStyle Subsubsection
+NoCounter part
+NoStyle Part*
 NoStyle Chapter
-NoStyle Paragraph
-NoStyle Subparagraph
+NoCounter chapter
 NoStyle Chapter*
+NoStyle Section*
+NoStyle Subsection*
+NoStyle Subsubsection*
+NoStyle Paragraph*
+NoStyle Subparagraph*
+
+
+Style Section
+       LabelType             No_Label
+       Align                 Center
+       Font
+         Series              Bold
+         Size                Huge
+       EndFont
+       TocLevel              1
+End
+
+
+Style Subsection
+       LabelType             No_Label
+       Font
+         Series              Bold
+         Size                Larger
+       EndFont
+       TocLevel              2
+End
+
+
+Style Subsubsection
+       LabelType             No_Label
+       Font
+         Series              Bold
+         Size                Large
+       EndFont
+       TocLevel              3
+End
+
+
+Style Paragraph
+       LabelType             No_Label
+       Font
+         Series              Bold
+         Size                Normal
+       EndFont
+       TocLevel              4
+End
+
+
+Style Subparagraph
+       LabelType             No_Label
+       Font
+         Series              Bold
+         Size                Normal
+         Shape               Italic
+       EndFont
+       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
@@ -283,16 +369,31 @@ Style Itemize
        ParSep                0.3
        Align                 Block
        AlignPossible         Block, Left
-       LabelType             Static
-       LabelString           *
+       LabelType             Itemize
+       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
@@ -303,10 +404,26 @@ Style Enumerate
        Align                 Block
        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
@@ -320,6 +437,20 @@ Style Seriate
        ParSep                0.0
        Align                 Block
        AlignPossible         Block, Left
-       LabelType             Counter_EnumII
+       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