method to avoid to use the end letter environment (patch by Jürgen)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22811 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2008-02-06 19:56:00 +00:00
parent 54352badaf
commit 11b34c23ff
2 changed files with 14 additions and 14 deletions

View File

@ -31,16 +31,24 @@ Style Labeling
EndPreamble EndPreamble
End End
Style List Style List
Obsoletedby Labeling Obsoletedby Labeling
End End
Preamble
\newif\ifletterclosed
EndPreamble
Style Address Style Address
LatexType Command LatexType Command
LatexName begin LatexName begin
LatexParam {letter} LatexParam {letter}
Preamble
\AtEndDocument{\ifletterclosed\else\end{letter}\fi}
EndPreamble
KeepEmpty 1 KeepEmpty 1
LeftMargin xxxxxxxxxxxx::xx LeftMargin xxxxxxxxxxxx::xx
LabelSep xx LabelSep xx
@ -326,6 +334,9 @@ Style EndLetter
Margin Dynamic Margin Dynamic
LatexType Command LatexType Command
LatexName end{letter} LatexName end{letter}
Preamble
\letterclosedtrue
EndPreamble
KeepEmpty 1 KeepEmpty 1
TopSep 1 TopSep 1
ParSkip 0.4 ParSkip 0.4

View File

@ -146,6 +146,7 @@ status collapsed
\begin_layout Standard \begin_layout Standard
\backslash \backslash
today today
\end_layout \end_layout
@ -186,7 +187,8 @@ Preamble
status collapsed status collapsed
\begin_layout Standard \begin_layout Standard
http://www.ctan.org/tex-archive/macros/latex/contrib/supported/koma-script/scrguien.pdf http://www.ctan.org/tex-archive/macros/latex/contrib/supported/koma-script/scrguie
n.pdf
\end_layout \end_layout
\end_inset \end_inset
@ -208,18 +210,5 @@ s.: The blue colored items have to be before the address, the magenta colored
The LyX Users The LyX Users
\end_layout \end_layout
\begin_layout EndLetter
\begin_inset Note Note
status collapsed
\begin_layout Standard
keep this environment empty
\end_layout
\end_inset
\end_layout
\end_body \end_body
\end_document \end_document