X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flayouts%2Fscrlttr2.layout;h=515ed8f0ef80d2724d6eef2f4a504b2320e1f7db;hb=8d8ee12e6481a2d9687228a4a5f9dd44a21a052e;hp=d98ffb0fd94d42556391d0dbed7fe81d91365c2f;hpb=886db92f822ad4b346a15204e84abd9aa8fc040b;p=lyx.git diff --git a/lib/layouts/scrlttr2.layout b/lib/layouts/scrlttr2.layout index d98ffb0fd9..515ed8f0ef 100644 --- a/lib/layouts/scrlttr2.layout +++ b/lib/layouts/scrlttr2.layout @@ -1,20 +1,25 @@ #% Do not delete the line below; configure depends on this -# \DeclareLaTeXClass[scrlttr2]{letter (KOMA-Script v.2)} +# \DeclareLaTeXClass{KOMA-Script Letter (V. 2)} +# \DeclareCategory{Letters} # KOMA scrlettr2 textclass definition file. -# Juergen Spitzmueller , 2003/2/17. +# Juergen Spitzmueller , 2003/2/17. # Uwe Stöhr , 2008/2/03. -Format 6 +Format 66 +Provides subscript 1 + Style Standard + Category MainText LatexName dummy ParSep 0.4 AlignPossible Block, Left, Right, Center + ParIndent MM End Input stdlists.inc Input stdlayouts.inc Input stdcounters.inc - +Input stdinsets.inc Style Description LabelFont @@ -31,16 +36,24 @@ Style Labeling EndPreamble End + Style List Obsoletedby Labeling End +Preamble + \newif\ifletterclosed +EndPreamble + Style Address LatexType Command LatexName begin LatexParam {letter} + Preamble + \AtEndDocument{\ifletterclosed\else\end{letter}\fi} + EndPreamble KeepEmpty 1 LeftMargin xxxxxxxxxxxx::xx LabelSep xx @@ -82,6 +95,7 @@ End Style Opening + Category Letter LatexType Command LatexName opening KeepEmpty 0 @@ -133,6 +147,7 @@ End Style Name + Category Letter LatexType Command LatexName setkomavar LatexParam {fromname} @@ -263,6 +278,7 @@ Style Title LatexName setkomavar LatexParam {title} LabelString "Title:" + HTMLTitle true End @@ -326,6 +342,9 @@ Style EndLetter Margin Dynamic LatexType Command LatexName end{letter} + Preamble + \letterclosedtrue + EndPreamble KeepEmpty 1 TopSep 1 ParSkip 0.4