]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/scrlttr2.layout
fix typos.
[lyx.git] / lib / layouts / scrlttr2.layout
index d98ffb0fd94d42556391d0dbed7fe81d91365c2f..fa9a9c8680e67d041dde6277e66d187dc3ae341c 100644 (file)
@@ -4,7 +4,7 @@
 # Juergen Spitzmueller <j.spitzmueller@gmx.de>, 2003/2/17.
 # Uwe Stöhr <uwestoehr@web.de>, 2008/2/03.
 
-Format 6
+Format 11
 Style Standard
        LatexName             dummy
        ParSep                0.4
@@ -14,7 +14,7 @@ End
 Input stdlists.inc
 Input stdlayouts.inc
 Input stdcounters.inc
-
+Input stdinsets.inc
 
 Style Description
        LabelFont
@@ -31,16 +31,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
@@ -326,6 +334,9 @@ Style EndLetter
        Margin                Dynamic
        LatexType             Command
        LatexName             end{letter}
+       Preamble
+               \letterclosedtrue
+       EndPreamble
        KeepEmpty             1
        TopSep                1
        ParSkip               0.4