]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/scrlttr2.layout
Update tex2lyx test files
[lyx.git] / lib / layouts / scrlttr2.layout
index d98ffb0fd94d42556391d0dbed7fe81d91365c2f..7b623f9a29b15e3e2e9ad3485d8570bc70421ab4 100644 (file)
@@ -1,10 +1,13 @@
 #% 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 <j.spitzmueller@gmx.de>, 2003/2/17.
 # Uwe Stöhr <uwestoehr@web.de>, 2008/2/03.
 
-Format 6
+Format 40
+Provides subscript 1
+
 Style Standard
        LatexName             dummy
        ParSep                0.4
@@ -14,7 +17,7 @@ End
 Input stdlists.inc
 Input stdlayouts.inc
 Input stdcounters.inc
-
+Input stdinsets.inc
 
 Style Description
        LabelFont
@@ -31,16 +34,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
@@ -263,6 +274,7 @@ Style Title
        LatexName             setkomavar
        LatexParam            {title}
        LabelString           "Title:"
+       HTMLTitle             true
 End
 
 
@@ -326,6 +338,9 @@ Style EndLetter
        Margin                Dynamic
        LatexType             Command
        LatexName             end{letter}
+       Preamble
+               \letterclosedtrue
+       EndPreamble
        KeepEmpty             1
        TopSep                1
        ParSkip               0.4