From 11b34c23ff92d8163ac0f7ddd59b42ca904928ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Wed, 6 Feb 2008 19:56:00 +0000 Subject: [PATCH] =?UTF-8?q?method=20to=20avoid=20to=20use=20the=20end=20le?= =?UTF-8?q?tter=20environment=20(patch=20by=20J=C3=BCrgen)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22811 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/scrlttr2.layout | 11 +++++++++++ lib/templates/koma-letter2.lyx | 17 +++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/layouts/scrlttr2.layout b/lib/layouts/scrlttr2.layout index b9b651a537..48bf15d673 100644 --- a/lib/layouts/scrlttr2.layout +++ b/lib/layouts/scrlttr2.layout @@ -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 diff --git a/lib/templates/koma-letter2.lyx b/lib/templates/koma-letter2.lyx index 4070a3d215..357cc704e8 100644 --- a/lib/templates/koma-letter2.lyx +++ b/lib/templates/koma-letter2.lyx @@ -146,6 +146,7 @@ status collapsed \begin_layout Standard + \backslash today \end_layout @@ -186,7 +187,8 @@ Preamble status collapsed \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_inset @@ -208,18 +210,5 @@ s.: The blue colored items have to be before the address, the magenta colored The LyX Users \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_document