summaryrefslogtreecommitdiff
path: root/info/examples/KOMA-Script-4/Anhang-F
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/examples/KOMA-Script-4/Anhang-F
Initial commit
Diffstat (limited to 'info/examples/KOMA-Script-4/Anhang-F')
-rw-r--r--info/examples/KOMA-Script-4/Anhang-F/result/letter-label.pdfbin0 -> 43904 bytes
-rw-r--r--info/examples/KOMA-Script-4/Anhang-F/source/labelbasic.lco109
-rw-r--r--info/examples/KOMA-Script-4/Anhang-F/source/letter-label.tex65
-rw-r--r--info/examples/KOMA-Script-4/Anhang-F/source/settleford600label.lco41
4 files changed, 215 insertions, 0 deletions
diff --git a/info/examples/KOMA-Script-4/Anhang-F/result/letter-label.pdf b/info/examples/KOMA-Script-4/Anhang-F/result/letter-label.pdf
new file mode 100644
index 0000000000..2b406734eb
--- /dev/null
+++ b/info/examples/KOMA-Script-4/Anhang-F/result/letter-label.pdf
Binary files differ
diff --git a/info/examples/KOMA-Script-4/Anhang-F/source/labelbasic.lco b/info/examples/KOMA-Script-4/Anhang-F/source/labelbasic.lco
new file mode 100644
index 0000000000..16e93bf55d
--- /dev/null
+++ b/info/examples/KOMA-Script-4/Anhang-F/source/labelbasic.lco
@@ -0,0 +1,109 @@
+% labelbasic.lco
+% Copyright 2008 Markus Kohm
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Markus Kohm.
+%
+% This work consists of this file only.
+%-----------------------------------------------------------------------
+%
+% labelbasic.lco
+%
+% Copyright(c) Markus Kohm <komascript@gmx.de>, 2006-2011
+%
+%-----------------------------------------------------------------------------
+
+
+
+% This must be line 10!!!
+\ProvidesFile{labelbasic.lco}
+ [2011/09/30 v0.2 unsupported LCO-file]
+
+\newcommand*{\printlabel}[4][]{%
+ \begin{letter}{#2}%
+ \KOMAoptions{%
+ addrfield=true,%
+ backaddress=false,%
+ fromlogo=false,%
+ foldmarks=false%
+ }%
+
+ \firsthead{}
+ \firstfoot{}
+
+ \setkomavar{location}{}
+
+ \removereffields
+ \KOMAoption{refline}{nodate}
+
+ \setkomavar{signature}{}
+
+ #1
+
+ \setlengthtoplength{\@tempdima}{labelsheettopmargin}
+ \addtolengthplength[#3]{\@tempdima}{labelheight}
+ \addtolengthplength[-]{\@tempdima}{labelheight}
+ \addtolengthplength[#3]{\@tempdima}{labelvoffset}
+ \addtolengthplength[-]{\@tempdima}{labelvoffset}
+ \@setplength{toaddrvpos}{\@tempdima}
+
+ \setlengthtoplength{\@tempdima}{labelsheetleftmargin}
+ \addtolengthplength[#4]{\@tempdima}{labelwidth}
+ \addtolengthplength[-]{\@tempdima}{labelwidth}
+ \addtolengthplength[#4]{\@tempdima}{labelhoffset}
+ \addtolengthplength[-]{\@tempdima}{labelhoffset}
+ \@setplength{toaddrhpos}{\@tempdima}
+
+ \@setplength{toaddrindent}{\useplength{labelmargin}}
+ \@setplength{toaddrwidth}{\useplength{labelwidth}}
+ \@addtoplength[-]{toaddrwidth}{\useplength{labelmargin}}
+ \@setplength{toaddrheight}{\useplength{labelheight}}
+
+ \@setplength{refvpos}{0pt}
+ \@setplength{refaftervskip}{-5\baselineskip}
+ \@setplength{sigbeforevskip}{-5\baselineskip}
+
+ \opening{}
+ \closing{}
+
+ \end{letter}%
+}
+
+\@newplength{labelheight}
+\@newplength{labelhoffset}
+\@newplength{labelmargin}
+\@newplength{labelsheetleftmargin}
+\@newplength{labelsheettopmargin}
+\@newplength{labelvoffset}
+\@newplength{labelwidth}
+
+\newcommand*{\savelabel}[3][]{%
+ \AtEndDocument{\let\@printlabel\printlabel}%
+ \if@filesw
+ \begingroup
+ \let\\\@undefined
+ \DeclareRobustCommand*{\\}{\string\\}%
+ \usekomavar[\edef\toname]{toname}%
+ \usekomavar[\edef\toaddress]{toaddress}%
+ \protected@write\@auxout{%
+ \let\@printlabel\relax
+ }{%
+ \@printlabel[{#1}]{\toname\string\\\toaddress}%
+ {#2}{#3}%
+ }%
+ \endgroup
+ \fi
+}
+
+\newcommand*{\@printlabel}[4][]{}
+
+\endinput
diff --git a/info/examples/KOMA-Script-4/Anhang-F/source/letter-label.tex b/info/examples/KOMA-Script-4/Anhang-F/source/letter-label.tex
new file mode 100644
index 0000000000..cff768cd47
--- /dev/null
+++ b/info/examples/KOMA-Script-4/Anhang-F/source/letter-label.tex
@@ -0,0 +1,65 @@
+% letter-label.tex
+% Copyright 2008 Markus Kohm
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Markus Kohm.
+%
+% This work consists of this file only.
+%-----------------------------------------------------------------------
+\AtBeginDocument{%
+ \usepackage{xcolor,eso-pic}%
+ \BeforeClosingMainAux{%
+ \AddToShipoutPicture*{%
+ \thinlines\color{gray!50}%
+ \AtPageLowerLeft{%
+ \put(0,\LenToUnit{8mm}){%
+ \line(0,1){\LenToUnit{180mm}}%
+ }%
+ \multiput(\LenToUnit{70mm},\LenToUnit{8mm})(\LenToUnit{70mm},0){3}{%
+ \line(0,1){\LenToUnit{216mm}}%
+ }%
+ \multiput(0,\LenToUnit{8mm})(0,\LenToUnit{36mm}){6}{%
+ \line(1,0){\LenToUnit{210mm}}%
+ }%
+ \put(\LenToUnit{70mm},\LenToUnit{224mm}){%
+ \line(1,0){\LenToUnit{140mm}}%
+ }%
+ }\color{black}%
+ }%
+ }%
+}
+\documentclass[version=last,ich,settleford600label]{scrlttr2}
+\usepackage[ngerman]{babel}
+\usepackage{graphics}
+\begin{document}
+\setkomavar{date}{29. Februar 2011}
+\setkomavar{subject}{Mitgliederversammlung vermisst}
+\begin{letter}{%
+ Petra Mustermann\\
+ Vor dem Berg 1\\
+ 12345 Musterhausen%
+ }
+\savelabel{3}{2}
+\opening{Liebe Vereinsvorsitzende,}
+seit einem Jahr gab es keine Mitgliederversammlung
+mehr. Ich erinnere daran, dass unsere Satzung eine
+solche alle halbe Jahr vorsieht. Ich fordere den
+Vorstand daher auf, umgehend eine solche in
+Angriff zu nehmen.
+\closing{In Erwartung einer Einladung}
+\ps PS: Ich hoffe, Du nimmst mir das nicht krumm.
+\setkomavar*{enclseparator}{Anlage}
+\encl{Auszug aus der Satzung, in dem die
+ Mitgliederversammlungen geregelt sind}
+\cc{Die Vereinsvorsitzende\\Alle Mitglieder}
+\end{letter}
+\end{document}
diff --git a/info/examples/KOMA-Script-4/Anhang-F/source/settleford600label.lco b/info/examples/KOMA-Script-4/Anhang-F/source/settleford600label.lco
new file mode 100644
index 0000000000..c802191946
--- /dev/null
+++ b/info/examples/KOMA-Script-4/Anhang-F/source/settleford600label.lco
@@ -0,0 +1,41 @@
+% settleford600label.lco
+% Copyright 2008 Markus Kohm
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license or (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+%
+% This work has the LPPL maintenance status `maintained'.
+%
+% The Current Maintainer of this work is Markus Kohm.
+%
+% This work consists of this file only.
+%-----------------------------------------------------------------------
+%
+% settleford600label.lco
+%
+% Copyright(c) Markus Kohm <komascript@gmx.de>, 2006
+%
+%-----------------------------------------------------------------------------
+
+
+
+% This must be line 10!!!
+\ProvidesFile{settleford600label.lco}
+ [2008/07/09 v0.1 unsupported LCO-file]
+
+\LoadLetterOption{labelbasic}
+
+\@setplength{labelwidth}{70mm}
+\@setplength{labelheight}{36mm}
+\@setplength{labelhoffset}{0pt}
+\@setplength{labelvoffset}{0pt}
+\@setplength{labelsheettopmargin}{1mm}
+\@setplength{labelsheetleftmargin}{0pt}
+\@setplength{labelmargin}{3mm}
+
+\endinput