X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fmemoir.layout;h=aaaab45054ff1b3914b12eae1ff0fe8df2c11f29;hb=bbbd1820957f8a3584765eecc8533da6853a979f;hp=e06b14fcf09f6225cb8c55801dd3ff62b1cb4062;hpb=b653286691f06a1dcfafda10bf44cce5ded8859e;p=lyx.git diff --git a/lib/layouts/memoir.layout b/lib/layouts/memoir.layout index e06b14fcf0..aaaab45054 100644 --- a/lib/layouts/memoir.layout +++ b/lib/layouts/memoir.layout @@ -1,20 +1,26 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[memoir]{book (Memoir)} +# \DeclareLaTeXClass[memoir]{Memoir} +# \DeclareCategory{Books} # Memoir textclass definition file -# Author: Jürgen Spitzmüller +# Author: Jürgen Spitzmüller # Improvements by: Bennett Helm # feel free to contribute missing features! -Format 29 +Format 104 Columns 1 Sides 2 SecNumDepth 1 TocDepth 1 DefaultStyle Standard PageStyle Headings +PageSize letter Provides makeidx 1 Provides framed 1 +Provides subscript 1 +# Geometry is supported, but the package options and paper sizes +# are ignored +Provides geometry-light 1 # Memoir has support for line spacing, but uses different names from # what setspace.sty does. Provides SetSpace 1 @@ -22,12 +28,14 @@ Provides SetSpace 1 ClassOptions FontSize 9|10|11|12|14|17 + PageSize a3|a4|a5|a6|b3|b4|b5|b6|executive|legal|letter PageStyle empty|plain|headings|myheadings|ruled|Ruled|companion Other oldfontcommands End Style Standard + Category MainText Margin Static LatexType Paragraph LatexName dummy @@ -36,6 +44,13 @@ Style Standard Align Block AlignPossible Block, Left, Right, Center LabelType No_Label + HTMLStyle + div.standard { + margin-bottom: 2ex; + text-align: left; + } + EndHTMLStyle + DocBookTag para End @@ -49,49 +64,115 @@ Input numreport.inc Style Part - OptionalArgs 1 - TocLevel -1 + Argument 1 + LabelString "Short Title|S" + Tooltip "The part as it appears in the table of contents/running headers" + InsertCotext 1 + EndArgument End - Style Chapter - OptionalArgs 2 - TocLevel 0 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The chapter as it appears in the table of contents" + InsertCotext 1 + EndArgument + Argument 2 + LabelString "Short Title (Header)" + Tooltip "The chapter as it appears in the running headers" + InsertCotext 1 + Requires 1 + EndArgument + TocLevel 0 End Style Chapter* - OptionalArgs 1 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The chapter as it appears in the table of contents" + InsertCotext 1 + EndArgument End Style Section - OptionalArgs 2 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The section as it appears in the table of contents" + InsertCotext 1 + EndArgument + Argument 2 + LabelString "Short Title (Header)" + Tooltip "The section as it appears in the running headers" + InsertCotext 1 + Requires 1 + EndArgument TocLevel 1 End Style Subsection - OptionalArgs 2 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The subsection as it appears in the table of contents" + InsertCotext 1 + EndArgument + Argument 2 + LabelString "Short Title (Header)" + Tooltip "The subsection as it appears in the running headers" + InsertCotext 1 + Requires 1 + EndArgument TocLevel 2 End Style Subsubsection - OptionalArgs 2 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The subsubsection as it appears in the table of contents" + InsertCotext 1 + EndArgument + Argument 2 + LabelString "Short Title (Header)" + Tooltip "The subsubsection as it appears in the running headers" + InsertCotext 1 + Requires 1 + EndArgument TocLevel 3 End Style Paragraph - OptionalArgs 2 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The paragraph as it appears in the table of contents" + InsertCotext 1 + EndArgument + Argument 2 + LabelString "Short Title (Header)" + Tooltip "The paragraph as it appears in the running headers" + InsertCotext 1 + Requires 1 + EndArgument TocLevel 4 End Style Subparagraph - OptionalArgs 2 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The subparagraph as it appears in the table of contents" + InsertCotext 1 + EndArgument + Argument 2 + LabelString "Short Title (Header)" + Tooltip "The subparagraph as it appears in the running headers" + InsertCotext 1 + Requires 1 + EndArgument TocLevel 5 End @@ -115,9 +196,8 @@ Style Chapterprecis EndFont End -#FIXME: this takes two parameters!!! Style Epigraph - Category Maintext + Category MainText Margin Right_Address_Box LatexType Command LatexName epigraph @@ -125,14 +205,26 @@ Style Epigraph BottomSep 1.5 ParSep 1.5 Align Left + Argument post:1 + MenuString "Epigraph Source|S" + LabelString "Source" + Tooltip "The source/author of this epigraph" + Mandatory 1 + EndArgument + HTMLStyle + div.epigraph { + float: right; + width: 33%; + font-size: small; + margin: 0.5em 0em 0.5em 1em; + } + EndHTMLStyle End -#FIXME: what is actually documented is \PoemTitle -#but \poemtitle is defined nevertheless. Weird. Style Poemtitle - Category Section + Category Sectioning LatexType Command - LatexName poemtitle + LatexName PoemTitle NeedProtect 1 NextNoIndent 1 LabelSep xxx @@ -140,22 +232,46 @@ Style Poemtitle TopSep 0.4 ParSep 0.4 Align center - OptionalArgs 1 + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The poem title as it appears in the table of contents" + InsertCotext 1 + EndArgument + Argument 2 + LabelString "Short Title (Header)" + Tooltip "The poem title as it appears in the running headers" + InsertCotext 1 + Requires 1 + EndArgument Font Series Bold EndFont + HTMLTag h2 End Style Poemtitle* CopyStyle Poemtitle Category Unnumbered - LatexName poemtitle* - OptionalArgs 0 + LatexName PoemTitle* + Argument 1 + LabelString "Short Title (TOC)|S" + Tooltip "The poem title as it appears in the table of contents" + InsertCotext 1 + EndArgument End Input stdtitle.inc + +Style Title + NeedProtect true +End + +Style Author + NeedProtect true +End + Input stdstruct.inc @@ -166,6 +282,7 @@ Style Bibliography Series Bold Size Huge EndFont + TocLevel 0 End @@ -173,7 +290,7 @@ Input lyxmacros.inc Input stdlayouts.inc Style Legend - Category Maintext + Category MainText LatexType Command LatexName legend NeedProtect 1 @@ -181,3 +298,51 @@ Style Legend ParSkip 0.4 Align Center End + +# +# Endnotes (called "pagenotes" in memoir) +# + +Counter endnotes + GuiName Endnotes + PrettyFormat "Endnote ##" +End + +InsetLayout Flex:Endnote + LyXType custom + LatexName pagenote + LatexType command + Counter endnotes + Decoration classic + Font + Size Small + EndFont + MultiPar true + LabelString endnote + Preamble + \makepagenote + EndPreamble + LangPreamble + \providecommand{\notesname}{_(Notes[[Endnotes]])} + EndLangPreamble + BabelPreamble + \addto\captions$$lang{\renewcommand{\notesname}{_(Notes[[Endnotes]])}} + EndBabelPreamble +End + +# We are only interested in the list +Float + Type pagenote + ListName "Endnotes (all)" + IsPredefined true + UsesFloatPkg false + ListCommand printpagenotes +End + +Float + Type pagenote* + ListName "Endnotes (sectioned)" + IsPredefined true + UsesFloatPkg false + ListCommand printpagenotes* +End