]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/apa.layout
Fix #8201: our translation mechanism chokes on the character "
[lyx.git] / lib / layouts / apa.layout
index 265f5e666d31084f1783e6866217a2b3e02467d4..ccd034f7c59878a875bd181558ee0da3f938e656 100644 (file)
 #% 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]{article (APA)}
 # Author: Randy Gobbel <gobbel@andrew.cmu.edu>
 
-# General textclass parameters
-# Description   "APA style"
-Columns         1
-Sides           1
-PageStyle       Headers
-MaxCounter      Counter_Section
+Format 36
+Columns                 1
+Sides                   1
+PageStyle               Headers
+
 
 ClassOptions
        Other "man"
-       FontSize      6|8|10|12
+       FontSize              6|8|10|12
 End
 
+
 Preamble
-\helvetica
-\author{Author} % hack around some bugs in apa.cls
-\affiliation{Affiliation} % hack around some bugs in apa.cls
+       \helvetica
+       \author{Author} % hack around some bugs in apa.cls
+       \affiliation{Affiliation} % hack around some bugs in apa.cls
 EndPreamble
 
-DefaultFont
-       Family        Roman
-       Series        Medium
-       Shape         Up
-       Size          Normal
-       Color         None
-EndFont
 
 Style Standard
-       LatexName     dummy
-       LatexType     Paragraph
-       Margin        Static
-       ParIndent     MM
-       ParSkip       0.4
-       ParSep        0.4
-       TopSep        1.0
-       BottomSep     1.0
-       Align         Block
-       AlignPossible Block, Left, Right, Center
-       LabelType     No_Label
+       LatexName             dummy
+       LatexType             Paragraph
+       Margin                Static
+       ParIndent             MM
+       ParSkip               0.4
+       ParSep                0.4
+       TopSep                1.0
+       BottomSep             1.0
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       LabelType             No_Label
 End
 
+
 Style Title
-       LatexName     title
-       LatexType     Command
-       InTitle       1
+       LatexName             title
+       LatexType             Command
+       InTitle               1
        Font
-         Size        Huge
+         Size                Huge
        EndFont
-       Align         Center
+       Align                 Center
+       HTMLTitle             true
 End
 
+
 Style RightHeader
-       LatexName     rightheader
-       LatexType     Command
-       InTitle       1
+       LatexName             rightheader
+       LatexType             Command
+       InTitle               1
        Font
-         Size        Small
-         Shape       SmallCaps
+         Size                Small
+         Shape               SmallCaps
        EndFont
-       Labeltype     Static
-       LabelString   "Right header: "
-       Labelsep      M
+       Labeltype             Static
+       LabelString           "Right header:"
+       Labelsep              M
        LabelFont
-         Series      Bold
-         Size        Small
+         Series              Bold
+         Size                Small
        EndFont
-       Align         Right
-       AlignPossible Right
+       Align                 Right
 End
 
+
 Style Abstract
-       LatexName     abstract
-       LatexType     Command
-       InTitle       1
+       LatexName             abstract
+       LatexType             Command
+       InTitle               1
        Font
-         Size        Small
+         Size                Small
        EndFont
-       Margin        Dynamic
-       LeftMargin    MMN
-       RightMargin   MMN
-       Align         Block
-       AlignPossible Block, Left, Right, Center
-       Labeltype     Static
-       LabelString   "Abstract: "
-       Labelsep      M
+       Margin                Dynamic
+       LeftMargin            MMN
+       RightMargin           MMN
+       Align                 Block
+       AlignPossible         Block, Left, Right, Center
+       Labeltype             Static
+       LabelString           "Abstract:"
+       Labelsep              M
        LabelFont
-         Series      Bold
-         Size        Small
+         Series              Bold
+         Size                Small
        EndFont
 End
 
+
 Style ShortTitle
-       LatexName     shorttitle
-       LatexType     Command
-       InTitle       1
-       Align         Left
-       AlignPossible Left, Right, Center
-       Margin        Dynamic
-       Labeltype     Static
-       LabelString   "Short title: "
-       Labelsep      M
+       LatexName             shorttitle
+       LatexType             Command
+       InTitle               1
+       Align                 Left
+       AlignPossible         Left, Right, Center
+       Margin                Dynamic
+       Labeltype             Static
+       LabelString           "Short title:"
+       Labelsep              M
        Font
-         Shape       SmallCaps
-         Size        Small
+         Shape               SmallCaps
+         Size                Small
        EndFont
        LabelFont
-         Series      Bold
-         Size        Small
-         Shape       Up
+         Series              Bold
+         Size                Small
+         Shape               Up
        EndFont
 End
 
+
 Style Author
-       LatexName     author
-       LatexType     Command
-       InTitle       1
-       Align         Center
-       AlignPossible Left, Right, Center
-       TopSep        0.5
-       BottomSep     0.5
+       LatexName             author
+       LatexType             Command
+       InTitle               1
+       Align                 Center
+       AlignPossible         Left, Right, Center
+       TopSep                0.5
+       BottomSep             0.5
        Font
