mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
6b49b6b129
This makes the defaults of Inset::inheritFont() and Inset::resetFontEdit() compatible. There is no user visible change except for the Chunk inset which does not produce invalid LaTeX after editing operations anymore. This is the safe version for 2.1.0, for later there are still open questions: - All insets with ResetsFont true should be audited: Is this really needed, or do they show similar editing problems as the Chunk inset? - Does inheritFont() need to be customizable in the layout file as well? - Is resetFontEdit() != !inheritFont() needed at all? I did not use change tracking for the docs, since I updated all existing translations.
422 lines
8.5 KiB
Plaintext
422 lines
8.5 KiB
Plaintext
#% Do not delete the line below; configure depends on this
|
|
# \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 49
|
|
Columns 1
|
|
Sides 1
|
|
PageStyle Headers
|
|
|
|
|
|
ClassOptions
|
|
Other "man"
|
|
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
|
|
EndPreamble
|
|
|
|
|
|
Style Standard
|
|
Category MainText
|
|
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
|
|
Category FrontMatter
|
|
LatexName title
|
|
LatexType Command
|
|
InTitle 1
|
|
Font
|
|
Size Huge
|
|
EndFont
|
|
Align Center
|
|
HTMLTitle true
|
|
End
|
|
|
|
|
|
Style RightHeader
|
|
LatexName rightheader
|
|
LatexType Command
|
|
InTitle 1
|
|
Font
|
|
Size Small
|
|
Shape SmallCaps
|
|
EndFont
|
|
Labeltype Static
|
|
LabelString "Right header:"
|
|
Labelsep M
|
|
LabelFont
|
|
Series Bold
|
|
Size Small
|
|
EndFont
|
|
Align Right
|
|
End
|
|
|
|
|
|
Style Abstract
|
|
Category FrontMatter
|
|
LatexName abstract
|
|
LatexType Command
|
|
InTitle 1
|
|
Font
|
|
Size Small
|
|
EndFont
|
|
Margin Dynamic
|
|
LeftMargin MMN
|
|
RightMargin MMN
|
|
Align Block
|
|
AlignPossible Block, Left, Right, Center
|
|
Labeltype Static
|
|
LabelString "Abstract:"
|
|
Labelsep M
|
|
LabelFont
|
|
Series Bold
|
|
Size Small
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style ShortTitle
|
|
Category FrontMatter
|
|
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
|
|
EndFont
|
|
LabelFont
|
|
Series Bold
|
|
Size Small
|
|
Shape Up
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style Author
|
|
Category FrontMatter
|
|
LatexName author
|
|
LatexType Command
|
|
InTitle 1
|
|
Align Center
|
|
AlignPossible Left, Right, Center
|
|
TopSep 0.5
|
|
BottomSep 0.5
|
|
Font
|
|
Shape Italic
|
|
Size Small
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style TwoAuthors
|
|
Category FrontMatter
|
|
LatexName twoauthors
|
|
LatexType Command
|
|
InTitle 1
|
|
End
|
|
|
|
|
|
Style ThreeAuthors
|
|
Category FrontMatter
|
|
LatexName threeauthors
|
|
LatexType Command
|
|
InTitle 1
|
|
End
|
|
|
|
|
|
Style FourAuthors
|
|
Category FrontMatter
|
|
LatexName fourauthors
|
|
LatexType Command
|
|
InTitle 1
|
|
End
|
|
|
|
|
|
Style Affiliation
|
|
Category FrontMatter
|
|
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
|
|
EndFont
|
|
End
|
|
|
|
|
|
Style TwoAffiliations
|
|
Category FrontMatter
|
|
LatexName twoaffiliations
|
|
LatexType Command
|
|
InTitle 1
|
|
End
|
|
|
|
|
|
Style ThreeAffiliations
|
|
Category FrontMatter
|
|
LatexName threeaffiliations
|
|
LatexType Command
|
|
InTitle 1
|
|
End
|
|
|
|
|
|
Style FourAffiliations
|
|
Category FrontMatter
|
|
LatexName fouraffiliations
|
|
LatexType Command
|
|
InTitle 1
|
|
End
|
|
|
|
|
|
Style Copyright
|
|
LatexName ccoppy
|
|
LatexType Command
|
|
InTitle 1
|
|
End
|
|
|
|
|
|
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
|
|
ObsoletedBy Acknowledgements
|
|
End
|
|
|
|
|
|
Style ThickLine
|
|
LatexName thickline
|
|
LatexType Command
|
|
KeepEmpty 1
|
|
End
|
|
|
|
|
|
|
|
Input stdlayouts.inc
|
|
|
|
|
|
InsetLayout Caption:Centered
|
|
LabelString standard
|
|
LaTeXType command
|
|
LatexName centeredcaption
|
|
Argument 1
|
|
LabelString "Short Title|S"
|
|
Tooltip "The caption as it appears in the list of figures/tables"
|
|
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
|
|
|
|
|
|
Style FitFigure
|
|
LatexName fitfigure
|
|
LatexType Command
|
|
End
|
|
|
|
|
|
Style FitBitmap
|
|
LatexName fitbitmap
|
|
LatexType Command
|
|
End
|
|
|
|
|
|
Input stdsections.inc
|
|
Input stdstarsections.inc
|
|
Input stdinsets.inc
|
|
|
|
Input stdfloats.inc
|
|
Input stdcounters.inc
|
|
|
|
NoStyle Part
|
|
NoCounter part
|
|
NoStyle Part*
|
|
NoStyle Chapter
|
|
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
|
|
LeftMargin MMN
|
|
LabelSep xx
|
|
ItemSep 0.2
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ParSep 0.3
|
|
Align Block
|
|
AlignPossible Block, Left
|
|
LabelType Itemize
|
|
Argument item:1
|
|
LabelString "Custom Item|s"
|
|
Tooltip "A customized item string"
|
|
EndArgument
|
|
End
|
|
|
|
|
|
Style Enumerate
|
|
Category List
|
|
Margin Static
|
|
LatexType Item_Environment
|
|
LatexName APAenumerate
|
|
NextNoIndent 1
|
|
LeftMargin MMN
|
|
LabelSep xx
|
|
ParSkip 0.0
|
|
ItemSep 0.2
|
|
TopSep 0.7
|
|
BottomSep 0.7
|
|
ParSep 0.3
|
|
Align Block
|
|
AlignPossible Block, Left
|
|
LabelType Enumerate
|
|
RefPrefix enu
|
|
Argument item:1
|
|
LabelString "Custom Item|s"
|
|
Tooltip "A customized item string"
|
|
EndArgument
|
|
End
|
|
|
|
|
|
Style Seriate
|
|
Category List
|
|
Margin Static
|
|
LatexType Item_Environment
|
|
LatexName seriate
|
|
NextNoIndent 1
|
|
LeftMargin MMN
|
|
LabelSep x
|
|
ParSkip 0.0
|
|
ItemSep 0.9
|
|
TopSep 0.5
|
|
BottomSep 0.5
|
|
ParSep 0.0
|
|
Align Block
|
|
AlignPossible Block, Left
|
|
LabelType Static
|
|
LabelCounter enumii
|
|
LabelString "(\alph{enumii})"
|
|
LabelStringAppendix "(\alph{enumii})"
|
|
RefPrefix ser
|
|
End
|
|
|