#% 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.
+# Juergen Spitzmueller <spitz@lyx.org>, 2003/2/17.
+# Uwe Stöhr <uwestoehr@web.de>, 2008/2/03.
+
+Format 60
+Provides subscript 1
-Format 4
Style Standard
+ Category MainText
LatexName dummy
ParSep 0.4
AlignPossible Block, Left, Right, Center
Input stdlists.inc
Input stdlayouts.inc
Input stdcounters.inc
-
+Input stdinsets.inc
Style Description
LabelFont
EndPreamble
End
+
Style List
Obsoletedby Labeling
End
+Preamble
+ \newif\ifletterclosed
+EndPreamble
+
Style Address
LatexType Command
LatexName begin
LatexParam {letter}
- #Ugly hack!
Preamble
- \AtEndDocument{\end{letter}}
+ \AtEndDocument{\ifletterclosed\else\end{letter}\fi}
EndPreamble
KeepEmpty 1
LeftMargin xxxxxxxxxxxx::xx
BottomSep 1.5
ParSep 1.5
Align Left
- AlignPossible Left
LabelType Static
LabelString "Address:"
-
LabelFont
Series Bold
Shape Italic
BottomSep 1.5
ParSep 1.5
Align Left
- AlignPossible Left
LabelType Static
LabelString "Next Address:"
-
LabelFont
Series Bold
Shape Italic
Style Opening
+ Category Letter
LatexType Command
LatexName opening
KeepEmpty 0
BottomSep 0.4
ParSep 0.4
Align Left
- AlignPossible Left
LabelType Static
LabelString "Opening:"
-
LabelFont
Series Bold
Shape Italic
Style Name
+ Category Letter
LatexType Command
LatexName setkomavar
LatexParam {fromname}
KeepEmpty 1
- LeftMargin xxxxxxxxxxxx::xx
+ LeftMargin xxxxxxxxxxxxxxxxx::xx
LabelSep xx
TopSep 0.4
BottomSep 0.4
ParSep 0.4
Align Left
- AlignPossible Left
LabelType Static
LabelString "Sender Name:"
LatexName setkomavar
LatexParam {title}
LabelString "Title:"
+ HTMLTitle true
End
LatexParam {invoice}
LabelString "Invoice no.:"
End
+
+
+Style EndLetter
+ Margin Dynamic
+ LatexType Command
+ LatexName end{letter}
+ Preamble
+ \letterclosedtrue
+ EndPreamble
+ KeepEmpty 1
+ TopSep 1
+ ParSkip 0.4
+ Align Block
+ LabelSep xx
+ LabelType Static
+ LabelString "End of letter"
+ LabelFont
+ Series Bold
+ Color Green
+ EndFont
+End