-         Shape       Italic
-         Size        Small
+         Shape               Italic
+         Size                Small
        EndFont
 End
 
+
 Style TwoAuthors
-       LatexName     twoauthors
-       LatexType     Command
-       InTitle       1
+       LatexName             twoauthors
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style ThreeAuthors
-       LatexName     threeauthors
-       LatexType     Command
-       InTitle       1
+       LatexName             threeauthors
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style FourAuthors
-       LatexName     fourauthors
-       LatexType     Command
-       InTitle       1
+       LatexName             fourauthors
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style Affiliation
-       LatexName     affiliation
-       LatexType     Command
-       InTitle       1
-       Margin        Dynamic
-       ParSkip       0.4
-       BottomSep     1.5
-       TopSep        1.5
-       ParSep        1.5
-       Align         Left
-       AlignPossible Block, Left, Right, Center
-       LabelType     Static
-       LabelString   "Affiliation: "
-       Labelsep      M
+       LatexName             affiliation
+       LatexType             Command
+       InTitle               1
+       Margin                Dynamic
+       ParSkip               0.4
+       BottomSep             1.5
+       TopSep                1.5
+       ParSep                1.5
+       Align                 Left
+       AlignPossible         Block, Left, Right, Center
+       LabelType             Static
+       LabelString           "Affiliation:"
+       Labelsep              M
        LabelFont
-         Series      Bold
-         Size        Small
+         Series              Bold
+         Size                Small
        EndFont
 End
 
+
 Style TwoAffiliations
-       LatexName     twoaffiliations
-       LatexType     Command
-       InTitle       1
+       LatexName             twoaffiliations
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style ThreeAffiliations
-       LatexName     threeaffiliations
-       LatexType     Command
-       InTitle       1
+       LatexName             threeaffiliations
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style FourAffiliations
-       LatexName     fouraffiliations
-       LatexType     Command
-       InTitle       1
+       LatexName             fouraffiliations
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style Journal
-       LatexName     journal
-       LatexType     Command
-       InTitle       1
+       LatexName             journal
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style Copyright
-       LatexName     ccoppy
-       LatexType     Command
-       InTitle       1
+       LatexName             ccoppy
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style CopNum
-       LatexName     copnum
-       LatexType     Command
-       InTitle       1
+       LatexName             copnum
+       LatexType             Command
+       InTitle               1
 End
 
+
 Style Note
-       LatexName     note
-       LatexType     Command
+       LatexName             note
+       LatexType             Command
+       Font
+         Size                Small
+       EndFont
+End
+
+
+Style Acknowledgements
+       LatexName             acknowledgements
+       LatexType             Command
        Font
-         Size        Small
+         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
 
+
 Style ThickLine
-       LatexName     thickline
-       LatexType     Command
-       KeepEmpty     1
+       LatexName             thickline
+       LatexType             Command
+       KeepEmpty             1
 End
 
+
+
 Input stdlayouts.inc
 
 Style CenteredCaption
-       CopyStyle     Caption
-       LatexName     centeredcaption
-       Align         Center
-       AlignPossible Center
+       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
 End
 
+
 Style FitFigure
-       LatexName     fitfigure
-       LatexType     Command
+       LatexName             fitfigure
+       LatexType             Command
 End
 
+
 Style FitBitmap
-       LatexName     fitbitmap
-       LatexType     Command
+       LatexName             fitbitmap
+       LatexType             Command
 End
 
-############### Sections.
-# First the standard numbered definitions
+
 Input stdsections.inc
-# then define the unumbered sections, based on the numbered ones.
 Input stdstarsections.inc
+Input stdinsets.inc
 
 Input stdfloats.inc
 Input stdcounters.inc
 
-# remove the layouts that we do not need.
 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
+
 
-# Itemize style definition
 Style Itemize
        Margin                Static
        LatexType             Item_Environment
@@ -272,11 +372,10 @@ Style Itemize
        ParSep                0.3
        Align                 Block
        AlignPossible         Block, Left
-       LabelType             Static
-       LabelString           *
+       LabelType             Itemize
 End
 
-# Enumerate style definition
+
 Style Enumerate
        Margin                Static
        LatexType             Item_Environment
@@ -291,10 +390,11 @@ Style Enumerate
        ParSep                0.3
        Align                 Block
        AlignPossible         Block, Left
-       LabelType             Counter_EnumI
+       LabelType             Enumerate
+       RefPrefix             enu
 End
 
-#seriate style definition
+
 Style Seriate
        Margin                Static
        LatexType             Item_Environment
@@ -309,6 +409,10 @@ Style Seriate
        ParSep                0.0
        Align                 Block
        AlignPossible         Block, Left
-       LabelType             Counter_EnumII
+       LabelType             Counter
+       LabelCounter          enumii
+       LabelString           "(\alph{enumii})"
+       LabelStringAppendix   "(\alph{enumii})"
+       RefPrefix             ser
 End