X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fapa6.layout;h=b42981a89cc5f023a88d53bcb19e14c547389010;hb=9c8955ffd9df1a38a617bcbdf011c7b890ea23d1;hp=e635c6417383b4cd5ef203ee56c5dfaac443be4f;hpb=592a7d2144a6e56de50b9de352e907565bb7c18f;p=lyx.git diff --git a/lib/layouts/apa6.layout b/lib/layouts/apa6.layout index e635c64173..b42981a89c 100644 --- a/lib/layouts/apa6.layout +++ b/lib/layouts/apa6.layout @@ -1,9 +1,9 @@ #% 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), v. 6} +# \DeclareLaTeXClass[apa6,apacite.sty,endfloat.sty,endnotes.sty,flushend.sty,txfonts.sty]{American Psychological Association (APA), v. 6} # \DeclareCategory{Articles} # Author: Jacob Bishop based on the apa # layout written by Randy Gobbel. -Format 42 +Format 45 Columns 1 Sides 1 PageStyle Headers @@ -20,6 +20,7 @@ EndPreamble Style Standard + Category MainText LatexName dummy LatexType Paragraph Margin Static @@ -345,26 +346,24 @@ 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!" + +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 - LabelFont - Series Bold - EndFont - LatexName centeredcaption - Align Center + HTMLStyle + div.float-caption { + text-align: center; + border: 2px solid black; + padding: 1ex; + margin: 1ex; + } + EndHTMLStyle + HTMLAttr "class='float-caption float-caption-centered'" End @@ -514,7 +513,7 @@ Style Seriate ParSep 0.0 Align Block AlignPossible Block, Left - LabelType Counter + LabelType Static LabelCounter enumii LabelString "(\alph{enumii})" LabelStringAppendix "(\alph{enumii})"