summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-12-26 22:26:13 +0000
committerKarl Berry <karl@freefriends.org>2007-12-26 22:26:13 +0000
commitd892fc1b7f46275b1e5c291db0305eac83abe9e3 (patch)
tree50dac7763bbe931304c867a5da111a3f324b0a89 /Master/texmf-dist/source/latex/koma-script
parentadb11f7c6718f766a22dbb2ce1b196a36acc197d (diff)
koma-script update (25dec07)
git-svn-id: svn://tug.org/texlive/trunk@5924 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/koma-script')
-rw-r--r--Master/texmf-dist/source/latex/koma-script/ChangeLog360
-rw-r--r--Master/texmf-dist/source/latex/koma-script/Makefile20
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/Makefile.guide11
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/Makefile.latexinit1
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/english/japanlco.tex603
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/english/scrbookreportarticle.tex141
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2.tex739
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/english/scrpage2.tex10
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/german/scrbookreportarticle.tex282
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/german/scrlttr2.tex912
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/german/scrpage2.tex6
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/guide.tex4
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/plength.dtx31
-rw-r--r--Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls22
-rw-r--r--Master/texmf-dist/source/latex/koma-script/japanlco.dtx344
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrbeta.dtx2
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkbase.dtx6
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkcomp.dtx12
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkfloa.dtx18
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrklco.dtx7
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkmisc.dtx15
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrknpap.dtx586
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkpage.dtx4
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrksect.dtx16
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrktare.dtx102
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrkvers.dtx2
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrlfile.dtx26
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrmain.ins44
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrpage.dtx2
-rw-r--r--Master/texmf-dist/source/latex/koma-script/scrsource.tex1
-rw-r--r--Master/texmf-dist/source/latex/koma-script/tocstyle.dtx1931
31 files changed, 5533 insertions, 727 deletions
diff --git a/Master/texmf-dist/source/latex/koma-script/ChangeLog b/Master/texmf-dist/source/latex/koma-script/ChangeLog
index 350d8cb4c8b..5388341dffa 100644
--- a/Master/texmf-dist/source/latex/koma-script/ChangeLog
+++ b/Master/texmf-dist/source/latex/koma-script/ChangeLog
@@ -1,3 +1,363 @@
+r594 2007-12-21 11:15:13 +0100 mjk:
+
+ * scrkvers.dtx: version bug fixed
+
+r593 2007-12-21 11:03:40 +0100 mjk:
+
+ * releaselist.txt: release 2007/12/24 v2.98
+
+r592 2007-12-21 11:03:07 +0100 mjk:
+
+ * scrkvers.dtx, scrkcomp.dtx: prepared for 2.98
+
+r591 2007-12-21 10:59:43 +0100 mjk:
+
+ * tocstyle.dtx: note about scrlfile.dtx changed to note about
+ tocstyle.dtx at ins-part
+
+r590 2007-12-21 10:54:24 +0100 mjk:
+
+ * Makefile: support packaging of alpha packages
+
+r589 2007-12-18 18:58:02 +0100 mjk:
+
+ * scrlfile.dtx: spellfix and loading packages outside of any \if...\fi
+ to avoid errors in \if...\fi nesting of packages are reported as
+ errors of scrlfile
+
+r588 2007-12-17 09:00:09 +0100 mjk:
+
+ * TODO: almost all done
+
+r587 2007-12-17 08:54:59 +0100 mjk:
+
+ * doc/, doc/english/, doc/english/scrbookreportarticle.tex: german
+ partentrypagenumber description at table of elements removed
+
+r586 2007-12-17 08:50:43 +0100 mjk:
+
+ * scrbeta.dtx: end comment fixed
+
+r585 2007-12-17 08:47:03 +0100 mjk:
+
+ * doc/, doc/english/, doc/english/scrlttr2.tex,
+ doc/english/japanlco.tex: some additional translation and improvements
+ by GH and MJK
+
+r584 2007-12-15 15:57:37 +0100 mjk:
+
+ * TODO: Gernot has done a lot of the TODOs
+
+r583 2007-12-15 15:51:52 +0100 mjk:
+
+ * doc/, doc/german/, doc/german/scrlttr2.tex: Tabelle der
+ vordefinierten lco-Dateien um die Japanischen lco-Dateien ergänzt
+
+r582 2007-12-15 15:42:28 +0100 mjk:
+
+ * doc/, doc/scrguide.cls: \oentry added
+
+r581 2007-12-15 13:30:50 +0100 mjk:
+
+ * manifest.txt: japanlco.tex added for english only
+
+r580 2007-12-15 13:27:17 +0100 mjk:
+
+ * doc/, doc/Makefile.guide: japanlco.tex added for english only
+
+r579 2007-12-15 13:23:06 +0100 mjk:
+
+ * doc/, doc/guide.tex, doc/scrguide.cls, doc/english/,
+ doc/english/japanlco.tex: new appendix for englisch guide
+
+r578 2007-12-15 13:18:13 +0100 mjk:
+
+ * doc/, doc/english/, doc/english/scrbookreportarticle.tex: some new
+ translations by GH
+
+r577 2007-12-15 12:58:50 +0100 mjk:
+
+ * doc/, doc/english/, doc/english/scrlttr2.tex: translations added by
+ GH
+
+r576 2007-12-07 10:46:47 +0100 mjk:
+
+ * tocstyle.dtx: Alpha note added
+
+r575 2007-12-07 10:04:44 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrbookreportarticle.tex:
+ Änderung bezüglich der Nummerierung in "\frontmatter" dokumentiert
+
+r574 2007-12-07 09:27:54 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: "location"-Werte
+ für Option "fromalign" dokumentiert
+
+r573 2007-12-07 09:24:24 +0100 mjk:
+
+ * doc/, doc/english/, doc/english/scrpage2.tex: \ChangedAt entries
+ fixed
+
+r572 2007-12-07 09:23:01 +0100 mjk:
+
+ * doc/, doc/german/, doc/german/scrpage2.tex: \ChangedAt-Einträge
+ korrigiert
+
+r571 2007-12-07 08:27:39 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: Optionen
+ "firsthead" und "firstfoot" dokumentiert (einschl. Auswirkungen auf
+ Pseudolänge "firstfootvpos")
+
+r570 2007-12-04 12:05:53 +0100 mjk:
+
+ * TODO: tocstyle wird erwähnt
+
+r569 2007-12-04 12:04:15 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: Pseudo-Längen
+ "lochpos", "locvpos", "locheight" dokumentiert
+
+r568 2007-12-04 11:46:01 +0100 mjk:
+
+ * TODO: rechter Einzug bei toaddrindent ist bereits dokumentiert
+
+r567 2007-12-04 11:44:02 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: name of lco file
+ != name of option
+
+r566 2007-12-04 11:36:59 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: neue Werte für
+ Option "subject"; Tabelle der Pseudo-Längen sortiert
+
+r565 2007-11-30 13:06:11 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrbookreportarticle.tex,
+ doc/german/scrlttr2.tex: environment documentation changed; font
+ elements for address field
+
+r564 2007-11-29 12:35:39 +0100 mjk:
+
+ * TODO: partentry, partentrypagenumber, chapterentry,
+ chapterentrypagenumber, sectionentry, sectionentrypagenumber
+ dokumentiert aber noch nicht übersetzt.
+
+r563 2007-11-29 12:33:47 +0100 mjk:
+
+ * doc/, doc/german/, doc/german/scrbookreportarticle.tex: Font
+ Elemente "partentry", "partentrypagenumber", "chapterentry",
+ "chapterentrypagenumber", "sectionentry", "sectionentrypagenumber"
+ dokumentiert
+
+r562 2007-11-29 10:40:12 +0100 mjk:
+
+ * TODO: one more missing translation
+
+r561 2007-11-29 10:13:50 +0100 mjk:
+
+ * TODO: some translations done
+
+r560 2007-11-29 10:11:56 +0100 mjk:
+
+ * doc/, doc/english/, doc/english/scrlttr2.tex: Some (but not all)
+ translations of changes at german file 2007/11/28 added by Gernot
+ Hassenpflug
+
+r559 2007-11-28 12:44:30 +0100 mjk:
+
+ * doc/, doc/german/, doc/german/scrlttr2.tex: Angabe von \datefinish
+ korrigiert, \Unit verwendet
+
+r558 2007-11-28 12:38:42 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrbookreportarticle.tex:
+ Dokumentation der Font-Elemente "subject" und "subtitle", sowie der
+ neuen Anweisung \subtitle
+
+r557 2007-11-28 12:35:00 +0100 mjk:
+
+ * doc/, doc/Makefile.guide: remove guide.md5 at rule $(GUIDENAME).pdf
+
+r556 2007-11-28 10:06:03 +0100 mjk:
+
+ * doc/, doc/german/, doc/german/scrlttr2.tex: Erklärung zu Option
+ "foldmarks" verbessert
+
+r555 2007-11-27 12:36:05 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: Pseudo-Länge
+ "fromrulewidth" dokumentiert
+
+r554 2007-11-27 12:27:16 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: Font element
+ "fromrule" dokumentiert
+
+r553 2007-11-27 10:00:28 +0100 mjk:
+
+ * scrkcomp.dtx: 2.97e is not compatible to 2.97d
+
+r552 2007-11-27 09:50:51 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: Die neuen
+ Möglichkeiten für die Konfigurierung der Faltmarken dokumentiert
+
+r551 2007-11-26 13:10:17 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: Erklärung zur
+ Option "foldmarks" erweitert
+
+r550 2007-11-26 12:23:35 +0100 mjk:
+
+ * doc/, doc/german/, doc/german/scrlttr2.tex: Font-Element
+ "backaddress" dokumentiert.
+
+r549 2007-11-26 11:56:12 +0100 mjk:
+
+ * TODO, doc/, doc/german/, doc/german/scrlttr2.tex: documentation of
+ new values for option "backaddress"
+
+r548 2007-11-26 11:53:02 +0100 mjk:
+
+ * scrkmisc.dtx, scrksect.dtx, scrkfloa.dtx: scrbook uses \thechapter
+ at \thesection, \thefigure, \thetable, and \theequation only at main
+ matter (depends on option "version")
+
+r547 2007-11-26 11:31:42 +0100 mjk:
+
+ * scrktare.dtx: You can set "paper=<height>:<width>"
+
+r546 2007-11-23 13:03:03 +0100 mjk:
+
+ * scrpage.dtx: TeX-master fixed
+
+r545 2007-11-23 10:52:01 +0100 mjk:
+
+ * scrktare.dtx: Some users asked for twoside-handling by the class
+ additional to the typearea package. So I've changed this for
+ twoside, oneside, twocolumn, and onecolumn. Disadvantage of the
+ change is, that type area recalculation will be done twice after
+ \begin{document}.
+
+r544 2007-11-23 09:59:51 +0100 mjk:
+
+ * TODO: Japanese letters
+
+r543 2007-11-23 09:50:56 +0100 mjk:
+
+ * scrmain.ins, japanlco.dtx, Makefile: new lco file "NipponRL.lco" for
+ Japanese envelopes with window on the right side
+
+r542 2007-11-22 18:04:33 +0100 stephan-hennig:
+
+ * doc/, doc/plength.dtx: M doc/plength.dtx
+
+ * Renamed internal varibles 'Xfoldmarkwidth' to match the name of new pseudo
+ lengths 'Xfoldmarklength'.
+
+r541 2007-11-22 12:00:36 +0100 mjk:
+
+ * TODO: new options and pseudo-lengths
+
+r540 2007-11-22 11:58:07 +0100 mjk:
+
+ * scrknpap.dtx: new option "firstfoot=(yes|on|true|no|off|false)" and
+ fix of "fromalign=(locationright|locationleft)"
+
+r539 2007-11-22 11:36:53 +0100 mjk:
+
+ * scrmain.ins, japanlco.dtx, Makefile, scrknpap.dtx, manifest.txt: new
+ Japanese lco files and new option
+ "firsthead=(yes|on|true|no|off|false)"
+
+r538 2007-11-20 17:42:55 +0100 mjk:
+
+ * japanlco.dtx: locheight fixed
+
+r537 2007-11-20 17:38:03 +0100 mjk:
+
+ * japanlco.dtx: 65mmm --> 65mm fixed
+
+r536 2007-11-20 17:35:20 +0100 mjk:
+
+ * scrsource.tex, scrmain.ins, japanlco.dtx, scrklco.dtx, Makefile,
+ scrknpap.dtx: new lco files for Japanese letters
+
+r535 2007-11-13 10:55:46 +0100 mjk:
+
+ * scrmain.ins: fix: lco files check and set the version not only use
+ the version of the class
+
+r534 2007-11-13 09:44:02 +0100 mjk:
+
+ * scrknpap.dtx: two new values for option "fromalign": "locationleft"
+ aligns the from ragged right at the location; "locationright" aligns
+ the from ragged left at the location. No logos are set in these
+ cases, no user defined location is set in these cases.
+
+r533 2007-11-12 15:15:16 +0100 mjk:
+
+ * scrknpap.dtx: default of locheight fixed (backaddrtoheight added)
+
+r532 2007-11-10 11:25:07 +0100 mjk:
+
+ * TODO: neue Pseudo-Längen
+
+r531 2007-11-10 11:22:39 +0100 mjk:
+
+ * scrknpap.dtx: - new pseudo length "tfoldmarklength",
+ "mfoldmarklength", "bfoldmarklength" - new optional vertical fold
+ marks with pseudo length "foldmarkvpos",
+
+ "lfoldmarkhpos", "lfoldmarklength" - new values for option "foldmarks"
+
+r530 2007-11-10 08:53:30 +0100 mjk:
+
+ * scrkbase.dtx: spaces before and after keys and values are ignored at
+ \KOMAoptions
+
+r529 2007-11-08 11:29:28 +0100 mjk:
+
+ * TODO: einige Änderungen bei den Faltmarken
+
+r528 2007-11-08 11:27:59 +0100 mjk:
+
+ * scrknpap.dtx: - new pseudo length mfoldmarkvpos (0pt = middle!) -
+ single fold marks may be (de)activated by option "foldmarks"
+
+r527 2007-11-07 10:43:25 +0100 mjk:
+
+ * TODO: some more to do (plength)
+
+r526 2007-11-07 10:42:24 +0100 mjk:
+
+ * scrknpap.dtx, doc/, doc/plength.dtx: new pseudo-length "lochpos",
+ "locvpos", "locheight"
+
+r525 2007-11-07 10:16:07 +0100 mjk:
+
+ * doc/, doc/Makefile.latexinit, doc/Makefile.guide: sed call added to
+ fix problem with BibTeX line breaks after \btxurlfont
+
+r524 2007-10-23 08:53:48 +0200 mjk:
+
+ * scrktare.dtx: fix: \isopaper pays attention to landscape
+
+r523 2007-10-23 07:25:38 +0200 mjk:
+
+ * scrkpage.dtx: Typofix
+
+r522 2007-10-12 11:58:49 +0200 mjk:
+
+ * scrkvers.dtx: prepared for v2.97e BETA
+
+r521 2007-10-12 11:58:09 +0200 mjk:
+
+ * releaselist.txt: 2007/10/12 v2.97d
+
r520 2007-10-12 11:37:39 +0200 mjk:
* scrkvers.dtx: prepared for 2007/10/12 v2.97d
diff --git a/Master/texmf-dist/source/latex/koma-script/Makefile b/Master/texmf-dist/source/latex/koma-script/Makefile
index 8cbfdda3f26..ff272bf243c 100644
--- a/Master/texmf-dist/source/latex/koma-script/Makefile
+++ b/Master/texmf-dist/source/latex/koma-script/Makefile
@@ -98,11 +98,18 @@ CLS_MAIN = scrbook.cls \
scrpage2.sty \
scrtime.sty \
scrdate.sty \
+ tocstyle.sty \
DIN.lco \
DINmtext.lco \
SN.lco \
SNleft.lco \
- KOMAold.lco
+ KOMAold.lco \
+ NipponEH.lco \
+ NipponEL.lco \
+ NipponLH.lco \
+ NipponLL.lco \
+ NipponRL.lco \
+ KakuLL.lco
CLS_MAIN_DTX = scrbeta.dtx \
scrkbase.dtx \
@@ -115,6 +122,7 @@ CLS_MAIN_DTX = scrbeta.dtx \
scrkidx.dtx \
scrklang.dtx \
scrklco.dtx \
+ japanlco.dtx \
scrkliof.dtx \
scrklist.dtx \
scrkmisc.dtx \
@@ -132,7 +140,8 @@ CLS_MAIN_DTX = scrbeta.dtx \
scrpage.dtx \
scrtime.dtx \
scrlettr.dtx \
- scrlogo.dtx
+ scrlogo.dtx \
+ tocstyle.dtx
STATIC_DOC = README \
INSTALL.txt \
@@ -149,11 +158,16 @@ CLS_MAIN_INS = scrmain.ins
CLS_MAIN_SUBINS = scrlfile.ins scraddr.ins scrlettr.ins scrpage.ins \
scrtime.ins
+ALPHA_INS = tocstyle.dtx
+
+DTX_IS_INS = tocstyle.dtx
+
CLS_MAIN_SRC = $(CLS_MAIN_DTX) $(CLS_MAIN_INS) $(CLS_MAIN_SUBINS) \
scrsource.tex
$(CLS_MAIN): $(CLS_MAIN_DVI) $(CLS_MAIN_INS) $(INS_TEMPLATES) $(MAKE_FILES)
$(TEXUNPACK) $(CLS_MAIN_INS)
+ $(foreach alphains,$(ALPHA_INS),$(TEXUNPACK) $(alphains);)
scrsource.dvi: scrsource.tex $(CLS_MAIN_DTX) $(MAKE_FILES) scrdoc.cls
$(makedvifromdtx)
@@ -189,7 +203,9 @@ MAINTAIN_FILES = $(MAINTAIN_SRC)
bindist: dist
$(UNTARGZ) $(DISTDIR).tar.gz
ifdef PREPARERELEASE
+ $(foreach dtxins,$(DTX_IS_INS),$(SYMLINK) $(dtxins) $(dtxins).ins;)
developer/scripts/preparerelease.sh 2 $(notdir $(DISTDIR))
+ $(foreach dtxins,$(DTX_IS_INS),$(RM) $(dtxins).ins;)
endif
$(CD) $(notdir $(DISTDIR)) && \
$(MAKE)
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/Makefile.guide b/Master/texmf-dist/source/latex/koma-script/doc/Makefile.guide
index e196d06480c..d8f9b42bebb 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/Makefile.guide
+++ b/Master/texmf-dist/source/latex/koma-script/doc/Makefile.guide
@@ -66,10 +66,16 @@ GENERATED_SRC = plenDIN.mps
plenDIN_SRC = plenDIN.mp plinc.mp pllcoDIN.mp pltex.mp
+ifeq ($(LANGUAGE),english)
+TEX_APPENDICES = japanlco.tex
+else
+TEX_APPENDICES =
+endif
+
TEX_CHAPTERS = introduction.tex typearea.tex \
scrbookreportarticle.tex scrpage2.tex \
scrdatetime.tex scrlttr2.tex scraddr.tex \
- adrconvnote.tex scrlfile.tex
+ adrconvnote.tex scrlfile.tex $(TEX_APPENDICES)
TEX_SRC = guide-$(LANGUAGELONG).tex $(TEX_CHAPTERS)
@@ -190,6 +196,7 @@ define latex
$(CKSUM) $(CKSUMFILES) > guide.md5 \
&& $(PDFLATEX) guide.tex \
&& ( $(BIBTEX) guide || [ $$? -le $(BIBTEXNOERROR) ] || exit 1 ) \
+ && $(BIBTEXFIX) guide.bbl \
&& $(MAKEINDEX) guide.ind guide.idx \
&& $(INDEXPOSTOP) guide \
&& $(MAKECHANGE) guide.chn guide.glo \
@@ -206,6 +213,7 @@ $(GUIDENAME).pdf: $(DOCDIR)scrguide.cls $(DOCDIR)guide.tex $(GENERATED_SRC)\
$(MAKEINDEXSTYLE) guide.ind guide.idx \
$(MAKECHANGESTYLE) guide.chn guide.glo \
$(TEX_SRC)
+ $(SRM) guide.md5
$(latex)
plenDIN.mps: $(plenDIN_SRC)
@@ -224,6 +232,7 @@ guide.chn: guide.glo
guide.bbl: $(BIBTEX_SRC) guide.aux
$(BIBTEX) guide || test $$? -le $(BIBTEXNOERROR)
+ $(BIBTEXFIX) guide.bbl
guide.glo guide.idx guide.aux: ../guide.tex $(TEX_SRC)
$(PDFLATEX) guide.tex
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/Makefile.latexinit b/Master/texmf-dist/source/latex/koma-script/doc/Makefile.latexinit
index 3c8b89e2837..94b79eb6169 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/Makefile.latexinit
+++ b/Master/texmf-dist/source/latex/koma-script/doc/Makefile.latexinit
@@ -58,6 +58,7 @@ GENHTMLINDEX = $(DOCDIR)/bin/genhtmlidx.pl
#BIBTEXNOERROR = 1 # BibTeX8 returns 1 after warnings
BIBTEX = bibtex
BIBTEXNOERROR = 0 # BibTeX returns 0 on ok
+BIBTEXFIX = sed -i -e 's/\\btxurlfont[[:space:]]*$$/\\expandafter&/'
MPOST = mpost -tex=latex -interaction=batchmode
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/english/japanlco.tex b/Master/texmf-dist/source/latex/koma-script/doc/english/japanlco.tex
new file mode 100644
index 00000000000..0f1769b4aae
--- /dev/null
+++ b/Master/texmf-dist/source/latex/koma-script/doc/english/japanlco.tex
@@ -0,0 +1,603 @@
+% ======================================================================
+% japanlco.tex
+% Copyright (c) Gernot Hassenpflug and Markus Kohm, 2001-2007
+%
+% This file is part of the LaTeX2e KOMA-Script bundle.
+%
+% This work may be distributed and/or modified under the conditions of
+% the LaTeX Project Public License, version 1.3b of the license.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3b or later is part of all distributions of LaTeX
+% version 2005/12/01 or later and of this work.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The Current Maintainer and author of this work is Markus Kohm.
+%
+% This work consists of all files listed in manifest.txt.
+% ----------------------------------------------------------------------
+% japanlco.tex
+% Copyright (c) Gernot Hassenpflug und Markus Kohm, 2001-2007
+%
+% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
+% Version 1.3b, verteilt und/oder veraendert werden.
+% Die neuste Version dieser Lizenz ist
+% http://www.latex-project.org/lppl.txt
+% und Version 1.3b ist Teil aller Verteilungen von LaTeX
+% Version 2005/12/01 oder spaeter und dieses Werks.
+%
+% Dieses Werk hat den LPPL-Verwaltungs-Status "author-maintained"
+% (allein durch den Autor verwaltet).
+%
+% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
+%
+% Dieses Werk besteht aus den in manifest.txt aufgefuehrten Dateien.
+% ======================================================================
+%
+% Chapter about Japanise paper size, envelopes and letters
+% Maintained by Gernot Hassenplug (with help from Markus Kohm)
+%
+% ----------------------------------------------------------------------
+%
+% Kapitel ueber japanische Papierformate, Umschläge und Briefe
+% Verwaltet von Gernot Hassenplug (mit Unterstuetzung von Markus Kohm)
+%
+% ======================================================================
+%
+% Special Note: Originally in English by Gernot Hassenpflug as part of
+% KOMA-Script bundle.
+%
+
+\ProvidesFile{japanlco.tex}[2007/12/17 KOMA-Script guide (appendix: japanlco)]
+
+\appendix
+
+\chapter[{Japanese Letter Support for \Class{scrlttr2}}]
+{Japanese Letter Support for \Class{scrlttr2}\footnote{This chapter has been
+ written originally by Gernot Hassenpflug.}}
+\labelbase{japanlco}
+\Index{letter>Japanese}
+
+Since version~2.97e \Class{scrlttr2} provides support not only for European
+ISO~envelope sizes and window envelopes, but also for Japanese envelopes, in
+the form of \File{lco} files which set the layout of the paper. This chapter
+documents the support, and provides a few examples of using the provided
+\File{lco} files for printing letters intended for Japanese envelopes.
+
+\section{Japanese standard paper and envelope sizes}
+\label{sec:japanlco.PaperEnvelope}
+
+The Japan Industrial Standard (JIS) defines paper sizes and envelope sizes for
+national use, which both overlap with the ISO and US sizes and include some
+metricated traditional Japanese sizes. Envelope window size and position have
+not been defined internationally as yet; hence, there exists a plethora of
+envelopes with differing window sizes and positions. The below subsections
+give some background on Japanese paper sizes and envelopes.
+
+\subsection{Japanese paper sizes}
+\label{sec:japanlco.Paper}
+
+The JIS defines two main series of paper sizes:
+\begin{enumerate}
+\item the JIS A-series, which is identical to the ISO A-series, but
+ with slightly different tolerances; and
+\item the JIS B-series, which is not identical to the ISO/DIN
+ B-series. Instead, the JIS B-series paper has an area 1.5 times that
+ of the corresponding A-series paper, so that the length ratio is
+ approximately 1.22 times the length of the corresponding A-series
+ paper. The aspect ratio of the paper is the same as for A-series
+ paper.
+\end{enumerate}
+
+Both JIS A-series and B-series paper is widely available in Japan and most
+photocopiers and printers are loaded with at least A4 and B4 paper. The
+ISO/JIS~A-series, and the different ISO and JIS~B-series sizes are listed in
+\autoref{tab:japanlco.jpapersizes1}.
+
+%% ISO/JIS standard comparison
+\begin{table}
+\begin{minipage}{\textwidth}\renewcommand*{\footnoterule}{}%
+\centering
+\caption[{ISO and JIS standard paper sizes}]
+{ISO and JIS standard paper sizes}%; trim sizes are given with width
+% preceding height, both in millimeters}
+\begin{tabular}{lr@{$\times$}llr@{$\times$}llr@{$\times$}l}\toprule
+ISO/JIS\,A & \multicolumn2l{W$\times$H in mm} & ISO\,B &
+\multicolumn2l{W$\times$H in mm} & JIS\,B & \multicolumn2l{W$\times$H
+ in mm} \\ \midrule
+A0 & 841 & 1189 & B0 & 1000 & 1414 & B0 & 1030 & 1456 \\
+A1 & 594 & 841 & B1 & 707 & 1000 & B1 & 728 & 1030 \\
+A2 & 420 & 594 & B2 & 500 & 707 & B2 & 515 & 728 \\
+A3 & 297 & 420 & B3 & 353 & 500 & B3 & 364 & 515 \\
+A4 & 210 & 297 & B4 & 250 & 353 & B4 & 257 & 364 \\
+A5 & 148 & 210 & B5 & 176 & 250 & B5 & 182 & 257 \\
+A6 & 105 & 148\footnotemark[1] & B6 & 125 & 176 & B6 & 128 & 182 \\
+A7 & 74 & 105 & B7 & 88 & 125 & B7 & 91 & 128 \\
+A8 & 52 & 74 & B8 & 62 & 88 & B8 & 64 & 91 \\
+A9 & 37 & 52 & B9 & 44 & 62 & B9 & 45 & 64 \\
+A10 & 26 & 37 & B10 & 31 & 44 & B10 & 32 & 45 \\
+A11 & 18 & 26 & & \multicolumn2l{} & B11 & 22 & 32 \\
+A12 & 13 & 18 & & \multicolumn2l{} & B12 & 16 & 22 \\
+\bottomrule
+\end{tabular}
+\label{tab:japanlco.jpapersizes1}
+\footnotetext[1]{Although Japan's official postcard size
+ appears to be A6, it is actually 100$\times$148\Unit{mm}, 5 millimeters
+ narrower than A6.}
+\end{minipage}
+\end{table}
+
+There are also a number of traditional paper sizes, which are now used
+mostly only by printers. The most common of these old series are the
+Shiroku-ban and the Kiku paper sizes. The difference of these types compared
+to the JIS~B-series are shown in \autoref{tab:japanlco.jpapersizes2}.
+Finally, there are some common stationary sizes, listed in
+\autoref{tab:japanlco.jpapersizes3}. You may come across these when buying
+stationary.
+
+%% JIS B-series variants
+\begin{table}
+\centering
+\caption[{Japanese B-series variants}]
+{Japanese B-series variants}%; trim sizes are given with width
+% preceding height, both in millimeters}
+\begin{tabular}{lr@{$\times$}lr@{$\times$}lr@{$\times$}l}\toprule
+Format & \multicolumn{2}{l}{JIS B-series} & \multicolumn{2}{l}{Shiroku-ban} &
+\multicolumn{2}{l}{Kiku} \\
+Size & \multicolumn{2}{l}{W$\times$H in mm} & \multicolumn{2}{l}{W$\times$H in mm} & \multicolumn{2}{l}{W$\times$H in mm} \\ \midrule
+4 & 257 & 364 & 264 & 379 & 227 & 306 \\
+5 & 182 & 257 & 189 & 262 & 151 & 227 \\
+6 & 128 & 182 & 189 & 262 & \multicolumn2l{} \\
+7 & 91 & 128 & 127 & 188 & \multicolumn2l{} \\
+\bottomrule
+\end{tabular}
+\label{tab:japanlco.jpapersizes2}
+\end{table}
+
+%% Japanese contemporary sizes
+\begin{table}
+\centering
+\caption[{Main Japanese contemporary stationary}]
+{Main Japanese contemporary stationary}%; trim sizes are given with width
+% preceding height, both in millimeters}
+\begin{tabular}{lr@{$\times$}ll}\toprule
+Name & \multicolumn{2}{l}{W$\times$H in mm} & Usage and Comments \\ \midrule
+Kokusai-ban & 216 & 280 & ``international size'' \\
+ & \multicolumn2l{} & i.\,e., US letter size \\
+Semi B5 or & 177 & 250 & ``standard size'' \\
+Hyoujun-gata & \multicolumn2l{} & (formerly called ``Hyoujun-gata''),\\
+ & \multicolumn2l{} & semi B5 is almost identical to ISO B5 \\
+Oo-gata & 177 & 230 & ``large size'' \\
+Chuu-gata & 162 & 210 & ``medium size'' \\
+Ko-gata & 148 & 210 & ``small size'' \\
+Ippitsu sen & 82 & 185 & ``note paper'' \\
+\bottomrule
+\end{tabular}
+\label{tab:japanlco.jpapersizes3}
+\end{table}
+
+The ISO~C-series is not a paper size as such, but is a standard
+developed for envelopes, intended for the corresponding A-series
+paper, and is discussed in the next subsection.
+
+%\clearpage
+\subsection{Japanese envelope sizes}
+\label{sec:japanlco.envelope}
+
+ISO (International Organization for Standardization) envelope sizes
+are the official international metric envelope sizes; however, Japan
+uses also JIS and metricated traditional envelope sizes. Sizes
+identified as nonstandard do not conform to Universal Postal Union
+requirements for correspondence envelopes.
+
+\subsubsection{ISO envelope sizes}
+The ISO C-series envelope sizes, and possibly B-series envelope sizes,
+are available in Japan. C-series envelopes can hold the corresponding
+A-series paper, while B-series envelopes can hold either the
+corresponding A-series paper or the corresponding C-series
+envelope. The ISO envelope sizes commonly for Japan are listed in
+\autoref{tab:japanlco.jenvsizes1}, with the corresponding paper they
+are intended for, and the folding required.
+
+%%%%%% JIS Japanese Envelopes
+
+%% ISO envelope sizes
+%{\onelinecaptionsfalse
+%\begin{longtable}{lr@{$\times$}ll}
+\begin{table}
+\begin{minipage}{\textwidth}\renewcommand*{\footnoterule}{}
+\caption[{Japanese ISO envelope sizes}]
+{Japanese ISO envelope sizes}%; trim sizes are given with width
+% preceding height, both in millimeters%
+\label{tab:japanlco.jenvsizes1}%
+%}\\
+\begin{tabular}{lr@{$\times$}ll}
+\toprule
+Name & \multicolumn2l{W$\times$H in mm} & Usage and Comments \\
+%\endfirsthead
+%\caption[]{Japanese envelope sizes (\emph{continued})}\\
+%\toprule
+%Name & \multicolumn2l{W$\times$H in mm} & Usage and Comments \\
+%\midrule
+%\endhead
+%\midrule
+%\multicolumn{4}{r@{}}{\dots}\\
+%\endfoot
+%\bottomrule
+%\endlastfoot
+\midrule
+C0 & 917 & 1297 & for flat A0 sheet; \\*
+ & \multicolumn2l{} & nonstandard \\
+C1 & 648 & 917 & for flat A1 sheet; \\*
+ & \multicolumn2l{} & nonstandard \\
+C2 & 458 & 648 & for flat A2 sheet, A1 sheet folded in half; \\*
+ & \multicolumn2l{} & nonstandard \\
+C3 & 324 & 458 & for flat A3 sheet, A2 sheet folded in half; \\*
+ & \multicolumn2l{} & nonstandard \\
+B4 & 250 & 353 & C4 envelope \\
+C4 & 229 & 324 & for flat A4 sheet, A3 sheet folded in half; \\*
+ & \multicolumn2l{} & very common; nonstandard \\
+B5 & 176 & 250 & C5 envelope \\
+C5 & 162 & 229 & for flat A5 sheet, A4 sheet folded in half; \\*
+ & \multicolumn2l{} & very common; nonstandard \\
+B6 & 125 & 176 & C6 envelope; A4 folded in quarters; \\*
+ & \multicolumn2l{} & very common \\
+C6 & 114 & 162 & for A5 sheet folded in half, \\*
+ & \multicolumn2l{} & A4 sheet folded in quarters; \\*
+ & \multicolumn2l{} & very common \\
+C6/C5 & 114 & 229 & A4 sheet folded in thirds; \\*
+ & \multicolumn2l{} & very common \\
+C7/6 & 81 & 162 & for A5 sheet folded in thirds; uncommon; \\*
+ & \multicolumn2l{} & nonstandard \\
+C7 & 81 & 114 & for A5 sheet folded in quarters; uncommon; \\*
+ & \multicolumn2l{} & nonstandard \\
+C8 & 57 & 81 & \\
+C9 & 40 & 57 & \\
+C10 & 28 & 40 & \\
+DL\footnotemark[1] & 110 & 220 & for A4 sheet folded in thirds, \\*
+ & \multicolumn2l{} & A5 sheet folded in half lengthwise; \\*
+ & \multicolumn2l{} & very common \\
+%\end{longtable}}\vspace{-\baselineskip}
+\bottomrule
+\end{tabular}
+%\noindent\begin{minipage}{\textwidth}
+%\renewcommand*{\footnoterule}{}
+\footnotetext[1]{Although DL is not part of the
+ ISO C-series, it is a very widely used standard size. DL, probably
+ at one time the abbreviation of DIN Lang (Deutsche Industrie Norm,
+ long), is now identified as ``Dimension Lengthwise'' by ISO 269.}
+\end{minipage}
+\end{table}
+
+\subsubsection{JIS and traditional envelope sizes}
+The JIS classifies envelopes into three categories based on the
+general shape of the envelope, and where the flap is located:
+
+\begin{description}
+\item[You:] these envelopes are of the `commercial' type, rectangular,
+ and correspond largely to Western envelope sizes, and also have the
+ flap on the long dimension (`Open Side') in `commercial' or `square'
+ style. `You-kei' means Western-style.
+\item[Chou:] these are also `commercial' type envelopes, with the same
+ shape as the corresponding `You' type, but with the flap on the
+ short dimension (`Open End') in `wallet' style. `Chou-kei' means
+ long-style.
+\item[Kaku:] these envelopes are more square in appearance and are
+ made for special use, and correspond to `announcement'
+ envelopes. The flap is on the long side, in the `square' style. They
+ generally do not fall under the ordinary envelope postage
+ rates. `Kaku-kei' means square-style.
+\end{description}
+
+The main JIS and traditional envelope sizes and the corresponding
+paper and its required folding are listed in
+\autoref{tab:japanlco.jenvsizes2}.
+
+%% JIS and other envelope sizes
+%\begin{table}
+%\begin{minipage}{\textwidth}\renewcommand*{\footnoterule}{}%
+%\centering
+{\onelinecaptionsfalse
+\begin{longtable}{llr@{$\times$}ll}
+\caption[{Japanese envelope sizes 3}]
+{Japanese JIS and other envelope sizes\label{tab:japanlco.jenvsizes2}}%
+%; trim sizes are given with width preceding height, both in millimeters}%
+\\
+%\begin{tabular}{llr@{$\times$}ll}
+\toprule
+JIS & Name & \multicolumn2l{W$\times$ in mm} & Usage and Comments \\
+\endfirsthead
+\caption[]{Japanese JIS and other envelope sizes (\emph{continued})}\\
+\toprule
+JIS & Name & \multicolumn2l{W$\times$ in mm} & Usage and Comments \\
+\midrule
+\endhead
+\midrule
+\multicolumn{5}{r@{}}{\dots}\\
+\endfoot
+\bottomrule
+\endlastfoot
+\midrule
+ & Chou 1 & 142 & 332 & for A4 folded in half lengthwise;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Chou 2 & 119 & 277 & for B5 folded in half lengthwise;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Chou 3 & 120 & 235 & for A4 folded in thirds;\\*
+ & & \multicolumn2l{} & very common \\
+ & Chou 31 & 105 & 235 & for A4 folded in thirds \\
+ & Chou 30 & 92 & 235 & for A4 folded in fourths\footnotemark[3] \\
+ & Chou 40 & 90 & 225 & for A4 folded in fourths\footnotemark[3] \\
+Yes & Chou 4 & 90 & 205 & for JIS B5 folded in fourths\footnotemark[3];\\*
+ & & \multicolumn2l{} & very common \\
+ & Kaku A3 & 320 & 440 & for A3 flat, A2 folded in half\\*
+ & & \multicolumn2l{} &; nonstandard \\
+ & Kaku 0 & 287 & 382 & for B4 flat, B3 folded in half;\\*
+ & & \multicolumn2l{} & nonstandard \\
+ & Kaku 1 & 270 & 382 & for B4 flat, B3 folded in half;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Kaku 2 & 240 & 332 & for A4 flat, A3 folded in half;\\*
+ & & \multicolumn2l{} & nonstandard \\
+ & Kaku & 229 & 324 & for A4 flat, A3 folded in half;\\*
+ & Kokusai A4 & \multicolumn2l{} & same size as ISO C4;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Kaku 3 & 216 & 277 & for B5 flat, B4 folded in half;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Kaku 4 & 197 & 267 & for B5 flat, B4 folded in half;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Kaku 5 & 190 & 240 & for A5 flat, A4 folded in half\\*
+ & & \multicolumn2l{} &; nonstandard \\
+Yes & Kaku 6 & 162 & 229 & for A5 flat, A4 folded in half;\\*
+ & & \multicolumn2l{} & same size as ISO C5;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Kaku 7 & 142 & 205 & for B6 flat, B5 folded in half;\\*
+ & & \multicolumn2l{} & nonstandard \\
+Yes & Kaku 8 & 119 & 197 & pay envelope (for salaries, wages)\\*
+ & & \multicolumn2l{} &; common for direct mail \\
+Yes & You 0\footnotemark[1] & 235 & 120 & for A4 folded in thirds;\\*
+ & or Furusu 10 & \multicolumn2l{} & same size as Chou 3 but with \\*
+ & & \multicolumn2l{} & `Open Side' style flap \\
+ & You 0\footnotemark[1] & 197 & 136 & for kyabine\footnotemark[1] (cabinet) size photos \\*
+ & & \multicolumn2l{} & (165\Unit{mm}$\times$120\Unit{mm});\\*
+ & & \multicolumn2l{} & nonstandard \\
+ & You 1\footnotemark[2] & 176 & 120 & for B5 folded in quarters \\
+ & You 1\footnotemark[2] & 173 & 118 & for B5 folded in quarters \\
+Yes & You 2 & 162 & 114 & for A5 folded in half,\\*
+ & & \multicolumn2l{} & A4 folded in quarters;\\*
+ & & \multicolumn2l{} & same size as ISO C6 \\
+Yes & You 3 & 148 & 98 & for B6 folded in half \\
+Yes & You 4 & 235 & 105 & for A4 folded in thirds \\
+Yes & You 5 & 217 & 95 & for A4 folded in fourths\footnotemark[3] \\
+Yes & You 6 & 190 & 98 & for B5 folded in thirds \\
+Yes & You 7 & 165 & 92 & for A4 folded in quarters,\\*
+ & & \multicolumn2l{} & B4 folded in quarters \\
+%\bottomrule
+%\end{tabular}%
+\end{longtable}}\vskip-\baselineskip
+\noindent\begin{minipage}{\textwidth}\renewcommand*{\footnoterule}{}%
+ \footnotetext[1]{Because two different sizes are called You~0, the
+ JIS You~0 is normally called Furusu~10; Furusu (`fools') derives
+ from `foolscap'; Kyabine is a metricated traditional Japanese
+ size.}%
+ \footnotetext[2]{Two slightly different sizes are sold as You~1; the
+ smaller size (173\Unit{mm}$\times$118\Unit{mm}) is the
+ paper-industry standard size.}%
+ \footnotetext[3]{Twice in the same direction.}%
+\end{minipage}
+%\end{table}
+
+
+\subsubsection{Window variants}
+There are a large number of window subtypes existing within the
+framework explained in the previous subsection. The most common window
+sizes and locations are listed in \autoref{tab:japanlco.jwinsizes1}.
+
+%% my table of windows
+\begin{table}
+\begin{minipage}{\textwidth}\renewcommand*{\footnoterule}{}
+\centering
+\caption[{Supported Japanese envelope types and the window sizes and
+ locations}] {Supported Japanese envelope types and the window sizes and
+ locations.}
+\begin{tabular}{lllll}
+\toprule
+Envelope type & Window name\footnotemark[1] & - size\footnotemark[2] & - location\footnotemark[3] & \File{lco} file\footnotemark[4] \\
+\midrule
+Chou 3 & A & 90$\times$45 & l 23, t 13 & \Option{NipponEL} \\
+Chou 3 & F & 90$\times$55 & l 23, t 13 & \Option{NipponEH} \\
+Chou 3 & Hisago & 90$\times$45 & l 23, t 12 & \Option{NipponEL} \\
+Chou 3 & Mutoh 1 & 90$\times$45 & l 20, t 11 & \Option{NipponEL} \\
+Chou 3 & Mutoh 101 & 90$\times$55 & l 20, t 11 & \Option{NipponEH} \\
+Chou 3 & Mutoh 2 & 80$\times$45 & l 20, t 11 & \Option{NipponEL} \\
+Chou 3 & Mutoh 3 & 90$\times$45 & l 25, t 11 & \Option{NipponLL} \\
+Chou 3 & Mutoh 301 & 90$\times$55 & l 25, t 11 & \Option{NipponLH} \\
+Chou 3 & Mutoh 6 & 100$\times$45 & l 20, t 11 & \Option{NipponEL} \\
+Chou 3 & v.2\footnotemark[5] & 90$\times$45 & l 24, t 12 & \Option{NipponLL} \\
+Chou 40 & A & 90$\times$45 & l 23, t 13 & \Option{NipponEL} \\
+Chou 4 & A & 90$\times$45 & l 23, t 13 & \Option{NipponEL} \\
+Chou 4 & B & 80$\times$45 & l 98, t 28 & \Option{NipponRL} \\
+Chou 4 & C & 80$\times$45 & l 21, t 13 & \Option{NipponEL} \\
+Chou 4 & K & 80$\times$45 & l 22, t 13 & \Option{NipponEL} \\
+Chou 4 & Mutoh 1 & 80$\times$45 & l 40, b 11 & --- \\
+Chou 4 & Mutoh 2 & 80$\times$45 & l 20, t 11 & \Option{NipponEL} \\
+Chou 4 & Mutoh 3 & 90$\times$45 & l 20, t 11 & \Option{NipponEL} \\
+Chou 4 & Mutoh 6 & 100$\times$45 & l 20, t 11 & \Option{NipponEL} \\
+Chou 4 & v.2\footnotemark[5] & 80$\times$45 & l 20, t 12 & \Option{NipponEL} \\
+Chou 4 & v.3\footnotemark[5] & 90$\times$45 & l 20, t 12 & \Option{NipponEL} \\
+Kaku A4 & v.1\footnotemark[6] & 95$\times$45 & l 20, t 24 & \Option{KakuLL} \\
+You 0 & Cruise 6 & 90$\times$45 & l 20, t 12 & \Option{NipponEL} \\
+You 0 & Cruise 601 & 90$\times$55 & l 20, t 12 & \Option{NipponEH} \\
+You 0 & Cruise 7 & 90$\times$45 & l 20, b 12 & \Option{NipponEL} \\
+You 0 & Cruise 8 & 90$\times$45 & l 24, t 12 & \Option{NipponLL} \\
+You 0 & v.2\footnotemark[5] & 90$\times$45 & l 24, t 12 & \Option{NipponEL} \\
+You 0 & v.3\footnotemark[5] & 90$\times$45 & l 23, t 13 & \Option{NipponEL} \\
+You 4 & A & 90$\times$45 & l 23, t 13 & \Option{NipponEL} \\
+\bottomrule
+\end{tabular}%
+\footnotetext[1]{Names (acting as subtype information) are taken from
+ the manufacturer catalog.}%
+\footnotetext[2]{Given as width by height in millimeters.}%
+\footnotetext[3]{Given as offset from left (l) or right (r), followed by
+ offset from bottom (b) or top (t).}%
+\footnotetext[4]{The \File{lco} file, which provides support (see
+ \autoref{tab:japanlco.lcolist}).}%
+\footnotetext[5]{In the absence of any other information, a numerical
+ variation number for the subtype name is provided.}%
+\footnotetext[6]{Dimensions apply when envelope is held in portrait mode.}%
+\label{tab:japanlco.jwinsizes1}%
+\end{minipage}
+\end{table}
+
+\section{Provided \File{lco} files}
+In \Class{scrlttr2} support is provided for Japanese envelope and
+window sizes through a number of \File{lco} files which customize the
+foldmarks required for different envelope sizes and subvariants with
+different window positions and sizes.
+
+The provided \File{lco} files together with the envelope types for
+which they provide support are listed at
+\autoref{tab:japanlco.lcolist}. See \autoref{tab:japanlco.jenvsizes1}
+for the full list of Japanese envelopes and the paper they take, and
+\autoref{tab:japanlco.jwinsizes1} for the common window sizes and
+locations. The rightmost column indicates which \File{lco} file
+provides the support.
+
+The tolerances for location is about 2\Unit{mm}, so it is possible to
+accommodate all the envelope and window variants of
+\autoref{tab:japanlco.jwinsizes1} with just a small number of \File{lco}
+files. The difference between Chou/You~3 and Chou/You~4 is determined
+by paper size.
+
+\begin{table}
+\begin{minipage}{\textwidth}\renewcommand*{\footnoterule}{}
+\centering
+\caption{\File{lco} files provided by \Class{scrlttr2} for Japanese window
+ envelopes}
+\begin{tabular}{llll}
+\toprule
+\File{lco} file & Supported & Window size\footnotemark[1] & Window
+location\footnotemark[1] \\
+\midrule
+\Option{NipponEL} & Chou/You 3 and 4 & 90$\times$45 & l 22, t 12 \\
+\Option{NipponEH} & Chou/You 3 and 4 & 90$\times$55 & l 22, t 12 \\
+\Option{NipponLL} & Chou/You 3 and 4 & 90$\times$45 & l 25, t 12 \\
+\Option{NipponLH} & Chou/You 3 and 4 & 90$\times$55 & l 25, t 12 \\
+\Option{NipponRL} & Chou/You 3 and 4 & 90$\times$45 & l 98, t 28 \\
+\Option{KakuLL} & Kaku A4 & 90$\times$45 & l 25, t 24 \\
+\bottomrule
+\end{tabular}%
+\label{tab:japanlco.lcolist}%
+\footnotetext[1]{Window size is given in width by height, location as
+ offset from left (l) or right (r), followed by offset from bottom (b) or top
+ (t). All Values in millimeters.}%
+\end{minipage}
+\end{table}
+
+\section{Examples of Japanese letter usage}
+Assume you want to write a letter on A4 size paper and will post it in
+a Japanese envelope. If the envelope has no window, then it is enough
+to determine whether the envelope dimensions match a European
+one\,---\,the standard \File{DIN.lco} style may suffice for many such
+cases.
+
+If you wish to use a windowed envelope, please note that owing to the
+large variety, not all existing subvariants are currently
+supported. If you should note that you particular windowed envelope
+has its window dimensions and positions significantly (more than
+approximately 2\Unit{mm}) different from any of the supported subvariants,
+please contact the author of {\KOMAScript} to obtain support as soon as
+possible, and in the meanwhile create a customized \File{lco} file for your
+own use, using one of the existing ones as a template and reading the
+{\KOMAScript} documentation attentively.
+
+If your window envelope subvariant is supported, this is how you would
+go about using it: simply select the required \File{lco} file and
+activate the horizontal and vertical foldmarks as required. Another,
+independent, mark is the punching mark which divides a sheet in two
+horizontally for easy punching and filing.
+
+\subsection{Example 1:}
+Your favourite envelope happens to be a You~3 with window subvariant
+Mutoh~3, left over from when the company had its previous name, and
+you do not wish them to go to waste. Thus, you write your letter with
+the following starting code placed before the letter environment:
+
+\begin{lstlisting}
+\LoadLetterOption{NipponLL}\setkomavar{myref}{NipponLL}
+\begin{letter}{Martina Muster\\Address}
+...
+\end{letter}
+\end{lstlisting}
+
+\subsection{Example 2:}
+You originally designed your letter for a You~3 envelope, but suddenly
+you get handed a used electrical company envelope with cute manga
+characters on it which you simply cannot pass up. Surprisingly, you
+find it conforms fairly closely to the Chou~4 size and C window
+subvariant, such that you realize you can alter the following in your
+document preamble:
+
+\begin{lstlisting}
+\LoadLetterOption{NipponEL}\setkomavar{myref}{NipponEL}
+\begin{letter}{Martina Muster\\Address}
+...
+\end{letter}
+\end{lstlisting}
+
+Now, \Class{scrlttr2} automatically reformats the letter for you to
+fit the required envelope.
+
+% \LoadLetterOption{NipponEL}\setkomavar{myref}{NipponEL}
+% \begin{letter}{Martina Muster\\at and\\there\\and one\\more}
+% \opening{Dear Martina,}
+% \lipsum[1-2]
+% \closing{Regards}
+% \ps{PS: Forgotten to say.}
+% \encl{Something}
+% \cc{Somebody\\Someone}
+% \end{letter}
+
+% \LoadLetterOption{NipponEH}\setkomavar{myref}{NipponEH}
+% \begin{letter}{Martina Muster\\at and\\there\\and one\\more}
+% \opening{Dear Martina,}
+% \lipsum[1-2]
+% \closing{Regards}
+% \end{letter}
+
+% \LoadLetterOption{NipponLL}\setkomavar{myref}{NipponLL}
+% \begin{letter}{Martina Muster\\at and\\there\\and one\\more}
+% \opening{Dear Martina,}
+% \lipsum[1-2]
+% \closing{Regards}
+% \end{letter}
+
+% \LoadLetterOption{NipponLH}\setkomavar{myref}{NipponLH}
+% \begin{letter}{Martina Muster\\at and\\there\\and one\\more}
+% \opening{Dear Martina,}
+% \lipsum[1-2]
+% \closing{Regards}
+% \end{letter}
+
+%% comparison of US common paper sizes, wider and shorter
+% Millimetres Inches Points
+% Height Width Height Width Height Width
+% Letter 279.4 215.9 11.00 8.50 792 612
+% Legal 355.6 215.9 14.00 8.50 1008 612
+% Ledger 431.8 279.4 17.00 11.00 1224 792
+% Tabloid 279.4 431.8 11.00 17.00 792 1224
+% Executive 266.7 184.1 10.55 7.25 756 522
+
+%% English foolscap is here for reference
+% Millimetres Inches Points
+% Height Width Height Width Height Width
+%Foolscap 419 336 16.50 13.25 1188 954
+%
+
+%% nice reference on envelope types and windows in the US
+%http://www.belightsoft.com/products/companion/paper/envelopes.php
+
+%%% Local Variables:
+%%% mode: latex
+%%% coding: iso-latin-1
+%%% TeX-master: t
+%%% End:
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/english/scrbookreportarticle.tex b/Master/texmf-dist/source/latex/koma-script/doc/english/scrbookreportarticle.tex
index 38ce28879ab..14653ea8f5c 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/english/scrbookreportarticle.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/english/scrbookreportarticle.tex
@@ -45,7 +45,7 @@
%
% ============================================================================
-\ProvidesFile{scrbookreportarticle.tex}[2007/10/12 KOMA-Script guide (chapter:
+\ProvidesFile{scrbookreportarticle.tex}[2007/12/15 KOMA-Script guide (chapter:
scrbook, scrreprt, scrartcl)]
\translator{Jens-Uwe Morawski\and Gernot Hassenpflug\and Markus Kohm}
@@ -1257,22 +1257,28 @@ specification to the one currently used with the specified
\Endhead
\standardfoot%
\feentry{caption}{Text of a table or figure caption}%
- \feentry{captionlabel}{Label of a table or figure caption; used according to
- the element \FontElement{caption}}%
+ \feentry{captionlabel}{Label of a table or figure caption; used
+ according to the element \FontElement{caption}}%
\feentry{chapter}{Title of the sectional unit \Macro{chapter}}%
+ \feentry{chapterentry}{%
+ Table of contents entry of the sectional unit \Macro{chapter}}%
+ \feentry{chapterentrypagenumber}{%
+ Page number of the table of contents entry of the sectional unit
+ \Macro{chapter}, variation on the element
+ \FontElement{chapterentry}}%
\feentry{descriptionlabel}{Labels, i.\,e., the optional argument of
\Macro{item} in the \Environment{description} environment}%
\feentry{dictum}{wise saying (see command \Macro{dictum})}%
- \feentry{dictumauthor}{Author of a wise saying; used according to the
- element \FontElement{dictumtext}}%
+ \feentry{dictumauthor}{Author of a wise saying; used according to
+ the element \FontElement{dictumtext}}%
\feentry{dictumtext}{Another name for \FontElement{dictum}}%
- \feentry{disposition}{All sectional unit titles, i.\,e., the arguments of
- \Macro{part} down to \Macro{subparagraph} and \Macro{minisec}, including
- the title of the abstract; used before the element of the corresponding
- unit}%
+ \feentry{disposition}{All sectional unit titles, i.\,e., the
+ arguments of \Macro{part} down to \Macro{subparagraph} and
+ \Macro{minisec}, including the title of the abstract; used before
+ the element of the corresponding unit}%
\feentry{footnote}{Footnote text and marker}%
- \feentry{footnotelabel}{Mark of a footnote; used according to the element
- \FontElement{footnote}}%
+ \feentry{footnotelabel}{Mark of a footnote; used according to the
+ element \FontElement{footnote}}%
\feentry{footnotereference}{Footnote reference in the text}%
\feentry{minisec}{Title of \Macro{minisec}}%
\feentry{pagefoot}{The foot of a page, but also the head of a page}%
@@ -1280,18 +1286,39 @@ specification to the one currently used with the specified
\feentry{pagenumber}{Page number in the header or footer}%
\feentry{pagination}{Another name for \FontElement{pagenumber}}%
\feentry{paragraph}{Title of the sectional unit \Macro{paragraph}}%
- \feentry{part}{Title of the \Macro{part} sectional unit, without the line
- containing the part number}%
- \feentry{partnumber}{Line containing the part number in a title of the
- sectional unit \Macro{part}}%
+ \feentry{part}{Title of the \Macro{part} sectional unit, without the
+ line containing the part number}%
+ \feentry{partentry}{%
+ Table of contents entry of the secitonal unit \Macro{part}}%
+ \feentry{partentrypagenumber}{%
+ Page number of the table of contents entry of the sectional unit
+ \Macro{part} variation on the element \FontElement{partentry}}%
+ \feentry{partnumber}{Line containing the part number in a title of
+ the sectional unit \Macro{part}}%
\feentry{section}{Title of the sectional unit \Macro{section}}%
+ \feentry{sectionentry}{%
+ Table of contents entry of sectional unit \Macro{section} (only
+ available in \Class{scrartcl})}%
+ \feentry{sectionentrypagenumber}{%
+ Page number of the table of contents entry of the sectional unit
+ \Macro{section}, variation on element \FontElement{sectionentry}
+ (only available in \Class{scrartcl})}%
\feentry{sectioning}{Another name for \FontElement{disposition}}%
- \feentry{subparagraph}{Title of the sectional unit \Macro{subparagraph}}%
- \feentry{subsection}{Title of the sectional unit \Macro{subsection}}%
- \feentry{subsubsection}{Title of the sectional unit \Macro{subsubsection}}%
+ \feentry{subject}{%
+ Categorization of the document, i.\,e., the argument of
+ \Macro{subject} on the main title page}%
+ \feentry{subparagraph}{Title of the sectional unit
+ \Macro{subparagraph}}%
+ \feentry{subsection}{Title of the sectional unit
+ \Macro{subsection}}%
+ \feentry{subsubsection}{Title of the sectional unit
+ \Macro{subsubsection}}%
+ \feentry{subtitle}{%
+ Subtitle of the document, i.\,e., the argument of \Macro{subtitle} on
+ the main title page}%
\feentry{title}{Main title of the document, i.\,e., the argument of
- \Macro{title} (for details about the title size see the additional note in
- the text from \autopageref{desc:maincls.macro.title})}%
+ \Macro{title} (for details about the title size see the additional
+ note in the text from \autopageref{desc:maincls.macro.title})}%
\end{desctable}
%
\EndIndex{Cmd}{setkomafont}%
@@ -1909,6 +1936,7 @@ takes place as part of the titles produced by \Macro{maketitle}.
\Macro{titlehead}\Parameter{Titlehead}\\
\Macro{subject}\Parameter{Subject}\\
\Macro{title}\Parameter{Title}\\
+ \Macro{subtitle}\Parameter{Subtitle}\\
\Macro{author}\Parameter{Author}\\
\Macro{date}\Parameter{Date}\\
\Macro{publishers}\Parameter{Publisher}\\
@@ -1918,12 +1946,13 @@ takes place as part of the titles produced by \Macro{maketitle}.
\BeginIndex{Cmd}{titlehead}%
\BeginIndex{Cmd}{subject}%
\BeginIndex{Cmd}{title}%
+\BeginIndex{Cmd}{subtitle}%
\BeginIndex{Cmd}{author}%
\BeginIndex{Cmd}{date}%
\BeginIndex{Cmd}{publishers}%
\BeginIndex{Cmd}{and}%
\BeginIndex{Cmd}{thanks}%
-The contents of the full title page are defined by six elements. The
+The contents of the full title page are defined by seven elements. The
\PName{title head}\Index[indexmain]{title>head} is defined with the
command \Macro {titlehead}. It is typeset in regular paragraph style
and full width at the top of the page. It can be freely designed by
@@ -1947,7 +1976,32 @@ not affected (see \autoref{tab:maincls.elementsWithoutText},
default settings can be changed with the commands of
\autoref{sec:maincls.font}.
-Below the \PName{Title} appears the
+The
+\PName{Subtitle}\ChangedAt{v2.97c}{\Class{scrbook}\and\Class{scrreprt}\and\Class{scrartcl}}
+is set just below the title, in a font determined by the element
+\FontElement{subtitle}\IndexFontElement{subtitle}. The default, seen
+in \autoref{tab:maincls.titlefonts} can be changed with the help of
+the commands in \autoref{sec:maincls.font}.
+
+
+\begin{table}
+ \centering
+ \caption{Font defaults for the elements of the title}
+ \begin{tabular}{ll}
+ \toprule
+ Element name & Default \\
+ \midrule
+ \FontElement{subject} &
+ \Macro{normalfont}\Macro{normalcolor}\Macro{bfseries}\Macro{Large} \\
+ \FontElement{title} & \Macro{usekomafont}\PParameter{disposition} \\
+ \FontElement{subtitle} &
+ \Macro{usekomafont}\PParameter{title}\Macro{large} \\
+ \bottomrule
+ \end{tabular}
+ \label{tab:maincls.titlefonts}
+\end{table}
+
+Below the \PName{Subtitle} appears the
\PName{Author}\Index[indexmain]{author}. Several authors can be
specified in the argument of \Macro{author}. They should be separated
by \Macro{and}.
@@ -1983,8 +2037,9 @@ the items are centered horizontally. The information is summarised in
Element & Command & Font & Justification \\
\midrule
Title head & \Macro{titlehead} & \Macro{normalsize} & Regular paragraph \\
- Subject & \Macro{subject} & \Macro{Large} & centered \\
- Title & \Macro{title} & \Macro{huge} & centered \\
+ Subject & \Macro{subject} & \Macro{usekomafont}\PParameter{subject} & centered \\
+ Title & \Macro{title} & \Macro{huge}\Macro{usekomafont}\PParameter{title} & centered \\
+ Subtitle & \Macro{subtitle} & \Macro{usekomafont}\PParameter{subtitle} & centered \\
Authors & \Macro{author} & \Macro{Large} & centered \\
Date & \Macro{date} & \Macro{Large} & centered \\
Publishers & \Macro{publishers} & \Macro{Large} & centered \\
@@ -2011,6 +2066,7 @@ the items are centered horizontally. The information is summarised in
34567 Etherworld}
\subject{Dissertation}
\title{Digital space simulation with the DSP\,56004}
+ \subtitle{short but sweet?}
\author{Fuzzy George}
\date{30. February 2002}
\publishers{Adviser Prof. John Eccentric Doe}
@@ -2042,6 +2098,7 @@ another printer.
\EndIndex{Cmd}{titlehead}%
\EndIndex{Cmd}{subject}%
\EndIndex{Cmd}{title}%
+\EndIndex{Cmd}{subtitle}%
\EndIndex{Cmd}{author}%
\EndIndex{Cmd}{date}%
\EndIndex{Cmd}{publishers}%
@@ -2320,12 +2377,12 @@ information as well.
\subsection[{Separation}]{Separation\protect\OnlyAt{\Class{scrbook}}}
\label{sec:maincls.separation}
-Before\OnlyAt{\Class{scrbook}} getting to the main text we will have a
-short look at three commands which exist both in the standard class
-\Class{book} and the {\KOMAScript} class \Class{scrbook}. They are
-used for separation of the \emph{front matter}\Index{front matter}, the
-\emph{main matter}\Index{main matter} and the \emph{back
- matter}\Index{back matter} of a book.
+Before getting to the main text we will have a short look at three
+commands which exist both in the standard class \Class{book} and the
+{\KOMAScript} class \Class{scrbook}. They are used for separation of
+the \emph{front matter}\Index{front matter}, the \emph{main
+ matter}\Index{main matter} and the \emph{back matter}\Index{back
+ matter} of a book.
\begin{Declaration}
\Macro{frontmatter}\\
@@ -2346,6 +2403,30 @@ chapter. A foreword should never be divided into sections but kept as
short as possible. Therefore in the foreword there is no need for a
deeper structuring than the chapter level.
+In case the user sees things differently and wishes to use numbered
+sections\Index{section>number} in the chapters of the front matter,
+as of version~2.97e\ChangedAt{v2.97e}{\Class{scrbook}} the section
+numbering no longer contains the chapter number. This change only
+takes effect when the compatibility option is set to at least
+version~2.97e (see option \Option{version},
+\autoref{sec:maincls.compatibilityOptions},
+\autopageref{desc:maincls.option.version}). It is explicity noted that
+this creates a confusion with chapter numbers! The use of
+\Macro{addsec} and \Macro{section*} (see
+\autoref{sec:maincls.structure},
+\autopageref{desc:maincls.macro.section*} and
+\autopageref{desc:maincls.macro.addsec}) are thus, in the author's
+opinion, far more preferable.
+
+As of version~2.97e\ChangedAt{v2.97e}{\Class{scrbook}} the numbering
+of float environments, such as tables\Index{table>number} and
+figures\Index{figure>number}, and equation
+numbers\Index{equation>number} in the front matter also contain no
+chapter number part. To take effect this too requires the
+corresponding compatibility setting (see option \Option{version},
+\autoref{sec:maincls.compatibilityOptions},
+\autopageref{desc:maincls.option.version}).
+
\Macro{mainmatter} introduces the main matter with the main text. If
there is no front matter then this command can be omitted. The default
page numbering in the main matter uses Arabic numerals (re)starting in
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2.tex b/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2.tex
index 3c876d38fe3..07ae5818839 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/english/scrlttr2.tex
@@ -37,23 +37,19 @@
%
% Chapter about scrlttr2 of the KOMA-Script guide
% Maintained by Markus Kohm
-% Translation: Harald Bongartz, Georg Grandke, Raimund Kohl,
-% Jens-Uwe Morawski, Markus Kohm. Stephan Hennig
%
% ----------------------------------------------------------------------
%
% Kapitel über scrlttr2 in der KOMA-Script-Anleitung
% Verwaltet von Markus Kohm
-% Übersetzung: Harald Bongartz, Georg Grandke, Raimund Kohl,
-% Jens-Uwe Morawski, Markus Kohm, Stephan Hennig
%
% ============================================================================
-\ProvidesFile{scrlttr2.tex}[2007/09/27 KOMA-Script guide (chapter: scrlttr2)]
+\ProvidesFile{scrlttr2.tex}[2007/12/17 KOMA-Script guide (chapter: scrlttr2)]
\translator{Harald Bongartz\and Georg Grandke\and Raimund Kohl\and Jens-Uwe
Morawski\and Stephan Hennig\and Gernot Hassenpflug\and Markus Kohm}
-% Date of translated german file: 2007-09-17
+% Date of translated german file: < 2007-09-17
\chapter{The New Letter Class \Class{scrlttr2}}
\labelbase{scrlttr2}
@@ -554,15 +550,32 @@ these features could already be found in the now obsolete
\Class{scrlettr} class.
\begin{Declaration}
+ \Option{firsthead}
+\end{Declaration}
+\BeginIndex{Option}{firsthead}%
+This\ChangedAt{v2.97e}{\Class{scrlttr2}} option determines whether the
+letterhead will be typeset at all. The option undestands the standard
+values for simple keys, given
+in \autoref{tab:scrlttr2.simpleSwitchValues},
+\autopageref{tab:scrlttr2.simpleSwitchValues}. Default is for the
+letterhead to be set.
+\EndIndex{Option}{firsthead}%
+
+\begin{Declaration}
\Option{fromalign}
\end{Declaration}
\BeginIndex{Option}{fromalign}%
-This option defines the placement of the from address in the
-letterhead of the first page. At the same time, this option serves as
-a switch to activate or deactivate the extended letterhead options. If
-these extensions are deactivated, some other options will have no
-effect. This will be noted in the explanations of the respective
-options. Possible values for \Option{fromalign} are shown in
+This option defines the placement of the return address in the
+letterhead of the first page. Apart from the various options for
+positioning the return address in the letterhead, there is also the
+option\ChangedAt{v2.97e}{\Class{scrlttr2}} of adding the return
+address to the sender's
+extension\Index{sender's extension}. At the same
+time, this option serves as a switch to activate or deactivate the
+extended letterhead options. If these extensions are deactivated, some
+other options will have no effect. This will be noted in the
+explanations of the respective options. Possible values for
+\Option{fromalign} are shown in
\autoref{tab:scrlttr2.fromalign}. Default is \PValue{left}.
\begin{table}
@@ -582,6 +595,17 @@ options. Possible values for \Option{fromalign} are shown in
\entry{\PValue{left}}{%
left-justified return address; an optional logo will be right
justified; letterhead extensions will be activated}%
+ \entry{\PValue{locationleft}, \PValue{leftlocation}}{%
+ return address is set left-justified in the sender's extension;
+ a logo, if applicable, will be placed above it; the letterhead
+ is automatically deactivated but can be reactivated using option
+ \Option{firsthead}.}%
+ \entry{\PValue{locationright}, \PValue{rightlocation},
+ \PValue{location}}{%
+ return address is set right-justified in the sender's extension;
+ a logo, if applicable, will be placed above it; the letterhead
+ is automatically deactivated but can be reactivated using option
+ \Option{firsthead}.}%
\entry{\PValue{right}}{%
right-justified return address; an optional logo will be left
justified; letterhead extensions will be activated}%
@@ -721,14 +745,16 @@ Default is \PValue{true}.
\Option{subject}
\end{Declaration}
\BeginIndex{Option}{subject}%
-This option serves two purposes: first, you can choose if your subject
-should have a title, given by the \PName{subject} variable (see
-\autoref{tab:scrlttr2.subjectTerm},
+This option serves two purposes: first, you can choose if your
+subject\Index{subject} should have a title, given by the
+\PName{subject} variable (see \autoref{tab:scrlttr2.subjectTerm},
\autopageref{tab:scrlttr2.subjectTerm}); second, you can choose if the
-subject should be set before or after the opening. Possible values for
-this option are shown in \autoref{tab:scrlttr2.subject}. Defaults are
-\PValue{beforeopening} and \PValue{untitled}.
-
+subject should be set before or after the opening. Furthermore, the
+formatting\ChangedAt{v2.97c}{\Class{scrlttr2}} of the subject can be
+modified. Possible values for this option are shown in
+\autoref{tab:scrlttr2.subject}. It is expressly noted that when using
+the setting \PValue{underlined}, the subject must fit on one line!
+Defaults are \PValue{beforeopening} and \PValue{untitled}.
\begin{table}
\caption[{Possible values of option \Option{subject} with
\Class{scrlttr2}}]{Possible values of option \Option{subject} for the
@@ -738,7 +764,11 @@ this option are shown in \autoref{tab:scrlttr2.subject}. Defaults are
\begin{desctabular}
\pventry{afteropening}{set subject after opening}%
\pventry{beforeopening}{set subject before opening}%
+ \pventry{centered}{set subject centered}%
+ \pventry{left}{set subject left-justified}%
+ \pventry{right}{set subject right-justified}%
\pventry{titled}{add title to subject}%
+ \pventry{underlined}{set subject underlined (see note in text)}%
\pventry{untitled}{do not add title to subject}%
\end{desctabular}
\end{table}
@@ -780,15 +810,70 @@ option are shown in \autoref{tab:scrlttr2.locfield}. Default is
\Option{foldmarks}
\end{Declaration}
\BeginIndex{Option}{foldmarks}%
-This option activates fold marks for two- or three-panel folding of
-the letter. The exact placement of the fold marks for three-panel
-letter folding depends on user settings or the \File{lco} file (see
+This option activates or deactivates foldmarks\Index{foldmark} for
+vertical two-, three- or four-panel folding, and a single horizontal
+folding, of the letter, whereby the folding need not result in
+equal-sized parts. The position of the four horizontal and the single
+vertical marks are configurable via pseudo-lengths (see
+\autoref{sec:scrlttr2.foldmarks} from
+\autopageref{sec:scrlttr2.foldmarks} onwards).
+
+The user has a choice: Either one may use the standard values for
+simple switches, as described in
+\autoref{tab:scrlttr2.simpleSwitchValues},
+\autopageref{tab:scrlttr2.simpleSwitchValues}, to activate or
+deactivate at once all configured foldmarks on the left and upper
+edges of the paper; or\ChangedAt{v2.97e}{\Class{scrlttr2}} one may
+specify by one or more letters, as listed in
+\autoref{tab:scrlttr2.foldmark}, the use of the individual foldmarks
+independently. Also in the latter case the foldmarks will only be
+shown if they have not been switched off generally with one of
+\PValue{false}, \PValue{off} or \PValue{no}. The exact positioning of
+the foldmarks is specified in the user settings, that is, the
+\File{lco} files (see \autoref{sec:scrlttr2.lcoFile}) chosen for a
+letter. Default values are \PValue{true} and \PValue{TBMPL}.
+
+The exact placement of the fold marks for three-panel letter folding
+depends on user settings, that is, the \File{lco} files (see
\autoref{sec:scrlttr2.lcoFile}). The folding need not result in
equal-sized parts. This option can take the standard values for simple
switches, as listed in \autoref{tab:scrlttr2.simpleSwitchValues},
\autopageref{tab:scrlttr2.simpleSwitchValues}. Default is
\PValue{true}, which implies setting the fold marks.
-%
+\begin{table}
+ \centering
+ \caption{Combined values for the configuration of foldmarks with the
+ option \Option{foldmarks}}
+ \label{tab:scrlttr2.foldmark}
+ \begin{desctabular}
+ \pventry{B}{activate upper horizontal foldmark on left paper edge}%
+ \pventry{b}{deactivate upper horizontal foldmark on left paper edge}%
+ \pventry{H}{activate all horizontal foldmarks on left paper edge}%
+ \pventry{h}{deactivate all horizontal foldmarks on left paper edge}%
+ \pventry{L}{activate left vertical foldmark on upper paper edge}%
+ \pventry{l}{deactivate left vertical foldmark on upper paper edge}%
+ \pventry{M}{activate middle horizontal foldmark on left paper edge}%
+ \pventry{m}{deactivate middle horizontal foldmark on left paper edge}%
+ \pventry{P}{activate punch or center mark on left paper edge}%
+ \pventry{p}{deactivate punch or center mark on left paper edge}%
+ \pventry{T}{activate lower horizontal foldmark on left paper edge}%
+ \pventry{t}{deactivate lower horizontal foldmark on left paper edge}%
+ \pventry{V}{activate all vertical foldmarks on upper paper edge}%
+ \pventry{v}{deactivate all vertical foldmarks on upper paper edge}%
+ \end{desctabular}
+\end{table}
+\begin{Example}
+ Assume that you would like to deactivate all foldmarks exept the punching
+ mark. This you can accomplish with, for example:
+ \begin{lstlisting}
+ \KOMAoption{foldmarks=blmt}
+ \end{lstlisting}
+ as long as the defaults have not been changed previously. If some changes
+ might have been made before, then for added safety you may use:
+ \begin{lstlisting}
+ \KOMAoption{foldmarks=true,foldmarks=blmtP}
+ \end{lstlisting}
+\end{Example}%
\EndIndex{Option}{foldmarks}%
\begin{Declaration}
@@ -841,6 +926,41 @@ values for this option are shown in
%
\EndIndex{}{letter>head}\EndIndex{}{address}%
+\subsection{Options for the Letterfoot}
+\label{sec:scrlttr2.footoptions}
+\BeginIndex{}{letter>footer}
+
+The letterfoot is the footer of the first page of the letter. There
+exist some special rules for its placement, which are given in the
+description of the option
+\Option{enlargefirstpage}\IndexOption{enlargefirstpage} (see
+\autoref{sec:scrlttr2.typeareaOptions},
+\autopageref{desc:scrlttr2.option.enlargefirstpage}) and the
+pseudo-length \PLength{firstfootvpos}\IndexPLength{firstfootvpos}
+(siehe \autoref{sec:scrlttr2.firstFoot},
+\autopageref{desc:scrlttr2.plength.firstfootvpos}).
+
+\begin{Declaration}
+ \Option{firstfoot}
+\end{Declaration}
+\BeginIndex{Option}{firstfoot}%
+This\ChangedAt{v2.97e}{\Class{scrlttr2}} option determines whether the
+letterfoot is set or not. If the letterfoot is not set then the
+pseudo-length \PLength{firstfootvpos} is also ignored, and instead
+\Class{scrlttr2} assumes that the value is equal to
+\Length{paperheight}. This has an effect when the option
+\Option{enlargefirstpage} (see \autoref{sec:scrlttr2.firstFoot},
+\autopageref{desc:scrlttr2.plength.firstfootvpos}) is used
+concurrently.
+
+The option understands the standard values for simple switches, as
+given in \autoref{tab:scrlttr2.simpleSwitchValues},
+\autopageref{tab:scrlttr2.simpleSwitchValues}. Default is the setting
+of the letterfoot.
+\EndIndex{Option}{firstfoot}%
+
+\EndIndex{}{letter>footer}
+
\subsection{Formatting Options}
\label{sec:scrlttr2.formatingOptions}
@@ -947,17 +1067,9 @@ loading the \File{lco} file are local to the corresponding letter.
\end{Example}
\begin{Explain}
- If an \File{lco} file is loaded via \Macro{documentclass}, it may
- nevertheless take the name of an option, provided it is an option
- that does not take an argument. Nevertheless, it would be possible
- to give the name \File{fromalign=left.lco} to an \File{lco}
- file. This will then be loaded every time the \Macro{documentclass}
- option \Option{fromalign} is used with the value
- \PValue{left}. Admittedly, this is only of academic interest. Of
- course you can use this feature only if your operating system and
- file system support this kind of file name. Otherwise you have to
- choose another file name and add the corresponding option, if
- needed.
+ If\ChangedAt{v2.97}{\Class{scrlttr2}} an \File{lco} file is loaded
+ via \Macro{documentclass}, then it may no longer have the same name
+ as an option.
\end{Explain}
\begin{Example}
@@ -1016,7 +1128,7 @@ In \autoref{tab:lcoFiles}, \autopageref{tab:lcoFiles} you can find a
list of all predefined \File{lco} files. If you use a printer that has
large unprintable areas on the left or right side, you might have
problems with the \Option{SN}\IndexOption{SN} option. Since the Swiss
-standard SN~101\,130 defines the address field to be placed 8\,mm from
+standard SN~101\,130 defines the address field to be placed 8\Unit{mm} from
the right paper edge, the headline and the sender attributes too will
be set with the same small distance from the paper edge. This also
applies to the reference fields line when using the
@@ -1031,49 +1143,74 @@ value. Additionally, also reduce \PLength{toaddrwidth} accordingly.
%
\EndIndex{Cmd}{LoadLetterOption}%
-\begin{table}
-\centering
-\caption{The predefined \File{lco} files}
-\begin{tabular}{lp{.7\textwidth}}
- \toprule
- \File{lco} file & Description and features \\
- \midrule
- \Option{DIN}\IndexOption[indexmain]{DIN}%
- & parameter set for letters on A4-size paper,
- complying with German standard DIN~676;
- suitable for window envelopes in the sizes C4, C5, C6,
- and C6/5 (C6 long).\\
- \Option{DINmtext}\IndexOption[indexmain]{DINmtext}%
- & parameter set for letters on A4-size paper,
- complying with DIN~676, but using an alternate layout
- with more text on the first page;
- only suitable for window envelopes in the sizes C6 and
- C6/5 (C6 long).\\
- \Option{KOMAold}\IndexOption[indexmain]{KOMAold}%
- & parameter set for letters on A4-size paper using a
- layout close to the now obsolete \Class{scrlettr}
- letter class; suitable for window envelopes in the sizes
- C4, C5, C6, and C6/5 (C6 long);
- some additional commands to improve compatibility with
- obsolete \Class{scrlettr} commands are defined;
- \Class{scrlttr2} may behave slightly different when
- used with this \File{lco} file than with the other
- \File{lco} files.\\
- \Option{SN}\IndexOption[indexmain]{SN}%
- & parameter set for Swiss letters with address field on
- the right side, according to SN~010\,130; suitable for
- Swiss window envelopes in the sizes C4, C5, C6, and
- C6/5 (C6 long).\\
- \Option{SNleft}\IndexOption[indexmain]{SNleft}%
- & parameter set for Swiss letters with address field on
- the left side;
- suitable for Swiss window envelopes with window on the
- left side in the sizes C4, C5, C6, and C6/5 (C6 long).
- \\
- \bottomrule
-\end{tabular}
-\label{tab:lcoFiles}
-\end{table}
+\begin{desctable}
+ \caption{The predefined \File{lco} files\label{tab:lcoFiles}}\\
+ \Endfirsthead%
+ \caption[]{The predefined \File{lco} files (\emph{continuation})}\\
+ \Endhead%
+ \standardfoot%
+ \oentry{DIN}{%
+ parameter set for letters on A4-size paper, complying with German
+ standard DIN~676; suitable for window envelopes in the sizes C4,
+ C5, C6, and C6/5 (C6 long).}%
+ \oentry{DINmtext}{%
+ parameter set for letters on A4-size paper, complying with
+ DIN~676, but using an alternate layout with more text on the first
+ page; only suitable for window envelopes in the sizes C6 and C6/5
+ (C6 long).}%
+ \oentry{KOMAold}{%
+ parameter set for letters on A4-size paper using a layout close to
+ the now obsolete \Class{scrlettr} letter class; suitable for
+ window envelopes in the sizes C4, C5, C6, and C6/5 (C6 long); some
+ additional commands to improve compatibility with obsolete
+ \Class{scrlettr} commands are defined; \Class{scrlttr2} may behave
+ slightly different when used with this \File{lco} file than with
+ the other \File{lco} files.}%
+ \oentry{NipponEL}{%
+ parameter set for Japanese letters in A4 format; suitable for
+ Japanese window envelopes of types Chou or You 3 or 4, in which
+ the windows is approximately 90\Unit{mm} wide, 45\Unit{mm} high,
+ and positioned 22\Unit{mm} from the left and 12\Unit{mm} from the
+ top edge (see \autoref{cha:japanlco}).}%
+ \oentry{NipponEH}{%
+ parameter set for Japanese letters in A4 format; suitable for
+ Japanese window envelopes of types Chou or You 3 or 4, in which
+ the windows is approximately 90\Unit{mm} wide, 55\Unit{mm} high,
+ and positioned 22\Unit{mm} from the left and 12\Unit{mm} from the
+ top edge (see \autoref{cha:japanlco}).}%
+ \oentry{NipponLL}{%
+ parameter set for Japanese letters in A4 format; suitable for
+ Japanese window envelopes of types Chou or You 3 or 4, in which
+ the windows is approximately 90\Unit{mm} wide, 45\Unit{mm} high,
+ and positioned 25\Unit{mm} from the left and 12\Unit{mm} from the
+ top edge (see \autoref{cha:japanlco}).}%
+ \oentry{NipponLH}{%
+ parameter set for Japanese letters in A4 format; suitable for
+ Japanese window envelopes of types Chou or You 3 or 4, in which
+ the windows is approximately 90\Unit{mm} wide, 55\Unit{mm} high,
+ and positioned 25\Unit{mm} from the left and 12\Unit{mm} from the
+ top edge (see \autoref{cha:japanlco}).}%
+ \oentry{NipponRL}{%
+ parameter set for Japanese letters in A4 format; suitable for
+ Japanese window envelopes of types Chou or You 3 or 4, in which
+ the windows is approximately 90\Unit{mm} wide, 45\Unit{mm} high,
+ and positioned 25\Unit{mm} from the left and 24\Unit{mm} from the
+ top edge (see \autoref{cha:japanlco}).}%
+ \oentry{KakuLL}{%
+ parameter set for Japanese letters in A4 format; suitable for
+ Japanese window envelopes of type Kaku A4, in which the windows is
+ approximately 90\Unit{mm} wide, 45\Unit{mm} high, and positioned
+ 25\Unit{mm} from the left and 24\Unit{mm} from the top edge (see
+ \autoref{cha:japanlco}).}%
+ \oentry{SN}{%
+ parameter set for Swiss letters with address field on the right
+ side, according to SN~010\,130; suitable for Swiss window
+ envelopes in the sizes C4, C5, C6, and C6/5 (C6 long).}%
+ \oentry{SNleft}{%
+ parameter set for Swiss letters with address field on the left
+ side; suitable for Swiss window envelopes with window on the left
+ side in the sizes C4, C5, C6, and C6/5 (C6 long).}%
+\end{desctable}
\begin{Explain}
\begin{Declaration}
@@ -1152,27 +1289,36 @@ these properties have already been mentioned or explained in
\BeginIndex{}{font>style}\BeginIndex{}{font>size}%
\begin{Explain}
-Commands for defining, extending and querying the font of a specific
-element can be found~\ref{sec:maincls.font}. These commands work exactly
-the same in \Class{scrlttr2}. The elements which can be influenced in
-this way are listed in \autoref{tab:scrlttr2.elementsWithoutText}.
-%
-\begin{table}
- \centering%
- \caption{Alphabetical list of elements whose font can be
- changed in \Class{scrlttr2} using the commands \Macro{setkomafont} and
- \Macro{addtokomafont}}
- \begin{desctabular}
+ Commands for defining, extending and querying the font of a specific
+ element can be found in \autoref{sec:maincls.font}. These commands
+ work exactly the same in \Class{scrlttr2}. The elements which can be
+ influenced in this way are listed in
+ \autoref{tab:scrlttr2.elementsWithoutText}.
+ %
+ \begin{desctable}
+ \caption{Alphabetical list of elements whose font can be changed in
+ \Class{scrlttr2} using the commands \Macro{setkomafont} and
+ \Macro{addtokomafont}\label{tab:scrlttr2.elementsWithoutText}}\\
+ \Endfirsthead
+ \caption[]{Elements whose font can be changed
+ (\emph{continuation})}\\
+ \Endhead%
+ \standardfoot%
+ \feentry{addressee}{name und address in address field}%
\feentry{backaddress}{%
return address for a window envelope}%
\feentry{descriptionlabel}{%
label, i.\,e., the optional argument of \Macro{item}, in a
\Environment{description} environment}%
+ \feentry{foldmark}{foldmark on the letter page; intended for color
+ settings}%
\feentry{fromaddress}{%
sender's address in the letterhead}%
\feentry{fromname}{%
sender's address in the letterhead if different from
\FontElement{fromaddress}}%
+ \feentry{fromrule}{line in return address field in letterhead;
+ intended for color settings}%
\feentry{pagefoot}{%
in most cases the footer, sometimes the header of a page}%
\feentry{pagehead}{%
@@ -1180,15 +1326,19 @@ this way are listed in \autoref{tab:scrlttr2.elementsWithoutText}.
\feentry{pagenumber}{%
page number in the footer or header, inserted with
\Macro{pagemark}}%
+ \feentry{specialmail}{mode of dispatch in address field}%
\feentry{subject}{%
subject in the opening of the letter}%
\feentry{title}{%
title in the opening of the letter}%
- \end{desctabular}
- \label{tab:scrlttr2.elementsWithoutText}
-\end{table}
+ \feentry{toaddress}{variation of the element
+ \FontElement{addressee} for setting the adressee address (less
+ the name) in the adress field}%
+ \feentry{toname}{variation of the element \FontElement{addressee}
+ for the name (only) of the addressee in the address field}%
+ \end{desctable}
\end{Explain}
-%
+%
\EndIndex{}{font>style}\EndIndex{}{font>size}%
@@ -1660,85 +1810,64 @@ individual sections of this chapter.
(\emph{continued})}\\%
\Endhead%
\standardfoot%
- \pentry{foldmarkhpos}{%
- horizontal distance of all foldmarks from left paper edge
- (\autoref{sec:scrlttr2.other},
- \autopageref{desc:scrlttr2.plength.foldmarkhpos})}%
- \pentry{tfoldmarkvpos}{%
- vertical distance of upper foldmark from top paper edge
- (\autoref{sec:scrlttr2.other},
- \autopageref{desc:scrlttr2.plength.tfoldmarkvpos})}%
+ \pentry{backaddrheight}{%
+ height of the return address at the upper edge of the address
+ field (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.backaddrheight})}%
\pentry{bfoldmarkvpos}{%
vertical distance of lower foldmark from top paper edge
(\autoref{sec:scrlttr2.other},
\autopageref{desc:scrlttr2.plength.bfoldmarkvpos})}%
+ \pentry{firstfootvpos}{%
+ vertical distance of letterfoot from top paper edge
+ (\autoref{sec:scrlttr2.firstFoot},
+ \autopageref{desc:scrlttr2.plength.firstfootvpos})}%
+ \pentry{firstfootwidth}{%
+ width of letterfoot; letterfoot is centered horizontally on letter
+ paper (\autoref{sec:scrlttr2.firstFoot},
+ \autopageref{desc:scrlttr2.plength.firstfootwidth})}%
\pentry{firstheadvpos}{%
- vertical distance of letter-head from top paper edge
+ vertical distance of letterhead from top paper edge
(\autoref{sec:scrlttr2.firstHead},
\autopageref{desc:scrlttr2.plength.firstheadvpos})}%
\pentry{firstheadwidth}{%
- width of letter-head; letter-head is centered horizontally
- on letter paper (\autoref{sec:scrlttr2.firstHead},
+ width of letter head; letterhead is centered horizontally on
+ letter paper (\autoref{sec:scrlttr2.firstHead},
\autopageref{desc:scrlttr2.plength.firstheadwidth})}%
+ \pentry{foldmarkhpos}{%
+ horizontal distance of all foldmarks from left paper edge
+ (\autoref{sec:scrlttr2.other},
+ \autopageref{desc:scrlttr2.plength.foldmarkhpos})}%
+ \pentry{fromrulethickness}{%
+ Thickness of an optional horizontal line in the letterhead
+ (\autoref{sec:scrlttr2.firstHead},
+ \autopageref{desc:scrlttr2.plength.fromrulethickness})}%
\pentry{fromrulewidth}{%
- length of an optional horizontal rule in letter-head
+ length of an optional horizontal rule in letterhead
(\autoref{sec:scrlttr2.firstHead},
\autopageref{desc:scrlttr2.plength.fromrulewidth})}%
- \pentry{toaddrvpos}{%
- vertical distance of address field from top paper edge
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrvpos})}%
- \pentry{toaddrhpos}{%
- horizontal distance of address field from left paper edge
- -- for positive values -- or negative horizontal distance of address
- field from right paper edge -- for negative values --
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrhpos})}%
- \pentry{toaddrindent}{%
- left and right indentation of address within address field
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrindent})}%
- \pentry{toaddrwidth}{%
- width of address field (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrwidth})}%
- \pentry{toaddrheight}{%
- height of address field (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrheight})}%
- \pentry{backaddrheight}{%
- height of return address field on top of address field
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.backaddrheight})}%
- \pentry{specialmailindent}{%
- left indentation of mode of dispatch within address field
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.specialmailindent})}%
- \pentry{specialmailrightindent}{%
- right indentation of mode of dispatch within address field
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.specialmailrightindent})}%
\pentry{locwidth}{%
width of supplemental data field; for zero value width is
calculated automatically with respect to option \Option{locfield}
that is described in \autoref{sec:scrlttr2.headoptions}
(\autoref{sec:scrlttr2.locationField},
\autopageref{desc:scrlttr2.plength.locwidth})}%
+ \pentry{refaftervskip}{%
+ vertical skip below reference fields line
+ (\autoref{sec:scrlttr2.refLine},
+ \autopageref{desc:scrlttr2.plength.refaftervskip})}%
+ \pentry{refhpos}{%
+ horizontal distance of reference fields line from left paper edge;
+ for zero value reference fields line is centered horizontally on
+ letter paper (\autoref{sec:scrlttr2.refLine},
+ \autopageref{desc:scrlttr2.plength.refhpos})}%
\pentry{refvpos}{%
vertical distance of reference fields line from top paper edge
(\autoref{sec:scrlttr2.refLine},
\autopageref{desc:scrlttr2.plength.refvpos})}%
\pentry{refwidth}{%
- width of reference fields line
- (\autoref{sec:scrlttr2.refLine},
+ width of reference fields line (\autoref{sec:scrlttr2.refLine},
\autopageref{desc:scrlttr2.plength.refwidth})}%
- \pentry{refhpos}{%
- horizontal distance of reference fields line from left paper edge; for zero
- value reference fields line is centered horizontally on letter paper
- (\autoref{sec:scrlttr2.refLine},
- \autopageref{desc:scrlttr2.plength.refhpos})}%
- \pentry{refaftervskip}{%
- vertical skip below reference fields line
- (\autoref{sec:scrlttr2.refLine},
- \autopageref{desc:scrlttr2.plength.refaftervskip})}%
\pentry{sigbeforevskip}{%
vertical skip between closing and signature
(\autoref{sec:scrlttr2.closing},
@@ -1747,15 +1876,38 @@ individual sections of this chapter.
indentation of signature with respect to text body
(\autoref{sec:scrlttr2.closing},
\autopageref{desc:scrlttr2.plength.sigindent})}%
- \pentry{firstfootvpos}{%
- vertical distance of letter foot from top paper edge
- (\autoref{sec:scrlttr2.firstFoot},
- \autopageref{desc:scrlttr2.plength.firstfootvpos})}%
- \pentry{firstfootwidth}{%
- width of letter foot; letter foot is centered horizontally
- on letter paper
- (\autoref{sec:scrlttr2.firstFoot},
- \autopageref{desc:scrlttr2.plength.firstfootwidth})}%
+ \pentry{specialmailindent}{%
+ left indentation of mode of dispatch within address field
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.specialmailindent})}%
+ \pentry{specialmailrightindent}{%
+ right indentation of mode of dispatch within address field
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.specialmailrightindent})}%
+ \pentry{tfoldmarkvpos}{%
+ vertical distance of upper foldmark from top paper edge
+ (\autoref{sec:scrlttr2.other},
+ \autopageref{desc:scrlttr2.plength.tfoldmarkvpos})}%
+ \pentry{toaddrheight}{%
+ height of address field (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrheight})}%
+ \pentry{toaddrhpos}{%
+ horizontal distance of address field from left paper edge, for
+ positive values; or negative horizontal distance of address field
+ from right paper edge, for negative values
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrhpos})}%
+ \pentry{toaddrindent}{%
+ left and right indentation of address within address field
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrindent})}%
+ \pentry{toaddrvpos}{%
+ vertical distance of address field from top paper edge
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrvpos})}%
+ \pentry{toaddrwidth}{%
+ width of address field (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrwidth})}%
\end{desctable}
\begin{Declaration}
@@ -1959,6 +2111,168 @@ well as for the first page of the body. The first page consists of
more than just the preliminaries of the letter; in fact, it consists
of several different parts.
+
+\subsection{Foldmarks}
+\label{sec:scrlttr2.foldmarks}
+\BeginIndex{}{foldmark}%
+
+Foldmarks\Index{foldmark} are short horizontal lines at the left edge,
+and short vertical lines at the upper edge of the paper. \KOMAScript{}
+at present supports three configurable horizontal and one configurable
+vertical foldmarks. In addition, there is support for a punchmark or
+center mark which cannot be shifted in the vertical direction.
+
+\begin{Declaration}
+ \PLength{tfoldmarkvpos}\\
+ \PLength{mfoldmarkvpos}\\
+ \PLength{bfoldmarkvpos}
+\end{Declaration}
+\BeginIndex{PLength}{tfoldmarkvpos}%
+\BeginIndex{PLength}{bfoldmarkvpos}%
+\BeginIndex{PLength}{mfoldmarkvpos}%
+The letter class \Class{scrlttr2} knows a total of three
+vertically-placed configurable foldmarks. The position of the upper
+foldmark, taken from the upper edge of the paper, is governed by the
+pseudo-length \PLength{tfoldmarkvpos}, that of the middle foldmark by
+pseudo-length
+\PLength{mfoldmarkvpos}\ChangedAt{v2.97e}{\Class{scrlttr2}}, and that
+of the lower foldmark by pseudo-length \PLength{bfoldmarkvpos}. With
+the addition of the punch\Index{punchmark} or
+center\Index{center mark|see{punchmark}}% not sure of this construction
+mark, there is still a fourth horizontal mark. This one is however
+always placed at the vertical center of the paper.
+
+The upper and lower foldmarks do not serve to divide the paper into
+exactly equal thirds. Instead, with their help, the paper should be
+folded such that the address field appears correctly in the space
+available in the chosen window envelope format, which is determined by
+choice of \File{lco} file. Several such files are available offering
+predefined formats. An anomaly is present with \Option{DINmtext}: for
+this format, an envelope format of C6/5 (also known as ``C6 long'') is
+assumed. Letters written with this option are not suited to envelopes
+of formats C5 or C4.
+
+The middle foldmark is not normally required for Western letters. In
+Japan, however, a larger number of envelope formats exists, requiring
+one more foldmark (see the Japanese \File{lco} files). At this point
+attention is drawn to the fact that reference to ``upper'',
+``middle'', and ``lower'' foldmarks is simply a convenience. In fact,
+it is not defined that \PLength{tfoldmarkvpos} must be smaller than
+\PLength{mfoldmarkvpos}, which in turn must be smaller than
+\PLength{bfoldmarkvpos}. If on the other hand one of the
+pseudo-lengths is set to null, then the corresponding foldmark will
+not be set even if the option \Option{foldmarks} (see
+\autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.foldmarks}) is explicity activated.
+%
+\EndIndex{PLength}{tfoldmarkvpos}%
+\EndIndex{PLength}{mfoldmarkvpos}%
+\EndIndex{PLength}{bfoldmarkvpos}%
+
+
+\begin{Declaration}
+ \PLength{tfoldmarklength}\\
+ \PLength{mfoldmarklength}\\
+ \PLength{bfoldmarklength}\\
+ \PLength{pfoldmarklength}
+\end{Declaration}
+\BeginIndex{PLength}{tfoldmarklength}%
+\BeginIndex{PLength}{mfoldmarklength}%
+\BeginIndex{PLength}{bfoldmarklength}%
+\BeginIndex{PLength}{pfoldmarklength}%
+These\ChangedAt{v2.97e}{\Class{scrlttr2}} four pseudo-lengths
+determine the lengths of the four horizontal foldmarks. One
+exceptional behaviour exists. If the length is given as null, then the
+three vertically-configurable pseudo-lengths
+\PLength{tfoldmarklength}, \PLength{mfoldmarklength} and
+\PLength{bfoldmarklength} are set to 2\Unit{mm} in length. The length of
+the punchmark, \PLength{pfoldmarklength}, is instead set to 4\Unit{mm}.
+\EndIndex{PLength}{tfoldmarklength}%
+\EndIndex{PLength}{mfoldmarklength}%
+\EndIndex{PLength}{bfoldmarklength}%
+\EndIndex{PLength}{pfoldmarklength}%
+
+
+\begin{Declaration}
+ \PLength{foldmarkhpos}
+\end{Declaration}
+\BeginIndex{PLength}{foldmarkhpos}%
+This pseudo-length gives the distance of all horizontal foldmarks from
+the left edge of the paper. Normally, this is 3.5\Unit{mm}. This value
+can be changed in the user's own \File{lco} file, in case the user's
+printer has a wider unprintable left margin. Whether the foldmarks are
+typeset at all depends on the option \Option{foldmarks} (see
+\autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.foldmarks}).
+%
+\EndIndex{PLength}{foldmarkhpos}%
+\EndIndex{}{Faltmarke}%
+
+
+\begin{Declaration}
+ \PLength{lfoldmarkhpos}
+\end{Declaration}
+\BeginIndex{PLength}{lfoldmarkhpos}%
+Apart from\ChangedAt{v2.97e}{\Class{scrlttr2}} the horizontal
+foldmarks there is also a vertical foldmark, whose position from the
+left margin is set via the pseudo-length \PLength{lfoldmarkhpos}. This
+foldmark is used, for example, in Japanese Chou- or You-format
+envelopes, when one wishes to use A4 size sheets with them. This can
+also be useful for envelopes in C6 format.
+\EndIndex{PLength}{lfoldmarkhpos}%
+
+
+\begin{Declaration}
+ \PLength{lfoldmarklength}
+\end{Declaration}
+\BeginIndex{PLength}{lfoldmarklength}%
+The\ChangedAt{v2.97e}{\Class{scrlttr2}} length of the vertical
+foldmark is set via the pseudo-length \PLength{lfoldmarklength}. Here
+too there is an exceptional behaviour. When the length is set to null,
+a length of 4\Unit{mm} is actually used.
+\EndIndex{PLength}{lfoldmarklength}%
+
+
+\begin{Declaration}
+ \PLength{foldmarkvpos}
+\end{Declaration}
+\BeginIndex{PLength}{foldmarkvpos}%
+This\ChangedAt{v2.97e}{\Class{scrlttr2}} pseudo-length gives the
+distance of all vertical foldmarks from teh upper edge of the
+paper. Normally this is 3.5\Unit{mm}, but the value can be changed in the
+user's personal \File{lco} file in case the user's printer has a wider
+unprintable top margin. Whether the foldmarks are typeset at all
+depends on the option \Option{foldmarks} (see
+\autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.foldmarks}). At present there is
+only one vertical foldmark, which is designated the left vertical
+foldmark.
+%
+\EndIndex{PLength}{foldmarkvpos}%
+\EndIndex{}{Faltmarke}%
+
+
+\begin{Declaration}
+ \PLength{foldmarkthickness}
+\end{Declaration}
+\BeginIndex{PLength}{foldmarkthickness}%
+This\ChangedAt{v2.97c}{\Class{scrlttr2}} pseudo-length determines the
+thickness of all foldmarks. Default value is 0.2\Unit{pt}, in other words a
+very thin hairline. In particular, if the color of the foldmarks is
+changed, this can be too thin!
+\EndIndex{PLength}{foldmarkthickness}%
+
+
+\begin{Declaration}
+ \FontElement{foldmark}
+\end{Declaration}
+\BeginIndex{FontElement}{foldmark}%
+Via\ChangedAt{v2.97c}{\Class{scrlttr2}} this element the color of the
+foldmarks can be changed. To do so, the commands to change the font of
+the element are usd, as described in \autoref{sec:scrlttr2.font},
+\autopageref{sec:scrlttr2.font}. The default setting is no change.
+\EndIndex{FontElement}{foldmark}%
+
\subsection{The Letterhead}
\label{sec:scrlttr2.firstHead}
\BeginIndex{}{letter>head}%
@@ -2077,8 +2391,10 @@ letter document (see \autoref{sec:scrlttr2.document}).
\EndIndex{Variable}{fromlogo}%
\begin{Declaration}
+ \PLength{fromrulethickness}\\
\PLength{fromrulewidth}
\end{Declaration}
+\BeginIndex{PLength}{fromrulethickness}%
\BeginIndex{PLength}{fromrulewidth}%
Depending on the class option \Option{fromrule} (see
\autoref{sec:scrlttr2.headoptions},
@@ -2091,8 +2407,11 @@ e.\,g., letterhead width or an optional logo. Users can adjust rule
length manually in their own \File{lco} files by setting this
pseudo-length to positive values using \Macro{\@setplength} (see
\autoref{sec:scrlttr2.pseudoLength},
-\autopageref{desc:scrlttr2.macro.@setplength}).
+\autopageref{desc:scrlttr2.macro.@setplength}). The default
+thickness of the line\ChangedAt{v2.97c}{\Class{scrlttr2}},
+\PLength{fromrulethickness}, is 0.4\Unit{pt}.
%
+\EndIndex{PLength}{fromrulethickness}%
\EndIndex{PLength}{fromrulewidth}%
\begin{Declaration}
@@ -2159,7 +2478,7 @@ use variables with the help of \Macro{usekomavar}.
%
\EndIndex{}{letter>head}%
-\subsection{The Footer}
+\subsection{The Letterfoot}
\label{sec:scrlttr2.firstFoot}
\BeginIndex{}{letter>footer}%
@@ -2172,14 +2491,14 @@ the page style settings, but directly with the use of \Macro{opening}.
\end{Declaration}
\BeginIndex{PLength}{firstfootvpos}%
%
-This pseudo-length gives the distance between the footer and the upper
-edge of the paper. This value is set differently in the various
+This pseudo-length gives the distance between the letterfoot and the
+upper edge of the paper. This value is set differently in the various
predefined \File{lco} files. It also takes care of preventing text
from jutting into the footer area. If needed, it can help to shorten
the text height on the first page using \Macro{enlargethispage}.
Likewise, and if it is needed, the text height can conversely be
extended with the help of the option \Option{enlargefirstpage}. This
-way, the distance between text area and the first page's footer can be
+way, the distance between text area and the first letterfoot can be
reduced to the value \Length{footskip}. See also
\autoref{sec:scrlttr2.typeareaOptions},
\autopageref{desc:scrlttr2.option.enlargefirstpage}.
@@ -2194,6 +2513,15 @@ option \Option{enlargefirstpage} also loses its effect. From version
2.9u onwards the footer is set in a position at the bottom edge of the
paper. In this situation, the height of the type area also becomes
dependent on \Option{enlargefirstpage}.
+
+If the letterfoot be switched off using option
+\Option{firstfoot}\IndexOption{firstfoot}\ChangedAt{v2.97e}{\Class{scrlttr2}}
+(siehe \autoref{sec:scrlttr2.footoptions},
+\autopageref{desc:scrlttr2.option.firstfoot}), then the setting of
+\PLength{firstfootvpos} is ignored, and instead
+\Length{paperheight}\IndexLength{paperheight} is applied. Thus, there
+remains a mimimum bottom margin of length
+\Length{footskip}\IndexLength{footskip}.
%
\EndIndex{PLength}{firstfootvpos}%
@@ -2517,6 +2845,7 @@ between macros \Macro{makeatletter} and \Macro{makeatother} (see
\subsection{The Sender's Extensions}
\label{sec:scrlttr2.locationField}
+\BeginIndex{}{sender's extension}
Often, especially with business letters, the space for the letterhead
or page footer seems to be too tight to include all you want. To give
@@ -2526,21 +2855,39 @@ addressee's field is used. In this manual this field is called the
\begin{Declaration}
+ \PLength{locheight}\\
+ \PLength{lochpos}\\
+ \PLength{locvpos}\\
\PLength{locwidth}
\end{Declaration}
\BeginIndex{PLength}{locwidth}%
-This pseudo-length \PLength{locwidth} declares the width of the
-sender's extension field. Its value is typically set to 0\Unit{pt} in
-the predefined \File{lco} files. This value takes on a special
-meaning: it does not mean that the sender's extension has no width;
-instead the actual width is set with \Macro{opening} when the paper
-width, address window width, and the distance between the left edge of
-the paper and the address window are known. The option
-\Option{locfield} (see \autoref{sec:scrlttr2.headoptions},
+\BeginIndex{PLength}{locheight}%
+\BeginIndex{PLength}{lochpos}%
+\BeginIndex{PLength}{locvpos}%
+The pseudo-lengths \PLength{locwidth} and
+\PLength{locheight}\ChangedAt{v2.97d}{\Class{scrlttr2}} set the width
+and height of the sender's extension field. The pseudo-lengths
+\PLength{lochpos} and \PLength{locvpos} determine the distances from
+the right and upper paper edges. These value is typically set to
+0\Unit{pt} in the predefined \File{lco} files. This does not mean that
+the sender's extension has no width; instead, it means that the actual
+width is set with \Macro{opening} when the paper width, address window
+width, and the distance between the left and upper edges of the paper
+and the address window are known. The option \Option{locfield} (see
+\autoref{sec:scrlttr2.headoptions},
\autopageref{desc:scrlttr2.option.locfield}) is also taken into
-account.
+account. As is the case for \PLength{toaddrhpos}, negative values of
+\PLength{lochpos} take on a special meaning. In that case, instead of
+referring to a distance from the right edge of the paper,
+\PLength{lochpos} now means a distance from the left edge of the
+paper. The meaning is thus the opposite to that of
+\PLength{toaddrhpos} (see \autoref{sec:scrlttr2.addressee},
+\autopageref{desc:scrlttr2.plength.toaddrhpos}).
%
\EndIndex{PLength}{locwidth}
+\EndIndex{PLength}{locheight}%
+\EndIndex{PLength}{lochpos}%
+\EndIndex{PLength}{locvpos}%
\begin{Declaration}
@@ -2552,8 +2899,8 @@ variable \Variable{location}. To set this variable's content, it is
permitted to use formatting commands like \Macro{raggedright}. One has
to consider that depending on the use of the options
\Option{fromalign} and \Option{fromlogo}, a part of the space for the
-sender's extension may already be reserved for a logo (see
-\autoref{sec:scrlttr2.headoptions},
+sender's extension may already be reserved for a logo or return
+address (see \autoref{sec:scrlttr2.headoptions},
\autopageref{desc:scrlttr2.option.fromalign} and
\autopageref{desc:scrlttr2.option.fromlogo}).
%
@@ -2580,6 +2927,7 @@ your own \File{lco} file.
\end{Example}
%
\EndIndex{Variable}{location}%
+\EndIndex{}{sender's extension}%
\subsection{The Reference Fields Line}
@@ -2834,47 +3182,6 @@ In this paragraph variables and settings are listed which could not be
assigned to any other part of the letter declaration but somehow
belong to this section.
-\begin{Declaration}
- \PLength{tfoldmarkvpos}\\
- \PLength{bfoldmarkvpos}
-\end{Declaration}
-\BeginIndex{PLength}{tfoldmarkvpos}%
-\BeginIndex{PLength}{bfoldmarkvpos}%
-The letterclass \Class{scrlttr2} knows about 3 fold marks. The one in
-the middle serves to halve the paper and is therefore printed always
-in the middle of the paper height. The position of the upper fold
-mark, seen from the upper edge of the paper, is determined by the
-pseudo-length \PLength{tfoldmarkvpos}; the lower one is determined by
-the pseudo-length \PLength{bfoldmarkvpos}. These two fold marks do not
-serve to exactly fold into three equally-sized panels. Instead the
-idea is to have the paper folded so that the address field is seen in
-the window of a window envelope. The settings therefore are different
-in the various predefined \File{lco} files. A special case is
-\Option{DINmtext}. In this case the envelope format C6/5 (also called
-``C6~long'') is necessary. Letters produced in this format are not
-compatible with envelopes in either C5 or C4 formats.
-%
-\EndIndex{PLength}{tfoldmarkvpos}%
-\EndIndex{PLength}{bfoldmarkvpos}%
-
-
-\begin{Declaration}
- \PLength{foldmarkhpos}
-\end{Declaration}
-\BeginIndex{PLength}{foldmarkhpos}%
-This pseudo-length gives the distance between all three fold marks and
-the left edge of the paper. Usually this is 3.5\Unit{mm}. In case
-you work with a printer with a broader unprintable left margin, this
-value can be changed in your own \File{lco} files. The length of the
-upper and lower fold marks is identically 2\Unit{mm}, while the center
-fold mark is 4\Unit{mm} long. The thickness of all three is
-2\Unit{pt}. At the moment there are no plans to change these value. If
-the fold marks will be set at all depends on the option
-\Option{foldmarks} (see \autoref{sec:scrlttr2.headoptions},
-\autopageref{desc:scrlttr2.option.foldmarks}).
-%
-\EndIndex{PLength}{foldmarkhpos}%
-
\begin{Declaration}
\Variable{frombank}
@@ -3352,7 +3659,7 @@ in \autoref{tab:date}.
\Macro{datespanish} & 1.\,12.\,1993\\
\Macro{datedutch} & 1.\,12.\,1993\\
\Macro{datecroatian} & 1.\,12.\,1993.\\
- \Macro{datefinnish } & 1.\,12.\,1993.\\
+ \Macro{datefinnish } & 1.12.1993.\\
\bottomrule
\end{tabular}
\label{tab:date}
@@ -3876,5 +4183,5 @@ width of the argument of \Macro{closing}.
%%% TeX-master: "../guide"
%%% End:
-% LocalWords: scrlttr simpleSwitchValues afteropening beforeopening lcoFile
+% LocalWords: scrlttr simpleSwitchValues afteropening beforeopening
% LocalWords: locfield
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/english/scrpage2.tex b/Master/texmf-dist/source/latex/koma-script/doc/english/scrpage2.tex
index cee23e6fe5f..2fc696e23e9 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/english/scrpage2.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/english/scrpage2.tex
@@ -45,11 +45,11 @@
%
% ============================================================================
-\ProvidesFile{scrpage2.tex}[2007/09/27 KOMA-Script guide (chapter:scrpage2)]
+\ProvidesFile{scrpage2.tex}[2007/12/07 KOMA-Script guide (chapter:scrpage2)]
\translator{Jens-Uwe Morawski\and Karl-Heinz Zimmer\and Christoph Bier\and
Gernot Hassenpflug\and Markus Kohm}
-% date of translated german file: 2005/08/10
+% date of translated german file: 2007/12/07
\chapter{Adapting Page Headers and Footers with \Package{scrpage2}}
\labelbase{scrpage}
@@ -463,7 +463,7 @@ The macro \Macro{automark} activates the automatic updating, that is,
running headings. For the two parameters the designations of the
document sectioning level whose title is to appear in appropriate
place are to be used. Valid values for the parameters are:
-\PValue{part}\ChangedAt{2.2}{\Package{scrpage2}}, \PValue{chapter},
+\PValue{part}\ChangedAt{v2.2}{\Package{scrpage2}}, \PValue{chapter},
\PValue{section}, \PValue{subsection}, \PValue{subsubsection},
\PValue{paragraph}, and \PValue{subparagraph}. For most of the
classes use of \PValue{part} will not produce the expected result. So
@@ -668,7 +668,7 @@ adapts automatically the width of the header or the footer.
Use \PValue{auto} in the length argument to restore this automation
for the length of a line.
-The\ChangedAt{2.2}{\Package{scrpage2}} optional argument
+The\ChangedAt{v2.2}{\Package{scrpage2}} optional argument
\PName{commands} may be used to specify additional commands to be
executed before the respective line is drawn. For example, such
commands could be used for changing the
@@ -1371,5 +1371,5 @@ styles which many projects can share.
%%% Local Variables:
%%% mode: latex
%%% coding: iso-latin-1
-%%% TeX-master: ../guide"
+%%% TeX-master: "../guide"
%%% End:
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/german/scrbookreportarticle.tex b/Master/texmf-dist/source/latex/koma-script/doc/german/scrbookreportarticle.tex
index 59261b7dd1a..c9e86f2c16c 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/german/scrbookreportarticle.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/german/scrbookreportarticle.tex
@@ -45,7 +45,7 @@
%
% ============================================================================
-\ProvidesFile{scrbookreportarticle.tex}[2007/09/04 KOMA-Script guide (chapter:
+\ProvidesFile{scrbookreportarticle.tex}[2007/12/07 KOMA-Script guide (chapter:
scrbook, scrreprt, scrartcl)]
\chapter{Die Hauptklassen \Class{scrbook}, \Class{scrreprt}, \Class{scrartcl}}
@@ -776,11 +776,11 @@ bei der Satzspiegelberechnung im \Package{typearea}-Paket kommen.
\BeginIndex{Option}{smallheadings}%
\BeginIndex{Option}{normalheadings}%
\BeginIndex{Option}{bigheadings}%
-Die Überschriften\index{Ueberschriften=Überschriften}\index{Gliederung} werden
-sowohl bei den Standardklassen als auch bei {\KOMAScript} normalerweise recht
-groß gesetzt. Dies gefällt nicht jedem und wirkt insbesondere bei kleinen
-Papiergrößen oft störend. Daher stehen bei {\KOMAScript} neben den mit der
-Option \Option{bigheadings} standardmäßig sehr groß voreingestellen
+Die Überschriften\index{Ueberschriften=Überschriften}\index{Gliederung}%
+werden sowohl bei den Standardklassen als auch bei {\KOMAScript} normalerweise
+recht groß gesetzt. Dies gefällt nicht jedem und wirkt insbesondere bei
+kleinen Papiergrößen oft störend. Daher stehen bei {\KOMAScript} neben den mit
+der Option \Option{bigheadings} standardmäßig sehr groß voreingestellen
Überschriften die beiden Optionen \Option{normalheadings} und
\Option{smallheadings} zur Ver"-fügung, mit denen man insgesamt kleinere
Überschriften erhält. Die aus den Optionen resultierenden Schriftgrößen sind
@@ -1125,7 +1125,7 @@ dessen gewählten Namen war mir vor Jahren bei der Implementierung nicht klar.
\Option{leqno}
\end{Declaration}%
\BeginIndex{Option}{leqno}%
-Gleichungen\Index{Gleichungen} werden normalerweise auf der
+Gleichungen\Index{Gleichungen>Nummern} werden normalerweise auf der
rechten Seite nummeriert. Mit Hilfe der Standardoption
\Option{leqno} wird die Standardoptionsdatei \File{leqno.clo}
geladen. Dadurch erfolgt die Nummerierung von Gleichungen links.
@@ -1137,10 +1137,10 @@ geladen. Dadurch erfolgt die Nummerierung von Gleichungen links.
\Option{fleqn}
\end{Declaration}%
\BeginIndex{Option}{fleqn}%
-Gleichungen werden normalerweise horizontal zentriert ausgegeben. Mit
-Hilfe der Standardoption \Option{fleqn} wird die Standardoptionsdatei
-\File{fleqn.clo} geladen. Dadurch erfolgt die Ausgabe von Gleichungen
-linksbündig.
+Gleichungen\Index{Gleichungen>Ausrichtung} werden normalerweise horizontal
+zentriert ausgegeben. Mit Hilfe der Standardoption \Option{fleqn} wird die
+Standardoptionsdatei \File{fleqn.clo} geladen. Dadurch erfolgt die Ausgabe von
+Gleichungen linksbündig.
%
\EndIndex{Option}{fleqn}%
@@ -1362,6 +1362,11 @@ definiert ist.
erfolgt nach dem Element \FontElement{caption}}%
\feentry{chapter}{%
Überschrift der Ebene \Macro{chapter}}%
+ \feentry{chapterentry}{%
+ Inhaltsverzeichniseintrag der Ebene \Macro{chapter}}%
+ \feentry{chapterentrypagenumber}{%
+ Seitenzahl des Inhaltsverzeichniseintrags der Ebene \Macro{chapter}
+ abweichend vom Element \FontElement{chapterentry}}%
\feentry{descriptionlabel}{%
Labels, also das optionale Argument der \Macro{item}-Anweisung, in einer
\Environment{description}-Umgebung}%
@@ -1399,18 +1404,36 @@ definiert ist.
\feentry{part}{%
Überschrift der Ebene \Macro{part} jedoch ohne die Zeile mit der Nummer
des Teils}%
+ \feentry{partentry}{%
+ Inhaltsverzeichniseintrag der Ebene \Macro{part}}%
+ \feentry{partentrypagenumber}{%
+ Seitenzahl des Inhaltsverzeichniseintrags der Ebene \Macro{part}
+ abweichend vom Element \FontElement{partentry}}%
\feentry{partnumber}{%
Zeile mit der Nummer des Teils in Überschrift der Ebene \Macro{part}}%
\feentry{section}{%
Überschrift der Ebene \Macro{section}}%
+ \feentry{sectionentry}{%
+ Inhaltsverzeichniseintrag der Ebene \Macro{section} (nur bei
+ \Class{scrartcl} verfügbar)}%
+ \feentry{sectionentrypagenumber}{%
+ Seitenzahl des Inhaltsverzeichniseintrags der Ebene \Macro{section}
+ abweichend vom Element \FontElement{sectionentry} (nur bei
+ \Class{scrartcl} verfügbar)}%
\feentry{sectioning}{%
alternative Bezeichnung für \FontElement{disposition}}%
+ \feentry{subject}{%
+ Typisierung des Dokuments, also das Argument von \Macro{subject} auf der
+ Haupttitelseite}%
\feentry{subparagraph}{%
Überschrift der Ebene \Macro{subparagraph}}%
\feentry{subsection}{%
Überschrift der Ebene \Macro{subsection}}%
\feentry{subsubsection}{%
Überschrift der Ebene \Macro{subsubsection}}%
+ \feentry{subtitle}{%
+ Untertitel des Dokuments, also das Argument von \Macro{subtitle} auf der
+ Haupttitelseite}%
\feentry{title}{%
Haupttitel des Dokuments, also das Argument von \Macro{title} (bezüglich
der Größe des Haupttitels siehe die ergänzenden Bemerkungen im Text ab
@@ -1939,7 +1962,9 @@ Nummer 1 im gewählten \PName{Nummerierungsstil}.
\begin{Declaration}
- \Environment{titlepage}
+ \XMacro{begin}\PParameter{\Environment{titlepage}}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{titlepage}
\end{Declaration}%
\BeginIndex{Env}{titlepage}%
Grundsätzlich werden bei den Standardklassen und bei {\KOMAScript}
@@ -1997,17 +2022,20 @@ einer solchen Titelei durch Umdefinierung des Makros \Macro{titlepagestyle}
verändert werden. Siehe hierzu \autoref{sec:maincls.pageStyle},
\autopageref{desc:maincls.macro.titlepagestyle}.
-Die folgenden Anweisungen führen nicht unmittelbar zum Setzen der
-Titelei. Das Setzen der Titelei erfolgt immer mit
-\Macro{maketitle}. Mit den nachfolgend erklärten Anweisungen
-werden lediglich die Inhalte der Titelei festgelegt. Sie müssen
-daher auch unbedingt vor \Macro{maketitle} verwendet werden. Es
-ist jedoch nicht notwendig und bei Verwendung des
-\Package{babel}-Pakets\IndexPackage{babel} (siehe
-\cite{package:babel}) auch nicht empfehlenswert, diese
-Anweisungen in der Dokumentpräambel vor
-\Macro{begin}\PParameter{document} zu verwenden.
-Beispieldokumente finden Sie am Ende des Abschnitts.
+Die folgenden Anweisungen führen nicht unmittelbar zum Setzen der Titelei. Das
+Setzen der Titelei erfolgt immer mit \Macro{maketitle}. Es sei an dieser
+Stelle auch darauf hingewiesen, dass \Macro{maketitle} nicht innerhalb einer
+\Environment{titlepage}-Umgebung zu verwenden ist. Wie in den Beispielen
+angegeben sollte man nur entweder \Macro{maketitle} oder
+\Environment{titlepage} verwenden.
+
+Mit den nachfolgend erklärten Anweisungen werden lediglich die Inhalte der
+Titelei festgelegt. Sie müssen daher auch unbedingt vor \Macro{maketitle}
+verwendet werden. Es ist jedoch nicht notwendig und bei Verwendung des
+\Package{babel}-Pakets\IndexPackage{babel} (siehe \cite{package:babel}) auch
+nicht empfehlenswert, diese Anweisungen in der Dokumentpräambel vor
+\Macro{begin}\PParameter{document} zu verwenden. Beispieldokumente finden Sie
+am Ende des Abschnitts.
\begin{Explain}%
@@ -2068,6 +2096,7 @@ erfolgt als Bestandteil der Titelei mit \Macro{maketitle}.
\Macro{titlehead}\Parameter{Titelkopf}\\
\Macro{subject}\Parameter{Typisierung}\\
\Macro{title}\Parameter{Titel}\\
+ \Macro{subtitle}\Parameter{Untertitel}\\
\Macro{author}\Parameter{Autor}\\
\Macro{date}\Parameter{Datum}\\
\Macro{publishers}\Parameter{Herausgeber}\\
@@ -2077,20 +2106,29 @@ erfolgt als Bestandteil der Titelei mit \Macro{maketitle}.
\BeginIndex{Cmd}{titlehead}%
\BeginIndex{Cmd}{subject}%
\BeginIndex{Cmd}{title}%
+\BeginIndex{Cmd}{subtitle}%
\BeginIndex{Cmd}{author}%
\BeginIndex{Cmd}{date}%
\BeginIndex{Cmd}{publishers}%
\BeginIndex{Cmd}{and}%
\BeginIndex{Cmd}{thanks}%
-Für den Inhalt der Haupttitelseite stehen sechs Elemente zur
-Verfügung. Der \PName{Titelkopf}\Index[indexmain]{Titel>Kopf} wird
+Für den Inhalt der Haupttitelseite stehen sieben Elemente zur Verfügung. Die
+Ausgabe der Haupttitelseite erfolgt als Bestandteil der Titelei mit
+\Macro{maketitle}, während die hier aufgeführten Anweisungen lediglich der
+Definition der entspechenden Elemente dienen.
+
+Der \PName{Titelkopf}\Index[indexmain]{Titel>Kopf} wird
mit der Anweisung \Macro{titlehead} definiert. Er wird über die
gesamte Textbreite in normalem Blocksatz am Anfang der Seite
ausgegeben. Er kann vom Anwender frei gestaltet werden.
-Die \PName{Typisierung}\Index[indexmain]{Typisierung} wird unmittelbar
-über dem \PName{Titel} ausgegeben. Dabei wird eine gegenüber der
-Grundschrift leicht vergößerte Schrift verwendet.
+Die \PName{Typisierung}\Index[indexmain]{Typisierung} wird unmittelbar über
+dem \PName{Titel}
+ausgegeben. Dabei\ChangedAt{v2.95}{\Class{scrbook}\and\Class{scrreprt}\and\Class{scrartcl}}
+findet die Schriftumschaltung für das Element
+\FontElement{subject}\IndexFontElement{subject} Anwendung. Die Voreinstellung,
+die in \autoref{tab:maincls.titlefonts} zu finden ist, kann mit Hilfe der
+Anweisungen aus \autoref{sec:maincls.font} verändert werden.
Der \PName{Titel} wird in einer sehr großen Schrift ausgegeben.
Dabei\ChangedAt{v2.8p}{%
@@ -2105,7 +2143,31 @@ mit Hilfe der Anweisungen aus \autoref{sec:maincls.font} verändert werden. Die
Größe ist jedoch davon unabhängig (siehe \autoref{tab:maincls.mainTitle},
\autopageref{tab:maincls.mainTitle}).
-Unter dem \PName{Titel} folgt der \PName{Autor}\Index[indexmain]{Autor}.
+Der
+\PName{Untertitel}\ChangedAt{v2.97c}{\Class{scrbook}\and\Class{scrreprt}\and\Class{scrartcl}}
+wird in der über das Element \FontElement{subtitle}\IndexFontElement{subtitle}
+eingestellten Schrift knapp unter dem Titel ausgegeben. Die Voreinstellung,
+die \autoref{tab:maincls.titlefonts} zu entnehmen ist, kann mit Hilfe der
+Anweisungen aus \autoref{sec:maincls.font} verändert werden.
+
+\begin{table}
+ \centering
+ \caption{Schriftvoreinstellungen für die Elemente des Titels}
+ \begin{tabular}{ll}
+ \toprule
+ Element-Name & Voreinstellung \\
+ \midrule
+ \FontElement{subject} &
+ \Macro{normalfont}\Macro{normalcolor}\Macro{bfseries}\Macro{Large} \\
+ \FontElement{title} & \Macro{usekomafont}\PParameter{disposition} \\
+ \FontElement{subtitle} &
+ \Macro{usekomafont}\PParameter{title}\Macro{large} \\
+ \bottomrule
+ \end{tabular}
+ \label{tab:maincls.titlefonts}
+\end{table}
+
+Unter dem \PName{Untertitel} folgt der \PName{Autor}\Index[indexmain]{Autor}.
Es kann auch durchaus mehr als ein Autor innerhalb des Arguments von
\Macro{author} angegeben werden. Die Autoren sind dann mit \Macro{and}
voneinander zu trennen.
@@ -2141,11 +2203,15 @@ zusammengefasst in \autoref{tab:maincls.mainTitle} zu finden.
\Macro{maketitle}}
\begin{tabular}{llll}
\toprule
- Element & Anweisung & Schrift & Ausrichtung \\
+ Element & Anweisung & Schrift & Satz \\
\midrule
Seitenkopf & \Macro{titlehead} & \Macro{normalsize} & Blocksatz \\
- Typisierung & \Macro{subject} & \Macro{Large} & zentriert \\
- Titel & \Macro{title} & \Macro{huge} & zentriert \\
+ Typisierung & \Macro{subject} & \Macro{usekomafont}\PParameter{subject}
+ & zentriert \\
+ Titel & \Macro{title} &
+ \Macro{huge}\Macro{usekomafont}\PParameter{title} & zentriert \\
+ Untertitel & \Macro{subtitle} &
+ \Macro{usekomafont}\PParameter{subtitle} & zentriert \\
Autoren & \Macro{author} & \Macro{Large} & zentriert \\
Datum & \Macro{date} & \Macro{Large} & zentriert \\
Herausgeber & \Macro{publishers} & \Macro{Large} & zentriert \\
@@ -2173,6 +2239,7 @@ zusammengefasst in \autoref{tab:maincls.mainTitle} zu finden.
34567 Schlauenheim}
\subject{Diplomarbeit}
\title{Digitale Raumsimulation mit dem DSP\,56004}
+ \subtitle{Klein aber fein?}
\author{cand. stup. Uli Ungenau}
\date{30. Februar 2001}
\publishers{Betreut durch Prof. Dr. rer. stup.
@@ -2207,6 +2274,7 @@ zusammengefasst in \autoref{tab:maincls.mainTitle} zu finden.
\EndIndex{Cmd}{titlehead}%
\EndIndex{Cmd}{subject}%
\EndIndex{Cmd}{title}%
+\EndIndex{Cmd}{subtitle}%
\EndIndex{Cmd}{author}%
\EndIndex{Cmd}{date}%
\EndIndex{Cmd}{publishers}%
@@ -2274,7 +2342,9 @@ Anweisung definiert sein.
\begin{Declaration}
- \Environment{abstract}
+ \XMacro{begin}\PParameter{\Environment{abstract}}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{abstract}
\end{Declaration}%
\BeginIndex{Env}{abstract}%
\OnlyAt{\Class{scrartcl}\and\Class{scrreprt}}%
@@ -2358,20 +2428,50 @@ linksbündig untereinander gesetzt werden. Wie in
\autoref{sec:maincls.tocOptions}, \autopageref{desc:maincls.option.tocleft}
erläutert wird, werden dafür mehrere \LaTeX{}-Durchläufe benötigt.
-\begin{Explain}
Der Eintrag für die oberste Gliederungsebene unter \Macro{part}, also
\Macro{chapter} bei \Class{scrbook}\IndexClass{scrbook} und
\Class{scrreprt}\IndexClass{scrreprt} beziehungsweise \Macro{section} bei
-\Class{scrartcl}\IndexClass{scrartcl} wird nicht eingerückt. Dafür findet auf
-ihn die Schriftart für das Element
-\FontElement{disposition}\IndexFontElement{disposition} (siehe
-\autoref{tab:maincls.elementsWithoutText},
-\autopageref{tab:maincls.elementsWithoutText}) Anwendung. Gleichzeitig
-befinden sich zwischen dem Text der Gliederungsebene und der Seitenzahl keine
-Pünktchen. Die typografischen Gründe dafür liegen in der normalerweise anderen
-Schriftart sowie der erwünschten Hervorhebung. Das Inhaltsverzeichnis dieser
-Anleitung ist mit den Voreinstellungen gesetzt und dient als Beispiel.
-\end{Explain}
+\Class{scrartcl}\IndexClass{scrartcl}, sowie der Gliederungsebene \Macro{part}
+selbst wird nicht eingerückt. Gleichzeitig befinden sich zwischen dem Text der
+Gliederungsebene und der Seitenzahl keine Pünktchen. Die typografischen Gründe
+dafür liegen in der normalerweise anderen Schriftart sowie der erwünschten
+Hervorhebung. Das Inhaltsverzeichnis dieser Anleitung ist mit den
+Voreinstellungen gesetzt und dient als Beispiel.
+Die\ChangedAt{v2.97c}{\Class{scrbook}\and\Class{scrreprt}\and\Class{scrartcl}}
+Schrift dieser beiden oberen Inhaltsverzeichniseinträge ist außerdem über die
+Elemente \FontElement{partentry}\IndexFontElement{partentry} und
+\FontElement{chapterentry}\IndexFontElement{chapterentry}
+bzw. \FontElement{sectionentry}\IndexFontElement{sectionentry}
+einstellbar. Die Schrift der Seitenzahlen kann davon abweichend über die
+Elemente
+\FontElement{partentrypagenumber}\IndexFontElement{partentrypagenumber} und
+\FontElement{chapterentrypagenumber}\IndexFontElement{chapterentrypagenumber}
+bzw.
+\FontElement{sectionentrypagenumber}\IndexFontElement{sectionentrypagenumber}
+eingestellt werden (siehe auch \autoref{sec:maincls.font}, ab
+\autopageref{sec:maincls.font}, sowie
+\autoref{tab:maincls.elementsWithoutText}). Die Voreinstellungen der Elemente
+ist \autoref{tab:maincls.tocelements} zu entnehmen.
+\begin{table}
+ \centering
+ \caption{Schriftvoreinstellungen für die Elemente des Inhaltsverzeichnisses}
+ \begin{tabular}{ll}
+ \toprule
+ Element & Voreinstellung \\
+ \midrule
+ \FontElement{partentry} &
+ \Macro{usekomafont}\PParameter{disposition}\Macro{large} \\
+ \FontElement{partentrypagenumber} & \\
+ \FontElement{chapterentry} & \Macro{usekomafont}\PParameter{disposition}
+ \\
+ \FontElement{chapterentrypagenumber} & \\
+ \FontElement{sectionentry} & \Macro{usekomafont}\PParameter{disposition}
+ \\
+ \FontElement{sectionentrypagenumber} & \\
+ \bottomrule
+ \end{tabular}
+ \label{tab:maincls.tocelements}
+\end{table}
\begin{Declaration}
\Counter{tocdepth}
@@ -2538,9 +2638,31 @@ Tabellenverzeichnis\Index{Tabellen>Verzeichnis der} und ein
Vorwort\Index{Vorwort} verwendet wird. Das Vorwort kann also als
normales Kapitel gesetzt werden. Ein Vorwort sollte niemals in
Abschnitte unterteilt, sondern möglichst kurz gefasst werden. Im
-Vorwort wird also keine tiefere Gliederungsebene als Kapitel benötigt.
+Vorwort wird also keine tiefere Gliederungsebene als Kapitel benötigt.
+
+Für den Fall, dass der Anwender dies anders sieht und nummerierte
+Abschnitte\Index{Abschnitt>Nummer} in den Kapiteln des Vorspanns haben will,
+enthält ab Version~2.97e\ChangedAt{v2.97e}{\Class{scrbook}} die Nummerierung
+der Abschnitte keine Kapitelnummer. Diese Änderung gibt es nur, wenn die
+Kompatibilität min. auf Version~2.97e eingestellt ist (siehe Option
+\Option{version}, \autoref{sec:maincls.compatibilityOptions},
+\autopageref{desc:maincls.option.version}). Es wird ausdrücklich darauf
+hingewiesen, dass dadurch bezüglich der Nummern eine Verwechslung mit
+Kapitelnummern gegeben ist! Die Verwendung von \Macro{addsec} und
+\Macro{section*} (siehe \autoref{sec:maincls.structure},
+\autopageref{desc:maincls.macro.section*} und
+\autopageref{desc:maincls.macro.addsec}) sind aus Sicht des Autors im Vorspann
+deshalb unbedingt vorzuziehen!
+
+Ab Version~2.97e\ChangedAt{v2.97e}{\Class{scrbook}} enhalten auch die Nummern
+für Gleitumgebungen wie Tabellen\Index{Tabellen>Nummern} und
+Abbildungen\Index{Abbildungen>Nummern} und die
+Gleichungsnummern\Index{Gleichungen>Nummern} im Vorspann keinen
+Kapitelanteil. Auch dies erfordert eine entsprechende
+Kompatibilitätseinstellung (siehe Option \Option{version},
+\autoref{sec:maincls.compatibilityOptions},
+\autopageref{desc:maincls.option.version}).
-\looseness=-1
Mit \Macro{mainmatter} wird der Hauptteil eingeleitet. Existiert kein
Vorspann, so kann diese Anweisung auch entfallen. Im Hauptteil sind
arabische Seitenzahlen voreingestellt. Die Seitenzählung beginnt im
@@ -3671,8 +3793,10 @@ Ich empfehle in solchen Fällen, die eine große Liste in mehrere
kleinere Listen aufzuteilen.
\begin{Declaration}
- \Environment{itemize}\\
- \Macro{item}\\
+ \XMacro{begin}\PParameter{\Environment{itemize}}\\
+ \quad\Macro{item}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{itemize}\\
\Macro{labelitemi}\\
\Macro{labelitemii}\\
\Macro{labelitemiii}\\
@@ -3776,8 +3900,10 @@ eingeleitet.
\begin{Declaration}
- \Environment{enumerate}\\
- \XMacro{item}\\
+ \XMacro{begin}\PParameter{\Environment{enumerate}}\\
+ \quad\XMacro{item}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{enumerate}\\
\Macro{theenumi}\\
\Macro{theenumii}\\
\Macro{theenumiii}\\
@@ -3867,8 +3993,10 @@ Stichpunkte werden wieder mit \Macro{item} eingeleitet.
\begin{Declaration}
- \Environment{description}\\
- \XMacro{item}\OParameter{Stichwort}
+ \XMacro{begin}\PParameter{\Environment{description}}\\
+ \quad\XMacro{item}\OParameter{Stichwort}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{description}
\end{Declaration}%
\BeginIndex{Env}{description}%
\BeginIndex{Cmd}{item}%
@@ -3925,9 +4053,12 @@ Voreinstellung wird \Macro{sffamily}""\Macro{bfseries} verwendet.
\begin{Declaration}
- \Environment{labeling}\OParameter{Trennzeichen}\Parameter{längstes
+ \XMacro{begin}\PParameter{\Environment{labeling}}%
+ \OParameter{Trennzeichen}\Parameter{längstes
Muster}\\
- \XMacro{item}\OParameter{Schlüsselwort}
+ \quad\XMacro{item}\OParameter{Schlüsselwort}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{labeling}
\end{Declaration}%
\BeginIndex{Env}{labeling}%
\BeginIndex{Cmd}{item}%
@@ -3985,7 +4116,9 @@ Umgebung für Beispiele in dieser Anleitung mit Hilfe der
\begin{Declaration}
- \Environment{verse}
+ \XMacro{begin}\PParameter{\Environment{verse}}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{verse}
\end{Declaration}%
\BeginIndex{Env}{verse}%
Die \Environment{verse}-Umgebung wird normalerweise nicht als
@@ -4078,8 +4211,12 @@ ganz normal \verb|\\*| an Stelle von \verb|\\|.
\begin{Declaration}
- \Environment{quote}\\
- \Environment{quotation}
+ \XMacro{begin}\PParameter{\Environment{quote}}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{quote}\\
+ \XMacro{begin}\PParameter{\Environment{quotation}}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{quotation}
\end{Declaration}%
\BeginIndex{Env}{quote}%
\BeginIndex{Env}{quotation}%
@@ -4172,8 +4309,14 @@ Einzug verhindern, müssen Sie die
\begin{Declaration}
- \Environment{addmargin}\OParameter{linker Einzug}\Parameter{Einzug}\\
- \Environment{addmargin*}\OParameter{innerer Einzug}\Parameter{Einzug}
+ \XMacro{begin}\PParameter{\Environment{addmargin}}%
+ \OParameter{linker Einzug}\Parameter{Einzug}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{addmargin}\\
+ \XMacro{begin}\PParameter{\Environment{addmargin*}}%
+ \OParameter{innerer Einzug}\Parameter{Einzug}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{addmargin*}
\end{Declaration}
\BeginIndex{Env}{addmargin}%
Wie die \Environment{quote} und \Environment{quotation} handelt es
@@ -4521,12 +4664,20 @@ wie \Macro{captionbelow} verhält.
\begin{Declaration}
- \Environment{captionbeside}\OParameter{Verzeichnistitel}%
- \Parameter{Titel}\OParameter{Anordnung}\OParameter{Breite}%
+ \XMacro{begin}\PParameter{\Environment{captionbeside}}%
+ \OParameter{Verzeichnistitel}\Parameter{Titel}\texttt{\%}\\
+ \hphantom{\XMacro{begin}\PParameter{captionbeside}}%
+ \OParameter{Anordnung}\OParameter{Breite}%
\OParameter{Offset}\\%
- \XEnvironment{captionbeside}\OParameter{Verzeichnistitel}%
- \Parameter{Titel}\OParameter{Anordnung}\OParameter{Breite}%
- \OParameter{Offset}\PValue{*}
+ \quad\dots\\
+ \XMacro{end}\PParameter{captionbeside}\\
+ \XMacro{begin}\PParameter{captionbeside}\OParameter{Verzeichnistitel}%
+ \Parameter{Titel}\texttt{\%}\\
+ \hphantom{\XMacro{begin}\PParameter{captionbeside}}%
+ \OParameter{Anordnung}\OParameter{Breite}%
+ \OParameter{Offset}\PValue{*}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{captionbeside}
\end{Declaration}
\BeginIndex{Env}{captionbeside}%
Neben \ChangedAt{v2.8q}{%
@@ -5417,6 +5568,9 @@ gestellt.
\end{Explain}
+\index{Ueberschriften=Überschriften|seealso{Abschnitt, Gliederung, Kapitel}}%
+\index{Gliederung|seealso{Abschnitt, Kapitel, Überschriften}}%
+
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "../guide"
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/german/scrlttr2.tex b/Master/texmf-dist/source/latex/koma-script/doc/german/scrlttr2.tex
index 959ed2d71d7..896751046c0 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/german/scrlttr2.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/german/scrlttr2.tex
@@ -45,7 +45,7 @@
%
% ============================================================================
-\ProvidesFile{scrlttr2.tex}[2007/09/17 KOMA-Script guide (chapter: scrlttr2)]
+\ProvidesFile{scrlttr2.tex}[2007/12/15 KOMA-Script guide (chapter: scrlttr2)]
\chapter{Die neue Briefklasse \Class{scrlttr2}}
\labelbase{scrlttr2}
@@ -588,37 +588,65 @@ schon in der obsoleten Klasse \Class{scrlettr} zu finden.
\fi
\begin{Declaration}
+ \Option{firsthead}
+\end{Declaration}
+\BeginIndex{Option}{firsthead}%
+Diese\ChangedAt{v2.97e}{\Class{scrlttr2}} Option bestimmt, ob der Briefkopf
+auf dem Briefbogen überhaupt gesetzt wird. Die Option versteht die
+Standardwerte für einfache Schalter, die in
+\autoref{tab:scrlttr2.simpleSwitchValues},
+\autopageref{tab:scrlttr2.simpleSwitchValues} angegeben sind. Voreingestellt
+ist das Setzen des Briefkopfes.
+\EndIndex{Option}{firsthead}%
+
+\begin{Declaration}
\Option{fromalign}
\end{Declaration}
\BeginIndex{Option}{fromalign}%
-Diese Option bestimmt, wo der Absender\Index{Absender} im Briefkopf
-der ersten Seite platziert werden soll. Gleichzeitig dient diese
-Option als zentraler Schalter, um die Erweiterungen der
-Briefkopfgestaltung überhaupt zu aktivieren oder zu deaktivieren. Sind
-die Erweiterungen deaktiviert, so bleiben diverse andere Optionen ohne
-Wirkung. Dies ist bei den jeweiligen Optionen angegeben. Mögliche
-Werte für \Option{fromalign} sind \autoref{tab:scrlttr2.fromalign} zu
-entnehmen. Voreingestellt ist der Wert \PValue{left}.
+Diese Option bestimmt, wo der Absender\Index{Absender} auf der ersten Seite
+platziert werden soll. Neben verschiedenen Platzierungen im Briefkopf gibt es
+auch\ChangedAt{v2.97e}{\Class{scrlttr2}} die Möglichkeit den Absender in der
+Absenderergänzung\Index{Absenderergaenzung=Absenderergänzung}
+unterzubringen. Gleichzeitig dient diese Option als zentraler Schalter, um die
+Erweiterungen der Briefkopfgestaltung überhaupt zu aktivieren oder zu
+deaktivieren. Sind die Erweiterungen deaktiviert, so bleiben diverse andere
+Optionen ohne Wirkung. Dies ist bei den jeweiligen Optionen
+angegeben. Mögliche Werte für \Option{fromalign} sind
+\autoref{tab:scrlttr2.fromalign} zu entnehmen. Voreingestellt ist der Wert
+\PValue{left}.
\begin{table}
\caption[{Mögliche Werte für Option \Option{fromalign} bei
\Class{scrlttr2}}]{Mögliche Werte für Option \Option{fromalign} zur
- Platzierung des Absenders im Briefkopf von \Class{scrlttr2}}
+ Platzierung des Absenders auf dem Briefbogen von \Class{scrlttr2}}
\label{tab:scrlttr2.fromalign}
\begin{desctabular}
\entry{\PValue{center}, \PValue{centered}, \PValue{middle}}{%
- Absender wird zentriert; ein Logo wird gegebenenfalls am Anfang der
- erweiterten Absenderangabe platziert; die Erweiterungen der
+ Absender wird zentriert im Briefkopf; ein Logo wird gegebenenfalls am
+ Anfang der erweiterten Absenderangabe platziert; die Erweiterungen der
Briefkopfgestaltung werden aktiviert.}%
\entry{\PValue{false}, \PValue{no}, \PValue{off}}{%
die Standardgestalt für den Absender wird verwendet; die Erweiterungen
der Briefkopfgestaltung werden deaktiviert.}%
\entry{\PValue{left}}{%
- Absender steht linksbündig; ein Logo wird gegebenenfalls rechtsbündig
- platziert; die Erweiterungen der Briefkopfgestaltung werden aktiviert.}%
+ Absender steht linksbündig im Briefkopf; ein Logo wird gegebenenfalls
+ rechtsbündig platziert; die Erweiterungen der Briefkopfgestaltung werden
+ aktiviert.}%
+ \entry{\PValue{locationleft}, \PValue{leftlocation}}{%
+ Absender steht linksbündig in der Absenderergänzung; ein Logo wird
+ gegebenenfalls darüber platziert; der Briefkopf wird automatisch
+ deaktiviert, kann aber über Option \Option{firsthead} wieder aktiviert
+ werden.}%
+ \entry{\PValue{locationright}, \PValue{rightlocation},
+ \PValue{location}}{%
+ Absender steht rechtssbündig in der Absenderergänzung; ein Logo wird
+ gegebenenfalls darüber platziert; der Briefkopf wird automatisch
+ deaktiviert, kann aber über Option \Option{firsthead} wieder aktiviert
+ werden.}%
\entry{\PValue{right}}{%
- Absender steht rechtsbündig; ein Logo wird gegebenenfalls linksbündig
- platziert; die Erweiterungen der Briefkopfgestaltung werden aktiviert.}%
+ Absender steht rechtsbündig im Briefkopf; ein Logo wird gegebenenfalls
+ linksbündig platziert; die Erweiterungen der Briefkopfgestaltung werden
+ aktiviert.}%
\end{desctabular}
\end{table}
%
@@ -756,15 +784,18 @@ angegeben sind. Voreingestellt ist \PValue{true}.
\Option{backaddress}
\end{Declaration}
\BeginIndex{Option}{backaddress}%
-Mit dieser Option kann gewählt werden, ob eine
+Mit dieser Option kann gewählt werden, ob und in welcher Form die
Rücksendeadresse\Index{Rücksendeadresse} für Fensterbriefumschläge im
-Anschriftfeld gesetzt werden soll oder nicht. Voreingestellt ist die
-Verwendung einer Rücksendeadresse. Wird kein Anschriftfeld gesetzt
-(siehe Option \Option{addrfield}), so wird auch keine Rücksendeadresse
-gesetzt. Die Option versteht die Standardwerte für einfache Schalter,
-die in \autoref{tab:scrlttr2.simpleSwitchValues},
-\autopageref{tab:scrlttr2.simpleSwitchValues} angegeben sind.
-Voreingestellt ist \PValue{true}.
+Anschriftfeld gesetzt werden soll. Die Option versteht dazu einerseits die
+Standardwerte für einfache Schalter, die in
+\autoref{tab:scrlttr2.simpleSwitchValues},
+\autopageref{tab:scrlttr2.simpleSwitchValues} angegeben sind. Dabei bleibt der
+Stil der Rücksendeadresse unverändert. Beim Einschalten der Rücksendeadresse
+kann andererseits\ChangedAt{v2.96}{\Class{scrlttr2}} gleichzeitig auch der Stil
+der Rücksendeadresse gewählt werden. So aktiviert der Wert \PValue{underlined}
+die unterstrichene Rücksendeadresse, während \PValue{plain} den Stil ohne
+Unterstreichung auswählt. Voreingestellt ist \PValue{underlined}, also das
+Setzen der unterstrichenden Rücksendeadresse.
%
\EndIndex{Option}{backaddress}%
@@ -778,9 +809,12 @@ mit einem Titel versehen werden soll oder nicht. Der Titel stimmt mit der
Bezeichnung der Variablen \PName{subject} überein (siehe
\autoref{tab:scrlttr2.subjectTerm}, \autopageref{tab:scrlttr2.subjectTerm}).
Zum anderen kann über diese Option gewählt werden, ob der Betreff vor oder
-nach der Anrede gesetzt werden soll. Mögliche Werte für diese Option sind
-\autoref{tab:scrlttr2.subject} zu entnehmen. Voreingestellt sind
-\PValue{beforeopening} und \PValue{untitled}.
+nach der Anrede gesetzt werden soll. Desweiteren kann die
+Formatierung\ChangedAt{v2.97c}{\Class{scrlttr2}} des Betreffs eingestellt
+werden. Mögliche Werte für diese Option sind \autoref{tab:scrlttr2.subject} zu
+entnehmen. Es wird ausdrücklich darauf hingewiesen, dass bei der Einstellung
+\PValue{underlined} der Betreff komplett in eine Zeile passen muss!
+Voreingestellt sind \PValue{beforeopening} und \PValue{untitled}.
\begin{table}
\caption[{Mögliche Werte für Option \Option{subject} bei
\Class{scrlttr2}}]{Mögliche Werte für Option \Option{subject} zur
@@ -789,7 +823,12 @@ nach der Anrede gesetzt werden soll. Mögliche Werte für diese Option sind
\begin{desctabular}
\pventry{afteropening}{Betreff nach der Anrede setzen}%
\pventry{beforeopening}{Betreff vor der Anrede setzen}%
+ \pventry{centered}{Betreff zentrieren}%
+ \pventry{left}{Betreff linksbündig setzen}%
+ \pventry{right}{Betreff rechtsbündig setzen}%
\pventry{titled}{Betreff mit Titel versehen}%
+ \pventry{underlined}{Betreff unterstreichen (siehe auch den Hinweis im
+ Text)}%
\pventry{untitled}{Betreff nicht mit Titel versehen}%
\end{desctabular}
\end{table}
@@ -835,15 +874,62 @@ sind \autoref{tab:scrlttr2.locfield} zu entnehmen. Voreingestellt ist
\Option{foldmarks}
\end{Declaration}
\BeginIndex{Option}{foldmarks}%
-Mit dieser Option können Faltmarken\Index{Faltmarken}\Index{Falzmarken} für
-Seitenhalbierung und Seitendrittelung aktiviert oder deaktiviert werden. Die
-genaue Position der Faltmarken für die Seitendrittelung ist von den
-Einstellungen des Anwenders beziehungsweise der \File{lco}-Dateien (siehe
-\autoref{sec:scrlttr2.lcoFile}) abhängig. Es muss sich dabei nicht zwingend um
-eine echte Drittelung handeln. Die Option versteht die Standardwerte für
+Mit dieser Option können Faltmarken\Index{Faltmarke} für eine vertikale Zwei-,
+Drei- oder Vierteilung und eine horizontale Zweiteilung aktiviert oder
+deaktiviert werden. Die einzelnen Teile müssen dabei nicht äquidistant
+sein. Die Positionen von drei der vier horizontalen und der vertikalen Marke
+sind über Pseudolängen konfigurierbar (siehe
+\autoref{sec:scrlttr2.foldmarks} ab \autopageref{sec:scrlttr2.foldmarks}).
+
+Über die Option \Option{foldmarks} können entweder mit den Standardwerten für
einfache Schalter, die in \autoref{tab:scrlttr2.simpleSwitchValues},
-\autopageref{tab:scrlttr2.simpleSwitchValues} angegeben sind. Voreingestellt
-ist mit \PValue{true} das Setzen der Faltmarken.
+\autopageref{tab:scrlttr2.simpleSwitchValues} angegeben sind, alle
+konfigurierten Faltmarken am linken und oberen Rand ein- und ausgeschaltet
+werden, oder\ChangedAt{v2.97e}{\Class{scrlttr2}} es kann durch die Angabe
+eines oder mehrerer Buchstaben aus \autoref{tab:scrlttr2.foldmark} die
+Verwendung der einzelnen Faltmarken gezielt konfiguriert werden. Auch in
+diesem Fall werden die Faltmarken nur dann angezeigt, wenn die Faltmarken
+nicht mit \PValue{false}, \PValue{off} oder \PValue{no} generell abgeschaltet
+wurden. Die genaue Position der Faltmarken ist von den Einstellungen des
+Anwenders beziehungsweise der \File{lco}-Dateien (siehe
+\autoref{sec:scrlttr2.lcoFile}) abhängig. Voreingestellt sind \PValue{true}
+und \PValue{TBMPL}.
+\begin{table}
+ \centering
+ \caption{Kombinierbare Werte für die Konfiguration der Faltmarken mit der
+ Option \Option{foldmarks}}
+ \label{tab:scrlttr2.foldmark}
+ \begin{desctabular}
+ \pventry{B}{obere, horizontale Faltmarke am linken Rand aktivieren}%
+ \pventry{b}{obere, horizontale Faltmarke am linken Rand deaktivieren}%
+ \pventry{H}{alle horizontalen Faltmarken am linken Rand aktivieren}%
+ \pventry{h}{alle horizontalen Faltmarken am linken Rand deaktivieren}%
+ \pventry{L}{linke, vertikale Faltmarke am oberen Rand aktivieren}%
+ \pventry{l}{linke, vertikale Faltmarke am oberen Rand deaktivieren}%
+ \pventry{M}{mittlere, horizontale Faltmarke am linken Rand aktivieren}%
+ \pventry{m}{mittlere, horizontale Faltmarke am linken Rand deaktivieren}%
+ \pventry{P}{Locher- bzw. Seitenmittenmarke am linken Rand aktivieren}%
+ \pventry{p}{Locher- bzw. Seitenmittenmarke am linken Rand deaktivieren}%
+ \pventry{T}{untere, horizontale Faltmarke am linken Rand aktivieren}%
+ \pventry{t}{untere, horizontale Faltmarke am linken Rand deaktivieren}%
+ \pventry{V}{alle vertikalen Faltmarken am oberen Rand aktivieren}%
+ \pventry{v}{alle vertikalen Faltmarken am oberen Rand deaktivieren}%
+ \end{desctabular}
+\end{table}
+\begin{Example}
+ Angenommen, Sie wollen alle Faltmarken außer der Lochermarke
+ abschalten. Dann können Sie dies beispielsweise mit
+ \begin{lstlisting}
+ \KOMAoption{foldmarks=blmt}
+ \end{lstlisting}
+ erreichen, wenn die Voreinstellung zuvor noch nicht geändert wurde. Besteht
+ hingegen die Möglichkeit, dass die Voreinstellung bereits geändert wurde, so
+ sollten Sie zur Sicherheit lieber
+ \begin{lstlisting}
+ \KOMAoption{foldmarks=true,foldmarks=blmtP}
+ \end{lstlisting}
+ verwenden.
+\end{Example}
%
\EndIndex{Option}{foldmarks}%
@@ -902,6 +988,40 @@ entnehmen. Voreingestellt ist \PValue{narrow}.
\EndIndex{}{Briefkopf}\EndIndex{}{Anschrift}
+\subsection{Optionen für den Briefbogenfuß}
+\label{sec:scrlttr2.footoptions}
+\BeginIndex{}{Briefbogenfuss=Briefbogenfuß}
+
+Der Briefbogenfuß ist der Seitenfuß des Briefbogens, also der Seitenfuß der
+ersten Seite eines Briefes. Für seine Platzierung gelten besondere Regeln, die
+der Beschreibung zu Option
+\Option{enlargefirstpage}\IndexOption{enlargefirstpage} (siehe
+\autoref{sec:scrlttr2.typeareaOptions},
+\autopageref{desc:scrlttr2.option.enlargefirstpage}) und zu der Pseudolänge
+\PLength{firstfootvpos}\IndexPLength{firstfootvpos} (siehe
+\autoref{sec:scrlttr2.firstFoot},
+\autopageref{desc:scrlttr2.plength.firstfootvpos}) zu entnehmen sind.
+
+\begin{Declaration}
+ \Option{firstfoot}
+\end{Declaration}
+\BeginIndex{Option}{firstfoot}%
+Diese\ChangedAt{v2.97e}{\Class{scrlttr2}} Option bestimmt, ob der
+Briefbogenfuß überhaupt gesetzt wird. Wird der Briefbogenfuß nicht gesetzt, so
+wird außerdem die Einstellung der Pseudolänge \PLength{firstfootvpos}
+ignorriert und stattdessen von \Class{scrlttr2} angenommen, dass deren Wert
+\Length{paperheight} ist. Dies hat Auswirkungen, wenn gleichzeigit die Option
+\Option{enlargefirstpage} (siehe \autoref{sec:scrlttr2.firstFoot},
+\autopageref{desc:scrlttr2.plength.firstfootvpos}) verwendet wird.
+
+Die Option versteht die Standardwerte für einfache Schalter, die in
+\autoref{tab:scrlttr2.simpleSwitchValues},
+\autopageref{tab:scrlttr2.simpleSwitchValues} angegeben sind. Voreingestellt
+ist das Setzen des Briefbogenfußes.
+\EndIndex{Option}{firstfoot}%
+
+\EndIndex{}{Briefbogenfuss=Briefbogenfuß}
+
\subsection{Optionen für die Formatierung}
\label{sec:scrlttr2.formatingOptions}
@@ -1031,18 +1151,9 @@ der \File{lco}-Datei wird dieser ebenfalls ohne Endung als Parameter
\end{Example}
\begin{Explain}
-Wird eine \File{lco}-Datei über \Macro{documentclass} geladen, so
-darf sie übrigens trotzdem den Namen einer Option haben. Voraussetzung
-ist jedoch, dass es sich nicht um eine Option handelt, die einen Wert
-erwartet. Es wäre jedoch möglich, einer \File{lco}-Datei etwa den
-Namen \File{fromalign=left.lco} zu geben. Diese würde dann immer geladen,
-wenn als Option bei \Macro{documentclass} die Option
-\Option{fromalign} auf den Wert \PValue{left} gesetzt
-würde. Zugegeben, dies ist eher von akademischem Interesse. Natürlich
-können Sie diesen Automatismus nur nutzen, wenn das von Ihnen
-verwendete Betriebs- und Dateisystem derartige Dateinamen erlaubt. Ist
-das nicht der Fall, müssen Sie einen anderen Datei\-namen wählen und
-gegebenenfalls die entsprechende Option zusätzlich angeben.
+ Wird\ChangedAt{v2.97}{\Class{scrlttr2}} eine \File{lco}-Datei über
+ \Macro{documentclass} geladen, so darf sie nicht den Namen einer Option
+ haben.
\end{Explain}
\begin{Example}
@@ -1106,7 +1217,7 @@ Liste aller vordefinierten \File{lco}-Dateien. Falls Sie einen Drucker
verwenden, der einen sehr großen unbedruckbaren Rand links oder rechts
besitzt, werden Sie mit der Option \Option{SN}\IndexOption{SN} möglicherweise
Probleme bekommen. Da die Schweizer Norm SN~101\,130 vorsieht, dass das
-Adressfeld 8\,mm vom rechten Papierrand gesetzt wird, werden bei Schweizer
+Adressfeld 8\Unit{mm} vom rechten Papierrand gesetzt wird, werden bei Schweizer
Briefen auch die Kopfzeile und die Absenderergänzung mit einem entsprechend
geringen Abstand zum Papierrand gesetzt. Dies betrifft ebenfalls die
Geschäftszeile bei der Einstellung \Option{refline}\PValue{=wide} (siehe
@@ -1121,51 +1232,74 @@ entsprechend.
%
\EndIndex{Cmd}{LoadLetterOption}%
-\begin{table}
- \centering
- \caption{Vordefinierte \File{lco}-Dateien}
- \begin{tabular}{lp{.7\textwidth}}
- \toprule
- \File{lco}-Name & Bedeutung und Besonderheiten \\
- \midrule
- \Option{DIN}\IndexOption[indexmain]{DIN}%
- & Parametersatz für Briefe im Format A4 nach
- DIN~676; geeignet für Fensterbriefumschläge in den
- Formaten C4, C5, C6 und C6/5 (C6
- lang)\\[.5\normalbaselineskip]
- \Option{DINmtext}\IndexOption[indexmain]{DINmtext}%
- & Parametersatz für Briefe im Format A4 nach DIN~676,
- wobei die Alternative für mehr Text auf der ersten
- Briefseite verwendet wird; nur geeignet für
- Fensterbriefumschläge in den Formaten C6 und C6/5
- (C6 lang)\\[.5\normalbaselineskip]
- \Option{KOMAold}\IndexOption[indexmain]{KOMAold}%
- & Parametersatz für Briefe im Format A4 mit
- Annäherung an das Aussehen von Briefen der
- obsoleten Briefklasse \Class{scrlettr}; geeignet
- für Fensterbriefumschläge in den Formaten C4, C5,
- C6 und C6/5 (C6 lang); es werden einige
- zusätzliche Anweisungen zur Verbesserung der
- Kompatibilität mit der obsoleten
- Briefklasse \Class{scrlettr}\IndexClass{scrlettr}
- definiert; \Class{scrlttr2} verhält sich mit
- dieser \File{lco}-Datei möglicherweise nicht genau
- wie bei Verwendung der übrigen
- \File{lco}-Dateien\\[.5\normalbaselineskip]
- \Option{SN}\IndexOption[indexmain]{SN}%
- & Parametersatz für Schweizer Briefe nach
- SN~010\,130 mit Anschrift rechts; geeignet für
- Schweizer Fensterbriefumschläge in den Formaten
- C4, C5, C6 und C6/5 (C6 lang)\\[.5\normalbaselineskip]
- \Option{SNleft}\IndexOption[indexmain]{SNleft}%
- & Parametersatz für Schweizer Briefe mit Anschrift
- links; geeignet für Schweizer
- Fensterbriefumschläge mit dem Fenster links in den
- Formaten C4, C5, C6 und C6/5 (C6 lang)\\
- \bottomrule
- \end{tabular}
- \label{tab:lcoFiles}
-\end{table}
+\begin{desctable}
+ \caption{Vordefinierte \File{lco}-Dateien\label{tab:lcoFiles}}\\
+ \Endfirsthead%
+ \caption[]{Vordefinierte \File{lco}-Dateien (\emph{Fortsetzung})}\\
+ \Endhead%
+ \standardfoot%
+ \oentry{DIN}{%
+ Parametersatz für Briefe im Format A4 nach DIN~676; geeignet für
+ Fensterbriefumschläge in den Formaten C4, C5, C6 und C6/5 (C6 lang)%
+ }%
+ \oentry{DINmtext}{%
+ Parametersatz für Briefe im Format A4 nach DIN~676, wobei die Alternative
+ für mehr Text auf der ersten Briefseite verwendet wird; nur geeignet für
+ Fensterbriefumschläge in den Formaten C6 und C6/5 (C6 lang)}%
+ \oentry{KOMAold}{%
+ Parametersatz für Briefe im Format A4 mit Annäherung an das Aussehen von
+ Briefen der obsoleten Briefklasse \Class{scrlettr}; geeignet für
+ Fensterbriefumschläge in den Formaten C4, C5, C6 und C6/5 (C6 lang); es
+ werden einige zusätzliche Anweisungen zur Verbesserung der Kompatibilität
+ mit der obsoleten Briefklasse \Class{scrlettr}\IndexClass{scrlettr}
+ definiert; \Class{scrlttr2} verhält sich mit dieser \File{lco}-Datei
+ möglicherweise nicht genau wie bei Verwendung der übrigen
+ \File{lco}-Dateien}%
+ \oentry{NipponEL}{%
+ Parametersatz für Japanische Briefe im Format A4; geeignet für Japanische
+ Fensterbriefumschläge der Typen Chou oder You 3 oder 4, bei denen das
+ Fenster in etwa 90\Unit{mm} breit, 45\Unit{mm} hoch, 22\Unit{mm}
+ vom linken und 12\Unit{mm} vom oberen Rand entfernt ist (siehe dazu auch
+ den Anhang der englischen \KOMAScript-Anleitung)}%
+ \oentry{NipponEH}{%
+ Parametersatz für Japanische Briefe im Format A4; geeignet für Japanische
+ Fensterbriefumschläge der Typen Chou oder You 3 oder 4, bei denen das
+ Fenster in etwa 90\Unit{mm} breit, 55\Unit{mm} hoch, 22\Unit{mm}
+ vom linken und 12\Unit{mm} vom oberen Rand entfernt ist (siehe dazu auch
+ den Anhang der englischen \KOMAScript-Anleitung)}%
+ \oentry{NipponLL}{%
+ Parametersatz für Japanische Briefe im Format A4; geeignet für Japanische
+ Fensterbriefumschläge der Typen Chou oder You 3 oder 4, bei denen das
+ Fenster in etwa 90\Unit{mm} breit, 45\Unit{mm} hoch, 25\Unit{mm}
+ vom linken und 12\Unit{mm} vom oberen Rand entfernt ist (siehe dazu auch
+ den Anhang der englischen \KOMAScript-Anleitung)}%
+ \oentry{NipponLH}{%
+ Parametersatz für Japanische Briefe im Format A4; geeignet für Japanische
+ Fensterbriefumschläge der Typen Chou oder You 3 oder 4, bei denen das
+ Fenster in etwa 90\Unit{mm} breit, 55\Unit{mm} hoch, 25\Unit{mm}
+ vom linken und 12\Unit{mm} vom oberen Rand entfernt ist (siehe dazu auch
+ den Anhang der englischen \KOMAScript-Anleitung)}%
+ \oentry{NipponRL}{%
+ Parametersatz für Japanische Briefe im Format A4; geeignet für Japanische
+ Fensterbriefumschläge der Typen Chou oder You 3 oder 4, bei denen das
+ Fenster in etwa 90\Unit{mm} breit, 45\Unit{mm} hoch, 22\Unit{mm}
+ vom rechten und 28\Unit{mm} vom oberen Rand entfernt ist (siehe dazu auch
+ den Anhang der englischen \KOMAScript-Anleitung)}%
+ \oentry{KakuLL}{%
+ Parametersatz für Japanische Briefe im Format A4; geeignet für Japanische
+ Fensterbriefumschläge des Typs Kaku A4, bei denen das Fenster in etwa
+ 90\Unit{mm} breit, 45\Unit{mm} hoch, 25\Unit{mm} vom linken und
+ 24\Unit{mm} vom oberen Rand entfernt ist (siehe dazu auch den Anhang der
+ englischen \KOMAScript-Anleitung)}%
+ \oentry{SN}{%
+ Parametersatz für Schweizer Briefe nach SN~010\,130 mit Anschrift rechts;
+ geeignet für Schweizer Fensterbriefumschläge in den Formaten C4, C5, C6
+ und C6/5 (C6 lang)}%
+ \oentry{SNleft}{%
+ Parametersatz für Schweizer Briefe mit Anschrift links; geeignet für
+ Schweizer Fensterbriefumschläge mit dem Fenster links in den Formaten C4,
+ C5, C6 und C6/5 (C6 lang)}%
+\end{desctable}
\begin{Explain}
\begin{Declaration}
@@ -1224,7 +1358,7 @@ und auch das Beispiel überspringen.
\end{Explain}
Die \File{lco}-Datei \File{DIN} wird übrigens immer als erste
-\File{lco}-Datei geladen. Dies wird getan, damit alle Pseudo-Längen
+\File{lco}-Datei geladen. Dies wird getan, damit alle Pseudolängen
mehr oder weniger sinnvoll vordefiniert sind.
Beachten Sie bitte noch, dass es nicht möglich ist, innerhalb einer
@@ -1257,29 +1391,40 @@ funktionieren in \Class{scrlttr2} ganz genauso. Die Elemente, die auf
diese Weise beeinflusst werden können, entnehmen Sie bitte
\autoref{tab:scrlttr2.elementsWithoutText}.
%
-\begin{table}
- \centering%
+\begin{desctable}
\caption{Elemente, deren Schrift bei der Klasse
\Class{scrlttr2} mit \Macro{setkomafont} und \Macro{addtokomafont}
- verändert werden kann}
- \begin{desctabular}
- \feentry{backaddress}{Rücksendeadresse für einen Fensterbriefumschlag}%
- \feentry{descriptionlabel}{Labels, also das optionale Argument von
- \Macro{item}, in einer \Environment{description}-Umgebung}%
- \feentry{fromaddress}{Absenderadresse im Briefkopf}%
- \feentry{fromname}{Name des Absenders im Briefkopf abweichend von
- \PValue{fromaddress}}%
- \feentry{pagefoot}{Eigentlich der Fuß einer Seite, jedoch auch der
- Kopf der Seite}%
- \feentry{pagehead}{Eigentlich der Kopf einer Seite, jedoch auch der
- Fuß der Seite}%
- \feentry{pagenumber}{Seitenangabe im Kopf oder Fuß, die mit
- \Macro{pagemark} gesetzt wird}%
- \feentry{subject}{Betreff in der Brieferöffnung}%
- \feentry{title}{Titel in der Brieferöffnung}%
- \end{desctabular}
- \label{tab:scrlttr2.elementsWithoutText}
-\end{table}
+ verändert werden kann\label{tab:scrlttr2.elementsWithoutText}}\\
+ \Endfirsthead
+ \caption[]{Elemente, deren Schrift verändert werden kann
+ (\emph{Fortsetzung})}\\
+ \Endhead%
+ \standardfoot%
+ \feentry{addressee}{Name und Anschrift im Anschriftfenster}%
+ \feentry{backaddress}{Rücksendeadresse für einen Fensterbriefumschlag}%
+ \feentry{descriptionlabel}{Labels, also das optionale Argument von
+ \Macro{item}, in einer \Environment{description}-Umgebung}%
+ \feentry{foldmark}{Faltmarke auf dem Briefpapier; gedacht für
+ Farbänderungen}%
+ \feentry{fromaddress}{Absenderadresse im Briefkopf}%
+ \feentry{fromname}{Name des Absenders im Briefkopf abweichend von
+ \PValue{fromaddress}}%
+ \feentry{fromrule}{Linie im Absender im Briefkopf; gedacht für
+ Farbänderungen}%
+ \feentry{pagefoot}{Eigentlich der Fuß einer Seite, jedoch auch der
+ Kopf der Seite}%
+ \feentry{pagehead}{Eigentlich der Kopf einer Seite, jedoch auch der
+ Fuß der Seite}%
+ \feentry{pagenumber}{Seitenangabe im Kopf oder Fuß, die mit
+ \Macro{pagemark} gesetzt wird}%
+ \feentry{specialmail}{Versandart im Anschriftfenster}%
+ \feentry{subject}{Betreff in der Brieferöffnung}%
+ \feentry{title}{Titel in der Brieferöffnung}%
+ \feentry{toaddress}{Abweichung vom Element \FontElement{addressee} für die
+ Anschrift (ohne Name) des Empfängers im Anschriftfeld}%
+ \feentry{toname}{Abweichung vom Element \FontElement{addressee} für den
+ Namen des Empfängers im Anschriftfeld}%
+\end{desctable}
\end{Explain}
%
\EndIndex{}{Schriftart}\EndIndex{}{Schriftgroesse=Schriftgröße}%
@@ -1748,7 +1893,8 @@ den einzelnen Abschnitten dieses Kapitels.
\begin{figure}
\centering
\includegraphics{plenDIN}
- \caption{Schematische Darstellung der Pseudolängen für den Briefbogen}
+ \caption{Schematische Darstellung der wichtigsten Pseudolängen für den
+ Briefbogen}
\label{fig:scrlttr2.pseudoLength}
\end{figure}
@@ -1760,18 +1906,23 @@ den einzelnen Abschnitten dieses Kapitels.
(\emph{Fortsetzung})}\\%
\Endhead%
\standardfoot%
- \pentry{foldmarkhpos}{%
- Abstand der Faltmarken von der linken Kante des Papiers
- (\autoref{sec:scrlttr2.other},
- \autopageref{desc:scrlttr2.plength.foldmarkhpos})}%
- \pentry{tfoldmarkvpos}{%
- Abstand der oberen Faltmarke von der oberen Kande des Papiers
- (\autoref{sec:scrlttr2.other},
- \autopageref{desc:scrlttr2.plength.tfoldmarkvpos})}%
+ \pentry{backaddrheight}{%
+ Höhe der Rücksendeadresse am oberen Rand des Anschriftfeldes
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.backaddrheight})}%
\pentry{bfoldmarkvpos}{%
Abstand der unteren Faltmarke von der oberen Kante des Papiers
(\autoref{sec:scrlttr2.other},
\autopageref{desc:scrlttr2.plength.bfoldmarkvpos})}%
+ \pentry{firstfootvpos}{%
+ Abstand des Brief"|fußes von der oberen Kante des Papiers
+ (\autoref{sec:scrlttr2.firstFoot},
+ \autopageref{desc:scrlttr2.plength.firstfootvpos})}%
+ \pentry{firstfootwidth}{%
+ Breite des Brief"|fußes, der automatisch innerhalb der Papierbreite
+ zentriert wird
+ (\autoref{sec:scrlttr2.firstFoot},
+ \autopageref{desc:scrlttr2.plength.firstfootwidth})}%
\pentry{firstheadvpos}{%
Abstand des Briefkopfes von der oberen Kante des Papiers
(\autoref{sec:scrlttr2.firstHead},
@@ -1780,47 +1931,33 @@ den einzelnen Abschnitten dieses Kapitels.
Breite des Briefkopfes, wobei dieser relativ zur Papierbreite zentriert
wird (\autoref{sec:scrlttr2.firstHead},
\autopageref{desc:scrlttr2.plength.firstheadwidth})}%
+ \pentry{foldmarkhpos}{%
+ Abstand der Faltmarken von der linken Kante des Papiers
+ (\autoref{sec:scrlttr2.other},
+ \autopageref{desc:scrlttr2.plength.foldmarkhpos})}%
+ \pentry{fromrulethickness}{%
+ Dicke einer optionalen horizontalen Linie im Briefkopf
+ (\autoref{sec:scrlttr2.firstHead},
+ \autopageref{desc:scrlttr2.plength.fromrulethickness})}%
\pentry{fromrulewidth}{%
Länge einer optionalen horizontalen Linie im Briefkopf
(\autoref{sec:scrlttr2.firstHead},
\autopageref{desc:scrlttr2.plength.fromrulewidth})}%
- \pentry{toaddrvpos}{%
- Abstand des Anschriftfeldes von der oberen Kante des Papiers
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrvpos})}%
- \pentry{toaddrhpos}{%
- Abstand des Anschriftfeldes von der linken Papierkante, falls der Wert
- positiv ist, oder negativer Abstand des Anschriftfeldes von der rechten
- Papierkante, falls der Wert negativ ist (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrhpos})}%
- \pentry{toaddrindent}{%
- linker und rechter Einzug der Anschrift innerhalb des Anschriftfeldes
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrindent})}%
- \pentry{toaddrwidth}{%
- Breite des Anschriftfeldes (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrwidth})}%
- \pentry{toaddrheight}{%
- Höhe des Anschriftfeldes (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.toaddrheight})}%
- \pentry{backaddrheight}{%
- Höhe der Rücksendeadresse am oberen Rand des Anschriftfeldes
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.backaddrheight})}%
- \pentry{specialmailindent}{%
- linker Einzug der Versandart innerhalb des Anschriftfeldes
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.specialmailindent})}%
- \pentry{specialmailrightindent}{%
- rechter Einzug der Versandart innerhalb des Anschriftfeldes
- (\autoref{sec:scrlttr2.addressee},
- \autopageref{desc:scrlttr2.plength.specialmailrightindent})}%
\pentry{locwidth}{%
Breite des Feldes für die Absenderergänzung, wobei bei einem Wert von 0
die Breite automatisch aufgrund der in \autoref{sec:scrlttr2.headoptions}
beschriebenen Option \Option{locfield} berechnet wird
(\autoref{sec:scrlttr2.locationField},
\autopageref{desc:scrlttr2.plength.locwidth})}%
+ \pentry{refaftervskip}{%
+ vertikaler Abstand nach der Geschäftszeile
+ (\autoref{sec:scrlttr2.refLine},
+ \autopageref{desc:scrlttr2.plength.refaftervskip})}%
+ \pentry{refhpos}{%
+ Abstand der Geschäftszeile von der linken Papierkante, wobei bei einem
+ Wert von 0 automatisch relativ zur Papierbreite zentriert wird
+ (\autoref{sec:scrlttr2.refLine},
+ \autopageref{desc:scrlttr2.plength.refhpos})}%
\pentry{refvpos}{%
Abstand der Geschäftszeile von der oberen Kante des Papiers
(\autoref{sec:scrlttr2.refLine},
@@ -1829,15 +1966,6 @@ den einzelnen Abschnitten dieses Kapitels.
Breite der Geschäftszeile
(\autoref{sec:scrlttr2.refLine},
\autopageref{desc:scrlttr2.plength.refwidth})}%
- \pentry{refhpos}{%
- Abstand der Geschäftszeile von der linken Papierkante, wobei bei einem
- Wert von 0 automatisch relativ zur Papierbreite zentriert wird
- (\autoref{sec:scrlttr2.refLine},
- \autopageref{desc:scrlttr2.plength.refhpos})}%
- \pentry{refaftervskip}{%
- vertikaler Abstand nach der Geschäftszeile
- (\autoref{sec:scrlttr2.refLine},
- \autopageref{desc:scrlttr2.plength.refaftervskip})}%
\pentry{sigbeforevskip}{%
vertikaler Abstand zwischen Gruß und Signatur
(\autoref{sec:scrlttr2.closing},
@@ -1846,15 +1974,37 @@ den einzelnen Abschnitten dieses Kapitels.
Einzug der Signatur gegenüber dem Textkörper
(\autoref{sec:scrlttr2.closing},
\autopageref{desc:scrlttr2.plength.sigindent})}%
- \pentry{firstfootvpos}{%
- Abstand des Brief"|fußes von der oberen Kante des Papiers
- (\autoref{sec:scrlttr2.firstFoot},
- \autopageref{desc:scrlttr2.plength.firstfootvpos})}%
- \pentry{firstfootwidth}{%
- Breite des Brief"|fußes, der automatisch innerhalb der Papierbreite
- zentriert wird
- (\autoref{sec:scrlttr2.firstFoot},
- \autopageref{desc:scrlttr2.plength.firstfootwidth})}%
+ \pentry{specialmailindent}{%
+ linker Einzug der Versandart innerhalb des Anschriftfeldes
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.specialmailindent})}%
+ \pentry{specialmailrightindent}{%
+ rechter Einzug der Versandart innerhalb des Anschriftfeldes
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.specialmailrightindent})}%
+ \pentry{tfoldmarkvpos}{%
+ Abstand der oberen Faltmarke von der oberen Kande des Papiers
+ (\autoref{sec:scrlttr2.other},
+ \autopageref{desc:scrlttr2.plength.tfoldmarkvpos})}%
+ \pentry{toaddrheight}{%
+ Höhe des Anschriftfeldes (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrheight})}%
+ \pentry{toaddrhpos}{%
+ Abstand des Anschriftfeldes von der linken Papierkante, falls der Wert
+ positiv ist, oder negativer Abstand des Anschriftfeldes von der rechten
+ Papierkante, falls der Wert negativ ist (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrhpos})}%
+ \pentry{toaddrindent}{%
+ linker und rechter Einzug der Anschrift innerhalb des Anschriftfeldes
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrindent})}%
+ \pentry{toaddrvpos}{%
+ Abstand des Anschriftfeldes von der oberen Kante des Papiers
+ (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrvpos})}%
+ \pentry{toaddrwidth}{%
+ Breite des Anschriftfeldes (\autoref{sec:scrlttr2.addressee},
+ \autopageref{desc:scrlttr2.plength.toaddrwidth})}%
\end{desctable}
\begin{Declaration}
@@ -2090,6 +2240,169 @@ nicht nur die Rolle der Titelei, sondern besteht aus vielen
unterschiedlichen Teilen.
+\subsection{Faltmarken}
+\label{sec:scrlttr2.foldmarks}
+\BeginIndex{}{Faltmarke}%
+
+Falt- oder Falzmarken\Index{Falzmarke|see{Faltmarke}} sind kleine horizontale
+Striche am linken und kleine vertikale Striche am oberen Rand. \KOMAScript{}
+unterstützt für den Briefbogen derzeit drei konfigurierbare horizontale und
+eine konfigurierbare vertikale Faltmarke. Dazu wird noch eine horizontale
+Loch- oder Seitenmittenmarke unterstützt, die nicht in der Vertikalen
+verschoben werden kann.
+
+\begin{Declaration}
+ \PLength{tfoldmarkvpos}\\
+ \PLength{mfoldmarkvpos}\\
+ \PLength{bfoldmarkvpos}
+\end{Declaration}
+\BeginIndex{PLength}{tfoldmarkvpos}%
+\BeginIndex{PLength}{bfoldmarkvpos}%
+\BeginIndex{PLength}{mfoldmarkvpos}%
+Die Briefklasse \Class{scrlttr2} kennt insgesamt drei in der vertikalen
+Platzierung konfigurierbaren Faltmarken. Die Position der oberen Faltmarke vom
+oberen Papierrand wird von der Pseudolänge \PLength{tfoldmarkvpos} bestimmt,
+die der mittleren Faltmarke von der Pseudolänge
+\PLength{mfoldmarkvpos}\ChangedAt{v2.97e}{\Class{scrlttr2}}, die der unteren
+Faltmarke von der Pseudolänge \PLength{bfoldmarkvpos}. Mit der
+Locher-\Index{Lochermarke} oder
+Seitenmittenmarke\Index{Seitenmittenmarke|see{Lochermarke}} kommt noch eine
+weitere horizontale Marke dazu. Diese wird jedoch immer in der vertikalen
+Seitenmitte platziert.
+
+Die obere und untere Faltmarke dienen nicht der exakten Drittelung des
+Papiers beim Falten. Stattdessen soll das Papier mit ihrer Hilfe so geknickt
+werden können, dass das Feld für die Anschrift in einem Fensterbriefumschlag
+zu sehen ist. Die Einstellungen sind daher in den vordefinierten
+\File{lco}-Dateien unterschiedlich gewählt. Eine Besonderheit stellt
+\Option{DINmtext} dar. Hier wird zwingend von einem Briefumschlag im Format
+C6/5 (auch "`C6 lang"' genannt) ausgegangen. Briefe, die mit dieser Option
+erstellt wurden, sind weder für Umschläge im Format C5 noch für Umschläge im
+Format C4 geeignet.
+
+Die mittlere Faltmarke wird für abendländische Briefe normalerweise nicht
+benötigt. Beispielsweise in Japan gibt es jedoch so unterschiedliche
+Briefumschläge, dass eine weitere Faltmarke benötigt wurde (siehe die
+Japanischen \File{lco}-Dateien). An dieser Stelle sei darauf hingewiesen, dass
+die Bezeichnungen "`obere"', "`mittlere"' und "`untere"' Faltmarke lediglich
+eine Sprachkonvention darstellen. Tatsächlich ist nicht festgelegt, dass
+\PLength{tfoldmarkvpos} kleiner als \PLength{mfoldmarkvpos} und dieses kleiner
+als \PLength{bfoldmarkvpos} sein muss. Ist eine der Pseudolängen hingegen
+Null, so wird die entsprechende Faltmarke auch dann nicht gesetzt, wenn sie
+per Option \Option{foldmarks} (siehe \autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.foldmarks}) explizit aktiviert wurde.
+%
+\EndIndex{PLength}{tfoldmarkvpos}%
+\EndIndex{PLength}{mfoldmarkvpos}%
+\EndIndex{PLength}{bfoldmarkvpos}%
+
+
+\begin{Declaration}
+ \PLength{tfoldmarklength}\\
+ \PLength{mfoldmarklength}\\
+ \PLength{bfoldmarklength}\\
+ \PLength{pfoldmarklength}
+\end{Declaration}
+\BeginIndex{PLength}{tfoldmarklength}%
+\BeginIndex{PLength}{mfoldmarklength}%
+\BeginIndex{PLength}{bfoldmarklength}%
+\BeginIndex{PLength}{pfoldmarklength}%
+Diese\ChangedAt{v2.97e}{\Class{scrlttr2}} vier Pseudolängen bestimmen die
+Länge der vier horizontalen Marken. Dabei gilt eine Besonderheit. Ist die
+Länge nämlich mit Null angegeben, so werden bei den Pseudolängen
+\PLength{tfoldmarklength}, \PLength{mfoldmarklength} und
+\PLength{bfoldmarklength} für die drei in der vertikalen Position
+konfigurierbaren Faltmarken stattdessen 2\Unit{mm} als Länge verwendet. Die
+Länge der Lochermarke, \PLength{pfoldmarklength}, wird hingegen auf 4\Unit{mm}
+gesetzt.
+\EndIndex{PLength}{tfoldmarklength}%
+\EndIndex{PLength}{mfoldmarklength}%
+\EndIndex{PLength}{bfoldmarklength}%
+\EndIndex{PLength}{pfoldmarklength}%
+
+
+\begin{Declaration}
+ \PLength{foldmarkhpos}
+\end{Declaration}
+\BeginIndex{PLength}{foldmarkhpos}%
+Diese Pseudolänge gibt den Abstand aller horizontalen Faltmarken vom linken
+Papier\-rand an. Normalerweise sind das 3{,}5\Unit{mm}. Sie können den Wert
+aber auch in Ihrer eigenen \File{lco}-Datei ändern, falls Sie einen Drucker
+verwenden, der einen breiteren unbedruckbaren linken Rand hat. Ob die
+Faltmarken überhaupt gesetzt werden, hängt außerdem von der Option
+\Option{foldmarks} ab (siehe \autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.foldmarks}).
+%
+\EndIndex{PLength}{foldmarkhpos}%
+\EndIndex{}{Faltmarke}%
+
+
+\begin{Declaration}
+ \PLength{lfoldmarkhpos}
+\end{Declaration}
+\BeginIndex{PLength}{lfoldmarkhpos}%
+Neben\ChangedAt{v2.97e}{\Class{scrlttr2}} den horizontalen Faltmarken gibt es
+auch noch eine vertikale Faltmarke. Deren Abstand von der linken Papierkante
+wird über die Pseudolänge \PLength{lfoldmarkhpos} bestimmt. Diese Faltmarke
+wird beispielsweise bei Briefen für einige Japanische Chou- oder You-Umschläge
+benötigt, wenn man diese für A4-Papier verwenden will. Auch für Umschläge im
+C6-Format kann sie nützlich sein.
+\EndIndex{PLength}{lfoldmarkhpos}%
+
+
+\begin{Declaration}
+ \PLength{lfoldmarklength}
+\end{Declaration}
+\BeginIndex{PLength}{lfoldmarklength}%
+Die\ChangedAt{v2.97e}{\Class{scrlttr2}} Länge der vertikalen Faltmarke wird
+über die Pseudolänge \PLength{lfoldmarklength} bestimmt. Auch hier gibt es die
+Besonderheit, dass bei einer angegebenen Länge von Null, stattdessen
+4\Unit{mm} verwendet werden.
+\EndIndex{PLength}{lfoldmarklength}%
+
+
+\begin{Declaration}
+ \PLength{foldmarkvpos}
+\end{Declaration}
+\BeginIndex{PLength}{foldmarkvpos}%
+Diese\ChangedAt{v2.97e}{\Class{scrlttr2}} Pseudolänge gibt den Abstand aller
+vertikalen Faltmarken vom oberen Papier\-rand an. Normalerweise sind das
+3{,}5\Unit{mm}. Sie können den Wert aber auch in Ihrer eigenen
+\File{lco}-Datei ändern, falls Sie einen Drucker verwenden, der einen
+breiteren unbedruckbaren oberen Rand hat. Ob die Faltmarken überhaupt gesetzt
+werden, hängt außerdem von der Option \Option{foldmarks} ab (siehe
+\autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.foldmarks}). Derzeit gibt es nur eine
+einzige vertikale Faltmarke, die als linke vertikale Faltmarke bezeichnet
+wird.
+%
+\EndIndex{PLength}{foldmarkvpos}%
+\EndIndex{}{Faltmarke}%
+
+
+\begin{Declaration}
+ \PLength{foldmarkthickness}
+\end{Declaration}
+\BeginIndex{PLength}{foldmarkthickness}%
+Diese\ChangedAt{v2.97c}{\Class{scrlttr2}} Pseudolänge gibt die Dicke aller
+Faltmarken an. Voreingestellt sind 0,2\Unit{pt}, also eine sehr dünne
+Haarlinie. Insbesondere, wenn die Farbe der Faltmarken geändert wird, kann
+dies zu wenig sein!
+\EndIndex{PLength}{foldmarkthickness}%
+
+
+\begin{Declaration}
+ \FontElement{foldmark}
+\end{Declaration}
+\BeginIndex{FontElement}{foldmark}%
+Über\ChangedAt{v2.97c}{\Class{scrlttr2}} dieses Element kann die Farbe der
+Faltmarken geändert werden. Dazu werden die Anweisungen zur Änderung der
+Schriftart eines Elements verwendet, wie sie in \autoref{sec:scrlttr2.font},
+\autopageref{sec:scrlttr2.font}, angegeben sind. Voreingestellt ist keine
+Änderung.
+\EndIndex{FontElement}{foldmark}%
+
+
\subsection{Briefkopf}
\label{sec:scrlttr2.firstHead}
\BeginIndex{}{Briefkopf}%
@@ -2215,22 +2528,45 @@ Selbstverständlich muss dann im Vorspann des Briefdokuments (siehe
\EndIndex{Variable}{fromurl}%
\EndIndex{Variable}{fromlogo}%
+
\begin{Declaration}
+ \PLength{fromrulethickness}\\
\PLength{fromrulewidth}
\end{Declaration}
+\BeginIndex{PLength}{fromrulethickness}%
\BeginIndex{PLength}{fromrulewidth}%
Wie bereits bei Option \Option{fromrule}\IndexOption{fromrule} in
-\autoref{sec:scrlttr2.headoptions}, \autopageref{desc:scrlttr2.option.fromrule}
-erwähnt wurde, kann in den vordefinierten Briefköpfen eine Linie im oder unter
-dem Absender gesetzt werden. Hat die Pseudolänge \PLength{fromrulewidth} die
-Länge 0, so wird dabei die Länge dieser Linie automatisch bestimmt. Dies ist
-die Voreinstellung bei den vordefinierten \File{lco}-Dateien. Der Wert kann
-mit \Macro{\@setplength} (siehe \autoref{sec:scrlttr2.pseudoLength},
+\autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.fromrule} erwähnt wurde, kann in den
+vordefinierten Briefköpfen eine Linie im oder unter dem Absender gesetzt
+werden. Hat die Pseudolänge \PLength{fromrulewidth} die Länge 0, so wird dabei
+die Länge dieser Linie automatisch bestimmt. Dies ist die Voreinstellung bei
+den vordefinierten \File{lco}-Dateien. Der Wert kann mit \Macro{\@setplength}
+(siehe \autoref{sec:scrlttr2.pseudoLength},
\autopageref{desc:scrlttr2.macro.@setplength}) in eigenen \File{lco}-Dateien
-aber auch abweichend gesetzt werden.
+aber auch abweichend gesetzt werden. Die voreingestellte
+Dicke\ChangedAt{v2.97c}{\Class{scrlttr2}}, \PLength{fromrulethickness}, der
+Linie beträgt 0,4\Unit{pt}.
%
+\EndIndex{PLength}{fromrulethickness}%
\EndIndex{PLength}{fromrulewidth}
+
+\begin{Declaration}
+ \FontElement{fromrule}
+\end{Declaration}
+\BeginIndex{FontElement}{fromrule}%
+Die\ChangedAt{v2.97c}{\Class{scrlttr2}} Farbe der Linie im Absender, die über
+die Option \Option{fromrule}\IndexOption{fromrule} (siehe
+\autoref{sec:scrlttr2.headoptions},
+\autopageref{desc:scrlttr2.option.fromrule}) aktiviert werden kann, kann
+ebenfalls verändert werden. Dazu wendet man die Anweisungen aus
+\autoref{sec:scrlttr2.font}, \autopageref{sec:scrlttr2.font}, auf das
+Element \FontElement{fromrule} an. Es wird empfohlen hier ausschließlich die
+Farbe zu ändern.
+\EndIndex{FontElement}{fromrule}%
+
+
\begin{Declaration}
\Variable{phoneseparator}\\
\Variable{faxseparator}\\
@@ -2310,18 +2646,17 @@ sondern direkt von \Macro{opening}\IndexCmd{opening} ausgegeben.
\end{Declaration}
\BeginIndex{PLength}{firstfootvpos}%
Diese Pseudolänge gibt den Abstand des Fußes der ersten Briefseite von der
-Oberkante des Papiers an. Es wird außerdem dafür gesorgt,
-dass der Textbereich nicht in den Fuß hineinragt. Hierzu wird auf der ersten
-Seite gegebenenfalls die Höhe des Textbereiches mit Hilfe von
-\Macro{enlargethispage} verkleinert. Mit Hilfe der Option
-\Option{enlargefirstpage} kann dafür gesorgt werden, dass die Höhe des
-Textbereiches umgekehrt gegebenenfalls auch vergrößert wird. Damit kann dann
-der Abstand zwischen Textbereich und Fuß der ersten Seite auf den Wert der
-Länge \Length{footskip} verringert werden. Siehe hierzu auch
-\autoref{sec:scrlttr2.typeareaOptions},
-\autopageref{desc:scrlttr2.option.enlargefirstpage}.
-
-Bei einer Kompatibilitätseinstellung\ChangedAt{2.9t}{\Class{scrlttr2}} bis
+Oberkante des Papiers an. Es wird außerdem dafür gesorgt, dass der Textbereich
+nicht in den Fuß hineinragt. Hierzu wird auf der ersten Seite gegebenenfalls
+die Höhe des Textbereiches mit Hilfe von \Macro{enlargethispage}
+verkleinert. Mit Hilfe der Option \Option{enlargefirstpage} kann dafür gesorgt
+werden, dass die Höhe des Textbereiches umgekehrt gegebenenfalls auch
+vergrößert wird. Damit kann dann der Abstand zwischen Textbereich und Fuß der
+ersten Seite auf den Wert der Länge \Length{footskip}\IndexLength{footskip}
+verringert werden. Siehe hierzu auch \autoref{sec:scrlttr2.typeareaOptions},
+\autopageref{desc:scrlttr2.option.enlargefirstpage}.
+
+Bei einer Kompatibilitätseinstellung\ChangedAt{v2.9t}{\Class{scrlttr2}} bis
Version 2.9t (siehe \Option{version} in
\autoref{sec:scrlttr2.compatibilityOptions},
\autopageref{desc:scrlttr2.option.version}) wird außer bei \Option{KOMAold} in
@@ -2331,6 +2666,14 @@ Damit hat dann auch \Option{enlargefirstpage} keine Wirkung. Ab Version 2.9u
bekommt der Fuß eine Position am unteren Ende des Papiers. Damit ist dann die
Höhe des Satzspiegels des Briefbogens eventuell auch von der Option
\Option{enlargefirstpage} abhängig.
+
+Sollte der Briefbogenfuß mittels Option
+\Option{firstfoot}\IndexOption{firstfoot}\ChangedAt{v2.97e}{\Class{scrlttr2}}
+(siehe \autoref{sec:scrlttr2.footoptions},
+\autopageref{desc:scrlttr2.option.firstfoot}) abgeschaltet sein, so wird die
+Einstellung von \PLength{firstfootvpos} ignorriert und stattdessen
+\Length{paperheight}\IndexLength{paperheight} angenommen. Es bleibt damit dann
+ein minimaler unterer Rand von \Length{footskip}\IndexLength{footskip}.
%
\EndIndex{PLength}{firstfootvpos}%
@@ -2524,6 +2867,7 @@ dieser Wert jedoch 0\Unit{pt}.
\Variable{backaddressseparator}\\
\PLength{backaddrheight}
\end{Declaration}
+\BeginIndex{FontElement}{backaddress}%
\BeginIndex{Variable}{backaddress}%
\BeginIndex{Variable}{backaddressseparator}%
\BeginIndex{PLength}{backaddrheight}%
@@ -2537,16 +2881,22 @@ doppelte Backslash durch den Inhalt der Variablen
\Variable{backaddressseparator} ersetzt. Vordefiniert ist hierbei ein Komma,
gefolgt von einem nicht umbrechbaren Leerzeichen.
-Die Höhe, die innerhalb des
-Anschriftfensters für die Rücksendeadresse zur Verfügung steht, ist in der
-Pseudolänge \PLength{backaddrheight} abgelegt. Der Wert wird in den
-vordefinierten \File{lco}-Dateien typischerweise auf 5\Unit{mm} eingestellt.
-Ob die Rücksendeadresse überhaupt gesetzt wird, bestimmt der Anwender mit den
-Optionen \Option{addrfield} (siehe \autoref{sec:scrlttr2.headoptions},
+Die Höhe, die innerhalb des Anschriftfensters für die Rücksendeadresse zur
+Verfügung steht, ist in der Pseudolänge \PLength{backaddrheight} abgelegt. Der
+Wert wird in den vordefinierten \File{lco}-Dateien typischerweise auf
+5\Unit{mm} eingestellt. Ob die Rücksendeadresse überhaupt gesetzt wird,
+bestimmt der Anwender mit den Optionen \Option{addrfield} (siehe
+\autoref{sec:scrlttr2.headoptions},
\autopageref{desc:scrlttr2.option.addrfield}) und \Option{backaddress} (siehe
\autoref{sec:scrlttr2.headoptions},
-\autopageref{desc:scrlttr2.option.backaddress}).
+\autopageref{desc:scrlttr2.option.backaddress}). Die Schriftart der
+Rücksendeadresse kann über das Element\ChangedAt{v2.95}{\Class{scrlttr2}}
+\FontElement{backaddress} geändert werden (siehe \autoref{sec:scrlttr2.font},
+\autopageref{sec:scrlttr2.font}). Für das Element ist \Macro{sffamily}
+voreingestellt (siehe \autoref{tab:scrlttr2.AddresseeElements}), wobei zuvor
+noch auf \Macro{scriptsize} umgeschaltet wird.
%
+\EndIndex{FontElement}{backaddress}%
\EndIndex{PLength}{backaddrheight}%
\EndIndex{Variable}{backaddress}%
\EndIndex{Variable}{backaddressseparator}%
@@ -2560,22 +2910,43 @@ Optionen \Option{addrfield} (siehe \autoref{sec:scrlttr2.headoptions},
\BeginIndex{Variable}{specialmail}%
\BeginIndex{PLength}{specialmailindent}%
\BeginIndex{PLength}{specialmailrightindent}%
-Zwischen Rücksendeadresse und Empfängeradresse kann noch eine
-optionale Versandart\Index{Versandart} gesetzt werden. Diese wird
-genau dann gesetzt, wenn die Variable \Variable{specialmail} einen
-Inhalt hat. Die Ausrichtung wird mit Hilfe der Pseudolängen
-\PLength{specialmailindent} und \PLength{specialmailrightindent}
-festgelegt. Diese geben den linken und rechten Einzug der Zeile an. In
-den vordefinierten \File{lco}-Dateien ist \PLength{specialmailindent}
-auf den dehnbaren Wert \Macro{fill} gesetzt, während
-\PLength{specialmailrightindent} auf 1\Unit{em} eingestellt ist. Damit
+Zwischen Rücksendeadresse und Empfängeradresse kann noch eine optionale
+Versandart\Index{Versandart} gesetzt werden. Diese wird genau dann gesetzt,
+wenn die Variable \Variable{specialmail} einen Inhalt hat. Die Ausrichtung
+wird mit Hilfe der Pseudolängen \PLength{specialmailindent} und
+\PLength{specialmailrightindent} festgelegt. Diese geben den linken und
+rechten Einzug der Zeile an. In den vordefinierten \File{lco}-Dateien ist
+\PLength{specialmailindent} auf den dehnbaren Wert \Macro{fill} gesetzt,
+während \PLength{specialmailrightindent} auf 1\Unit{em} eingestellt ist. Damit
wird die Versandart 1\Unit{em} vom rechten Rand des Anschriftfensters
-gesetzt.
+gesetzt. Die voreingestellte Schriftart des
+Elements\ChangedAt{v2.97c}{\Class{scrlttr2}}
+\FontElement{specialmail}\IndexFontElement{specialmail}, die Sie
+\autoref{tab:scrlttr2.AddresseeElements} entnehmen können, kann mit Hilfe der
+Anweisungen aus \autoref{sec:scrlttr2.font}, ab
+\autopageref{sec:scrlttr2.font}, verändert werden.
%
\EndIndex{PLength}{specialmailindent}%
\EndIndex{PLength}{specialmailrightindent}%
\EndIndex{Variable}{specialmail}%
+\begin{table}
+ \centering
+ \begin{tabular}{ll}
+ \toprule
+ Element & Voreinstellung \\
+ \midrule
+ \FontElement{addressee}\IndexFontElement{addressee} & \\
+ \FontElement{backaddress}\IndexFontElement{backaddress} & \Macro{sffamily}
+ \\
+ \FontElement{specialmail}\IndexFontElement{specialmail} & \\
+ \FontElement{toaddress}\IndexFontElement{toaddress} & \\
+ \FontElement{toname}\IndexFontElement{toname} & \\
+ \bottomrule
+ \end{tabular}
+ \caption{Schriftvoreinstellungen für die Elemente des Anschriftfensters}
+ \label{tab:scrlttr2.AddresseeElements}
+\end{table}
\begin{Declaration}
\Variable{toname}\\
@@ -2588,14 +2959,27 @@ beinhalten, werden normalerweise nicht direkt vom Anwender gesetzt. Vielmehr
gewinnt sie \Class{scrlttr2} direkt aus dem \PName{Empfänger}-Argument der
\Environment{letter}-Umgebung\IndexEnv{letter}. Beachten Sie auch hier den
wichtigen Hinweis zur Absenderadresse aus \autoref{sec:scrlttr2.firstHead},
-\autopageref{desc:scrlttr2.variable.fromname}.
+\autopageref{desc:scrlttr2.variable.fromname}. Die voreingestellte
+Schriftarten können\ChangedAt{v2.97c}{\Class{scrlttr2}} über die Anweisungen
+aus \autoref{sec:scrlttr2.font}, ab \autopageref{sec:scrlttr2.font}, verändert
+werden. Dabei existieren drei Elemente. Zunächst gibt es das Element
+\FontElement{addressee}\IndexFontElement{addressee}, das generell für die
+Anschrift zuständig ist. Dazu gibt es die Elemente
+\FontElement{toname}\IndexFontElement{toname} und
+\FontElement{toaddress}\IndexFontElement{toaddress}, die sich nur auf den
+Namen bzw. die Adresse des Empfängers beziehen. Für \FontElement{toname} und
+\FontElement{toaddress} können also Abweichungen von der Einstellung für
+\FontElement{addressee} definiert werden.
%
\EndIndex{Variable}{toname}%
\EndIndex{Variable}{toaddress}%
\begin{Declaration}
- \Environment{letter}\OParameter{Optionen}\Parameter{Anschrift}
+ \XMacro{begin}\PParameter{\Environment{letter}}%
+ \OParameter{Optionen}\Parameter{Anschrift}\\
+ \quad\dots\\
+ \XMacro{end}\PParameter{letter}
\end{Declaration}
\BeginIndex{Env}{letter}%
Die Briefumgebung, \Environment{letter}, ist nur einer der zentralen Dreh- und
@@ -2668,6 +3052,7 @@ zeigt dies.
\subsection{Absenderergänzungen}
\label{sec:scrlttr2.locationField}
+\BeginIndex{}{Absenderergaenzung=Absenderergänzung}%
Insbesondere bei Geschäftsbriefen reicht der Platz im Briefkopf und im
Seitenfuß oftmals nicht aus, um alle Angaben des Absenders
@@ -2677,21 +3062,38 @@ neben der Anschrift genutzt. In dieser Anleitung wird dieses Feld
\begin{Declaration}
+ \PLength{locheight}\\
+ \PLength{lochpos}\\
+ \PLength{locvpos}\\
\PLength{locwidth}
\end{Declaration}
\BeginIndex{PLength}{locwidth}%
-Diese Pseudolänge \PLength{locwidth} gibt die Breite der Absenderergänzung an.
-Ihr Wert wird in den vordefinierten \File{lco}-Dateien typischerweise auf
-0\Unit{pt} gesetzt. Dieser Wert nimmt eine Sonderstellung ein. Er bedeutet
-nicht, dass die Absenderergänzung die Breite Null besitzen soll. Vielmehr wird
-bei diesem Wert die tatsächliche Breite erst bei
-\Macro{opening}\IndexCmd{opening} an Hand der Breite des Papiers, der Breite
-des Anschriftfensters und dem Abstand des Anschriftfensters vom linken Rand
-gesetzt. Dabei findet auch die Option \Option{locfield} (siehe
+\BeginIndex{PLength}{locheight}%
+\BeginIndex{PLength}{lochpos}%
+\BeginIndex{PLength}{locvpos}%
+Die Pseudolängen \PLength{locwidth} und
+\PLength{locheight}\ChangedAt{v2.97d}{\Class{scrlttr2}} geben die Breite und
+Höhe der Absenderergänzung an. Die Pseudolängen \PLength{lochpos} und
+\PLength{locvpos} geben die Abstände von der rechten und der oberen
+Papierkante an. Diese Werte werden in den vordefinierten \File{lco}-Dateien
+typischerweise auf 0\Unit{pt} gesetzt. Dieser Wert nimmt eine Sonderstellung
+ein. Er bedeutet, dass die Werte erst bei \Macro{opening}\IndexCmd{opening} an
+Hand der Breite des Papiers, der Breite des Anschriftfensters und dem Abstand
+des Anschriftfensters von der linken und oberen Papierkante gesetzt
+werden. Dabei findet auch die Option \Option{locfield} (siehe
\autoref{sec:scrlttr2.headoptions},
-\autopageref{desc:scrlttr2.option.locfield}) Berücksichtigung.
+\autopageref{desc:scrlttr2.option.locfield}) Berücksichtigung. Wie auch bei
+\PLength{toaddrhpos} nehmen negative Werte für \PLength{lochpos} eine
+Sonderstellung ein. Es wird dann statt des Abstandes vom rechten Papierrand
+der Betrag von \PLength{lochpos} als Abstand vom linken Papierrand
+verwendet. Die Bedeutung ist also genau umgekehrt zu der bei
+\PLength{toaddrhpos} (siehe \autoref{sec:scrlttr2.addressee},
+\autopageref{desc:scrlttr2.plength.toaddrhpos}).
%
\EndIndex{PLength}{locwidth}
+\EndIndex{PLength}{locheight}%
+\EndIndex{PLength}{lochpos}%
+\EndIndex{PLength}{locvpos}%
\begin{Declaration}
@@ -2702,7 +3104,7 @@ Der Inhalt der Absenderergänzung wird mit der Variablen \Variable{location}
festgelegt. Für den Inhalt dieser Variablen dürfen auch Formatieranweisungen
wie \Macro{raggedright} verwendet werden. Es ist zu beachten, dass je nach
Einstellung der Optionen \Option{fromalign} und \Option{fromlogo} ein Teil der
-Absenderergänzung bereits durch das Logo belegt wird (siehe
+Absenderergänzung bereits durch das Logo oder den Absender belegt wird (siehe
\autoref{sec:scrlttr2.headoptions},
\autopageref{desc:scrlttr2.option.fromalign} und
\autopageref{desc:scrlttr2.option.fromlogo}).
@@ -2731,6 +3133,8 @@ Absenderergänzung bereits durch das Logo belegt wird (siehe
%
\EndIndex{Variable}{location}%
+\EndIndex{}{Absenderergaenzung=Absenderergänzung}%
+
\subsection{Geschäftszeile}
\label{sec:scrlttr2.refLine}%
@@ -3006,50 +3410,6 @@ Sie finden hier Variablen und Einstellungen, die keinem anderen
Bereich der Briefeinleitung zugeordnet werden konnten, die jedoch in
diesen Abschnitt gehören.
-\begin{Declaration}
- \PLength{tfoldmarkvpos}\\
- \PLength{bfoldmarkvpos}
-\end{Declaration}
-\BeginIndex{PLength}{tfoldmarkvpos}%
-\BeginIndex{PLength}{bfoldmarkvpos}%
-Die Briefklasse \Class{scrlttr2} kennt insgesamt drei
-Faltmarken\Index{Faltmarken}\Index{Falzmarken}. Die mittlere Faltmarke
-dient der Halbierung der Seite und wird deshalb immer in der Mitte der
-Seitenhöhe ausgegeben. Die Position der oberen Faltmarke vom oberen
-Papierrand wird von der Pseudolänge \PLength{tfoldmarkvpos} bestimmt,
-die der unteren Faltmarke von der Pseudolänge \PLength{bfoldmarkvpos}.
-Diese beiden Faltmarken dienen nicht der exakten Drittelung des
-Papiers beim Falten. Stattdessen soll das Papier mit ihrer Hilfe so
-geknickt werden können, dass das Feld für die Anschrift in einem
-Fensterbriefumschlag zu sehen ist. Die Einstellungen sind daher in den
-vordefinierten \File{lco}-Dateien unterschiedlich gewählt. Eine
-Besonderheit stellt \Option{DINmtext} dar. Hier wird zwingend von
-einem Briefumschlag im Format C6/5 (auch "`C6 lang"' genannt)
-ausgegangen. Briefe, die mit dieser Option erstellt wurden, sind weder
-für Umschläge im Format C5 noch für Umschläge im Format C4 geeignet.
-%
-\EndIndex{PLength}{tfoldmarkvpos}%
-\EndIndex{PLength}{bfoldmarkvpos}%
-
-
-\begin{Declaration}
- \PLength{foldmarkhpos}
-\end{Declaration}
-\BeginIndex{PLength}{foldmarkhpos}%
-Diese Pseudolänge gibt den Abstand aller drei
-Faltmarken\Index{Faltmarken}\Index{Falzmarken} vom linken Papier\-rand an.
-Normalerweise sind das 3{,}5\Unit{mm}. Sie können den Wert aber auch in Ihrer
-eigenen \File{lco}-Datei ändern, falls Sie einen Drucker verwenden, der einen
-breiteren unbedruckbaren linken Rand hat. Die obere und die untere Faltmarke
-sind übrigens 2\Unit{mm} lang, während die mittlere Faltmarke 4\Unit{mm} lang
-ist. Die Dicke aller drei Faltmarken ist mit 2\Unit{pt} gleich groß. Derzeit
-ist es nicht vorgesehen, die Länge oder Dicke der Faltmarken zu ändern. Ob die
-Faltmarken überhaupt gesetzt werden, hängt außerdem von der Option
-\Option{foldmarks} ab (siehe \autoref{sec:scrlttr2.headoptions},
-\autopageref{desc:scrlttr2.option.foldmarks}).
-%
-\EndIndex{PLength}{foldmarkhpos}%
-
\begin{Declaration}
\Variable{frombank}
@@ -3132,17 +3492,15 @@ verschiedenen Auf"|listungen nach dem Gruß.
\Macro{opening}\Parameter{Anrede}
\end{Declaration}
\BeginIndex{Cmd}{opening}%
-Dies ist eine der wichtigsten Anweisungen in \Class{scrlttr2}.
-Vordergründig wird damit die \PName{Anrede}\Index{Anrede} des Briefes,
-beispielsweise "`Sehr geehrte Frau \dots"', gesetzt. Tatsächlich
-setzt diese Anweisung aber auch die
-Faltmarken\Index{Faltmarken}\Index{Falzmarken}, den
-Briefkopf\Index{Briefkopf}, die Anschrift\Index{Anschrift}, die
-Absenderergänzung, die Geschäftszeile\Index{Geschäftszeile}, den
-Titel\Index{Titel}, den Betreff\Index{Betreff} und den
-Seitenfuß\Index{Kopf}\Index{Fuß}, also die Mehrzahl der Felder, die
-mit Optionen und Variablen eingestellt werden. Kurz gesagt: ohne
-Anrede kein Brief.
+Dies ist eine der wichtigsten Anweisungen in \Class{scrlttr2}. Vordergründig
+wird damit die \PName{Anrede}\Index{Anrede} des Briefes, beispielsweise "`Sehr
+geehrte Frau \dots"', gesetzt. Tatsächlich setzt diese Anweisung aber auch die
+Faltmarken\Index{Faltmarke}, den Briefkopf\Index{Briefkopf}, die
+Anschrift\Index{Anschrift}, die Absenderergänzung, die
+Geschäftszeile\Index{Geschäftszeile}, den Titel\Index{Titel}, den
+Betreff\Index{Betreff} und den Seitenfuß\Index{Kopf}\Index{Fuß}, also die
+Mehrzahl der Felder, die mit Optionen und Variablen eingestellt werden. Kurz
+gesagt: ohne Anrede kein Brief.
%
\EndIndex{Cmd}{opening}%
@@ -3549,7 +3907,7 @@ entnommen werden.
\Macro{datespanish} & 1.\,12.\,1993\\
\Macro{datedutch} & 1.\,12.\,1993\\
\Macro{datecroatian} & 1.\,12.\,1993.\\
- \Macro{datefinnish } & 1.\,12.\,1993.\\
+ \Macro{datefinnish } & 1.12.1993.\\
\bottomrule
\end{tabular}
\label{tab:date}
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/german/scrpage2.tex b/Master/texmf-dist/source/latex/koma-script/doc/german/scrpage2.tex
index a5c43a171c1..268147fda33 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/german/scrpage2.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/german/scrpage2.tex
@@ -45,7 +45,7 @@
%
% ============================================================================
-\ProvidesFile{scrpage2.tex}[2005/08/10 KOMA-Script guide (chapter:scrpage2)]
+\ProvidesFile{scrpage2.tex}[2007/12/07 KOMA-Script guide (chapter:scrpage2)]
\chapter{Kopf- und Fußzeilen mit \Package{scrpage2}}
\labelbase{scrpage}
@@ -448,7 +448,7 @@ Das Makro \Macro{automark} hingegen aktiviert die automatische Aktualisierung.
Für die beiden Parameter sind die Bezeichnungen der
Gliederungsebenen\Index{Gliederungsebenen} einzusetzen, deren Titel an
entsprechender Stelle erscheinen soll. Gültige Werte für die Parameter sind:
-\PValue{part}\ChangedAt{2.2}{\Package{scrpage2}}, \PValue{chapter},
+\PValue{part}\ChangedAt{v2.2}{\Package{scrpage2}}, \PValue{chapter},
\PValue{section}, \PValue{subsection}, \PValue{subsubsection},
\PValue{paragraph} und \PValue{subparagraph}. Der Wert \PValue{part} führt bei
Verwendung der meisten Klassen nicht zu dem gewünschten Ergebnis. Bisher ist
@@ -673,7 +673,7 @@ Breite des Kopfes bzw. des Fußes an.
Möchte man diesen Automatismus für die Länge einer Linie wieder restaurieren,
dann nutzt man im Längenargument den Wert \PValue{auto}.
-Mit\ChangedAt{2.2}{\Package{scrpage2}}
+Mit\ChangedAt{v2.2}{\Package{scrpage2}}
dem optionalen Argument \PName{Anweisungen} können zusätzliche Anweisungen
definiert werden, die vor dem Zeichnen der jeweiligen Linie auszuführen sind.
Das können beispielsweise Anweisungen sein, um die
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/guide.tex b/Master/texmf-dist/source/latex/koma-script/doc/guide.tex
index 8e280a2c180..5bb5c6815da 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/guide.tex
+++ b/Master/texmf-dist/source/latex/koma-script/doc/guide.tex
@@ -45,7 +45,7 @@
%
% ======================================================================
-\ProvidesFile{guide.tex}[2005/05/12 KOMA-Script guide main file]
+\ProvidesFile{guide.tex}[2007/12/13 KOMA-Script guide main file]
\documentclass[\languagename]{scrguide}
@@ -81,6 +81,8 @@
\include{adrconvnote}
\include{scrlfile}
+\include{japanlco}% appendix at the english manual only
+
\printchangelog
\bibliography{\jobname}
\printindex
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/plength.dtx b/Master/texmf-dist/source/latex/koma-script/doc/plength.dtx
index dca308351ab..214be64dbaa 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/plength.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/doc/plength.dtx
@@ -255,6 +255,10 @@ begingroup
plength[22]=btex \plength{}refhpos etex;
plength[23]=btex \plength{}fromrulewidth etex;
plength[24]=btex \plength{}-toaddrhpos\strut etex;
+ plength[25]=btex \plength{}lochpos etex;
+ plength[26]=btex \plength{}-lochpos etex;
+ plength[27]=btex \plength{}locvpos etex;
+ plength[28]=btex \plength{}locheight etex;
endgroup
enddef;
@@ -884,11 +888,17 @@ begingroup
% \begin{macrocode}
if toaddrhpos > 0 :
hmeasure((0,toaddrvpos), toaddrhpos, plength[17], (6pt,0pt), top);
- hmeasure((lochpos+locwidth,toaddrvpos), toaddrhpos, plength[17], (-6pt,0pt),
- top);
else :
hmeasure((0,toaddrvpos), -toaddrhpos, plength[24], (6pt,0pt), top);
- hmeasure((paperwidth+toaddrhpos,toaddrvpos), -toaddrhpos, plength[24],
+ fi
+% \end{macrocode}
+% \texttt{lochpos}:
+% \begin{macrocode}
+ if toaddrhpos > 0 :
+ hmeasure((lochpos+locwidth,toaddrvpos), toaddrhpos, plength[25], (-6pt,0pt),
+ top);
+ else :
+ hmeasure((paperwidth+toaddrhpos,toaddrvpos), -toaddrhpos, plength[26],
(-6pt,0pt), top);
fi
% \end{macrocode}
@@ -928,8 +938,11 @@ begingroup
% \begin{macrocode}
vmeasure((istoaddrhpos-tickhoehe,toaddrvpos), toaddrheight,
plength[21] rotated 90, origin, lft);
+% \end{macrocode}
+% \texttt{locheight}:
+% \begin{macrocode}
vmeasure((lochpos+locwidth,toaddrvpos), toaddrheight,
- plength[21] rotated 90, origin, rt);
+ plength[28] rotated 90, origin, rt);
% \end{macrocode}
% \texttt{backaddrheight}:
% \begin{macrocode}
@@ -958,7 +971,15 @@ begingroup
if toaddrhpos > 0 :
dmeasure((istoaddrhpos+toaddrwidth,toaddrvpos), plength[19], origin, top);
else :
- dmeasure((lochpos+locwidth,toaddrvpos), plength[19], origin, top);
+ dmeasure((istoaddrhpos-2*tickhoehe,toaddrvpos), plength[19], origin, top);
+ fi
+% \end{macrocode}
+% \texttt{locvpos}:
+% \begin{macrocode}
+ if toaddrhpos > 0 :
+ dmeasure((lochpos-2*tickhoehe,toaddrvpos), plength[27], origin, top);
+ else :
+ dmeasure((lochpos+locwidth,toaddrvpos), plength[27], origin, top);
fi
% \end{macrocode}
% \texttt{refvpos}:
diff --git a/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls b/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls
index e52be756be5..fca716d4663 100644
--- a/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls
+++ b/Master/texmf-dist/source/latex/koma-script/doc/scrguide.cls
@@ -38,7 +38,7 @@
% \section{Identification}
%
% \begin{macrocode}
-\ProvidesClass{scrguide}[2007/10/12 v0.9f internal KOMA-Script guide class]
+\ProvidesClass{scrguide}[2007/12/15 v1.0 internal KOMA-Script guide class]
% \end{macrocode}
%
%
@@ -548,6 +548,14 @@
% \end{macrocode}
%
%
+% \section{Footnotes}
+%
+% \begin{macro}{\thempfootnote}
+% \begin{macrocode}
+\renewcommand*{\thempfootnote}{\textit{\@arabic{\c@mpfootnote}}}
+% \end{macrocode}
+% \end{macro}
+%
% \section{Math}
%
% I will not use real math. But there will be some »pseudo math code«. So I
@@ -943,6 +951,9 @@
\newcommand*{\feentry}[1]{%
\entry{\FontElement{##1}\IndexFontElement[indexmain]{##1}}%
}%
+ \newcommand*{\oentry}[1]{%
+ \entry{\Option{##1}\IndexOption[indexmain]{##1}}%
+ }%
}
% \end{macro}
%
@@ -1060,6 +1071,15 @@ KOMAScript \endcsname
\renewcommand*\@dotsep{2.5}
% \end{macrocode}
%
+% \section{Appendix}
+%
+% \begin{macro}{\appendix}
+% Use only first if used more than once. With this, every appendix file may
+% start with |\appendix|.
+% \begin{macrocode}
+\g@addto@macro\appendix{\global\let\appendix\relax}
+% \end{macrocode}
+% \end{macro}
%
% \section{Bibliography}
%
diff --git a/Master/texmf-dist/source/latex/koma-script/japanlco.dtx b/Master/texmf-dist/source/latex/koma-script/japanlco.dtx
new file mode 100644
index 00000000000..1efa0e57797
--- /dev/null
+++ b/Master/texmf-dist/source/latex/koma-script/japanlco.dtx
@@ -0,0 +1,344 @@
+% \CheckSum{75}
+% \iffalse meta-comment
+% ======================================================================
+% japanlco.dtx
+% Copyright (c) Markus Kohm, 2007
+%
+% This file is part of the LaTeX2e KOMA-Script bundle.
+%
+% This work may be distributed and/or modified under the conditions of
+% the LaTeX Project Public License, version 1.3b of the license.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3b or later is part of all distributions of LaTeX
+% version 2005/12/01 or later and of this work.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The Current Maintainer and author of this work is Markus Kohm.
+%
+% This work consists of all files listed in manifest.txt.
+% ----------------------------------------------------------------------
+% japanlco.dtx
+% Copyright (c) Markus Kohm, 2007
+%
+% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
+% Version 1.3b, verteilt und/oder veraendert werden.
+% Die neuste Version dieser Lizenz ist
+% http://www.latex-project.org/lppl.txt
+% und Version 1.3b ist Teil aller Verteilungen von LaTeX
+% Version 2005/12/01 oder spaeter und dieses Werks.
+%
+% Dieses Werk hat den LPPL-Verwaltungs-Status "author-maintained"
+% (allein durch den Autor verwaltet).
+%
+% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
+%
+% Dieses Werk besteht aus den in manifest.txt aufgefuehrten Dateien.
+% ======================================================================
+% \fi
+%
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+% \iffalse
+%%% From File: japanlco.dtx
+%<*driver>
+% \fi
+\ProvidesFile{japanlco.dtx}[2007/11/23 v2.98 KOMA-Script (letter class options)]
+% \iffalse
+\documentclass{scrdoc}
+\usepackage[english]{babel}
+\usepackage[latin1]{inputenc}
+\usepackage{graphicx}
+\CodelineIndex
+\RecordChanges
+\GetFileInfo{japanlco.dtx}
+\title{\KOMAScript{} \partname\ \texttt{\filename}%
+ \footnote{This is \fileversion\ of file \texttt{\filename}.}}
+\date{\filedate}
+\author{Markus Kohm}
+
+\begin{document}
+ \maketitle
+ \tableofcontents
+ \DocInput{\filename}
+\end{document}
+%</driver>
+% \fi
+%
+% \changes{v2.98}{2007/11/13}{first version based on lco files from Gernot
+% Hassenplfug}
+%
+% \section{Option Files for Japanese Letters}
+%
+% Gernot Hassenpflug wrote a lot of lco files for use of Japanese envelope
+% formats. Markus Kohm, the author of \KOMAScript, addapted them to an
+% extended version of \textsf{scrlttr2} and wrote a dtx file with the moste
+% recent lco files. Table~\ref{tab:japan.envelopes} shows all lco files of the
+% supported envelopes with their datas.
+%
+% \begin{table}
+%^^A x=22, w=90, y=12, h=45 NipponEL
+%^^A x=22, w=90, y=12, h=55 NipponEH
+%^^A x=25, w=90, y=12, h=45 NipponLL
+%^^A x=25, w=90, y=12, h=55 NipponLH
+%^^A x=98, w=90, y=28, h=45 NipponRL
+%^^A x=25, w=90, y=24, h=45 KakuLL
+% \begin{tabular}{@{}llllllll@{}}
+% \hline
+% lco file & \multicolumn3{l}{Envelope} & \multicolumn4{l@{}}{Window} \\
+% & Name & Length & Width & H-pos & V-pos & Width & Height\\
+% \cline{1-3}\cline{4-8}
+% \texttt{NipponEL} &
+% Chou/You 3 & 235\,mm & 120\,mm & 22\,mm & 12\,mm & 90\,mm & 45\,mm \\
+% \texttt{NipponEH} &
+% Chou/You 3 & 235\,mm & 120\,mm & 22\,mm & 12\,mm & 90\,mm & 55\,mm \\
+% \texttt{NipponLL} &
+% Chou/You 3 & 235\,mm & 120\,mm & 25\,mm & 12\,mm & 90\,mm & 45\,mm \\
+% \texttt{NipponLH} &
+% Chou/You 3 & 235\,mm & 120\,mm & 25\,mm & 12\,mm & 90\,mm & 55\,mm \\
+% \texttt{NipponEL} &
+% Chou/You 4 & 205\,mm & 90\,mm & 22\,mm & 12\,mm & 90\,mm & 45\,mm \\
+% \texttt{NipponEH} &
+% Chou/You 4 & 205\,mm & 90\,mm & 22\,mm & 12\,mm & 90\,mm & 55\,mm \\
+% \texttt{NipponLL} &
+% Chou/You 4 & 205\,mm & 90\,mm & 25\,mm & 12\,mm & 90\,mm & 45\,mm \\
+% \texttt{NipponLH} &
+% Chou/You 4 & 205\,mm & 90\,mm & 25\,mm & 12\,mm & 90\,mm & 55\,mm \\
+% \texttt{NipponRL} &
+% Chou/You 4 & 205\,mm & 90\,mm & 98\,mm & 28\,mm & 90\,mm & 45\,mm \\
+% \texttt{KakuLL} &
+% Kaku-kata & 312\,mm & 228\,mm & 25\,mm & 24\,mm & 90\,mm & 45\,mm \\
+% \hline
+% \end{tabular}
+% \caption{The supported Japanese envelopes}
+% \label{tab:japan.envelopes}
+% \end{table}
+%
+%\iftrue
+% \newcommand\japanenvelope[7]{%
+% \begingroup
+% \setlength{\unitlength}{1mm}^^A
+% \rotatebox{90}{\begin{picture}(#1,#2)
+% \thinlines
+% \put(0,0){^^A
+% \framebox(#1,#2){}^^A
+% }^^A
+% \put(5,5){\texttt{#7}: #1\,mm$\times$#2\,mm (B$\times$H)}^^A
+% \csname @tempcnta\endcsname #2
+% \advance\csname @tempcnta\endcsname -#4
+% \put(0,\csname @tempcnta\endcsname){\vector(1,0){#3}}^^A
+% \put(#3,\csname @tempcnta\endcsname){\vector(-1,0){#3}}^^A
+% \put(0,\csname @tempcnta\endcsname){^^A
+% \makebox(#3,\baselineskip\csname @gobble\endcsname){#3\,mm}}^^A
+% \put(#3,#2){\vector(0,-1){#4}}^^A
+% \put(#3,\csname @tempcnta\endcsname){\vector(0,1){#4}}^^A
+% \put(#3,\csname @tempcnta\endcsname){^^A
+% \makebox(0,#4)[l]{~#4\,mm}}
+% \advance\csname @tempcnta\endcsname -#6
+% \put(#3,\csname @tempcnta\endcsname){^^A
+% \framebox(#5,#6){}^^A
+% }^^A
+% \put(#3,\csname @tempcnta\endcsname){^^A
+% \makebox(0,5)[l]{~#5\,mm$\times$#6\,mm (B$\times$H)}^^A
+% }^^A
+% \end{picture}}
+% \endgroup
+% }
+%
+% \expandafter\ifx\csname rotatebox\endcsname\relax\else
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{235}{120}{22}{12}{90}{45}{Chou 3 EL}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{235}{120}{22}{12}{90}{55}{Chou 3 EH}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{235}{120}{25}{12}{90}{45}{Chou 3 LL}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{235}{120}{25}{12}{90}{55}{Chou 3 LH}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{205}{90}{22}{12}{90}{45}{Chou 4 EL}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{205}{90}{22}{12}{90}{55}{Chou 4 EH}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{205}{90}{25}{12}{90}{45}{Chou 4 LL}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{205}{90}{25}{12}{90}{55}{Chou 4 LH}}%
+% \clearpage
+% \vspace*{\fill}\smash{\japanenvelope{205}{90}{98}{28}{90}{45}{Chou 4 RL}}%
+% \clearpage
+% \fi
+%\fi
+%
+% \StopEventually{\PrintIndex\PrintChanges}
+%
+% \iffalse
+%<*lco>
+% \fi
+%
+% \subsubsection{The File Header}
+%
+% \iffalse
+%<*head>
+% \fi
+%
+% Declaration of the file.
+% \begin{macrocode}
+\ProvidesFile{%
+%<Ni> Nippon%
+%<Kaku> Kaku%
+%<EARLY> E%
+%<LATE> L%
+%<RIGHT> R%
+%<LOW> L%
+%<HIGH> H%
+}[\KOMAScriptVersion\space Japanese letter-class-option]
+% \end{macrocode}
+%
+% \begin{macro}{\LCOWarningNoLine}
+% \begin{macro}{\LCOWarning}
+% We need macros that are similar to |\ClassWarningNoLine| or
+% |\PackageWarningNoLine| and |\ClassWarning| or |\PackageWarning|
+\providecommand*\LCOWarningNoLine[2]{%
+ \LCOWarning{#1}{#2\@gobble}%
+}
+\providecommand*\LCOWarning[2]{%
+ \GenericWarning{%
+ (#1)\@spaces\@spaces\@spaces\@spaces\@spaces\@spaces\@spaces
+ }{%
+ Letter class option #1 Warning: #2%
+ }%
+}
+% \end{macro}
+% \end{macro}
+%
+% \iffalse
+%</head>
+%<*body>
+% \fi
+%
+% \subsubsection{Main-Part}
+%
+% Check the class.
+% \begin{macrocode}
+\@ifundefined{scr@fromname@var}{%
+ \LCOWarningNoLine{%
+%<Ni> Nippon%
+%<Kaku> Kaku%
+%<EARLY> E%
+%<LATE> L%
+%<RIGHT> R%
+%<LOW> L%
+%<HIGH> H%
+ }{%
+ This letter class option file was made only\MessageBreak
+ to be used with KOMA-Script letter class\MessageBreak
+ `scrlttr2'. Use with other classes may result\MessageBreak
+ in a lot of errors%
+ }%
+}{}
+% \end{macrocode}
+%
+% Is the expected paper size used?
+% \begin{macrocode}
+\LetterOptionNeedsPapersize{%
+%<Ni> Nippon%
+%<Kaku> Kaku%
+%<EARLY> E%
+%<LATE> L%
+%<RIGHT> R%
+%<LOW> L%
+%<HIGH> H%
+}{a4}
+% \end{macrocode}
+%
+% All the values
+%^^A x=22, w=90, y=12, h=45 NipponEL
+%^^A x=22, w=90, y=12, h=55 NipponEH
+%^^A x=25, w=90, y=12, h=45 NipponLL
+%^^A x=25, w=90, y=12, h=55 NipponLH
+%^^A x=98, w=90, y=28, h=45 NipponRL
+%^^A x=25, w=90, y=24, h=45 KakuLL
+% \begin{macrocode}
+\@setplength{foldmarkhpos}{3.5mm}
+\@setplength{tfoldmarkvpos}{83mm}
+\@setplength{tfoldmarklength}{4mm}
+\@setplength{mfoldmarkvpos}{116mm}
+\@setplength{mfoldmarklength}{2mm}
+\@setplength{bfoldmarkvpos}{232mm}
+\@setplength{bfoldmarklength}{2mm}
+\@setplength{foldmarkvpos}{3.5mm}
+\@setplength{lfoldmarkhpos}{202mm}
+%<!Ni|!RIGHT>\@setplength{refvpos}{69mm}
+%<Ni&RIGHT>\@setplength{refvpos}{84mm}
+\@setplength{refaftervskip}{\baselineskip}
+%<EARLY>\@setplength{toaddrhpos}{22mm}
+%<LATE>\@setplength{toaddrhpos}{25mm}
+%<RIGHT>\@setplength{toaddrhpos}{-22mm}
+\@setplength{toaddrwidth}{90mm}
+%<Ni&!RIGHT>\@setplength{toaddrvpos}{12mm}
+%<Ni&RIGHT>\@setplength{toaddrvpos}{28mm}
+%<Kaku>\@setplength{toaddrvpos}{24mm}
+%<LOW>\@setplength{toaddrheight}{40mm}
+%<HIGH>\@setplength{toaddrheight}{50mm}
+\@setplength{toaddrindent}{\z@}
+\@setplength{backaddrheight}{5mm}
+\@setplength{specialmailindent}{\fill}
+\@setplength{specialmailrightindent}{1em}
+\@setplength{locwidth}{\z@}
+%<Ni>\@setplength{locheight}{55mm}%
+%<Kaku>\@setplength{locheight}{45mm}%
+\@setplength{firstheadvpos}{8mm}
+\@setplength{firstheadwidth}{\paperwidth}
+\ifdim \useplength{toaddrhpos}>\z@
+ \@addtoplength[-2]{firstheadwidth}{\useplength{toaddrhpos}}
+\else
+ \@addtoplength[2]{firstheadwidth}{\useplength{toaddrhpos}}
+\fi
+\@setplength{firstfootwidth}{\useplength{firstheadwidth}}
+\@setplength{firstfootvpos}{\paperheight}
+\@addtoplength{firstfootvpos}{-16mm}
+\@setplength{refwidth}{\z@}
+\@setplength{sigindent}{\z@}
+\@setplength{sigbeforevskip}{2\baselineskip}
+\let\raggedsignature=\centering
+% \end{macrocode}
+%
+% Additional settings:
+% \begin{macrocode}
+\ifcase\@alignfrom
+ \KOMAoptions{fromalign=locationright}%
+\or
+ \KOMAoptions{fromalign=locationright}%
+\or
+ \KOMAoptions{fromalign=locationright}%
+\fi
+% \end{macrocode}
+%
+% \iffalse
+%</body>
+%</lco>
+% \fi
+%
+% \Finale
+%
+\endinput
+%
+% end of file `japanlco.dtx'
+%%% Local Variables:
+%%% mode: doctex
+%%% TeX-master: t
+%%% End:
diff --git a/Master/texmf-dist/source/latex/koma-script/scrbeta.dtx b/Master/texmf-dist/source/latex/koma-script/scrbeta.dtx
index ceecb19a8d8..09e28ddca53 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrbeta.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrbeta.dtx
@@ -149,5 +149,5 @@
%%% Local Variables:
%%% mode: doctex
-%%% Text-master: t
+%%% TeX-master: t
%%% End:
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkbase.dtx b/Master/texmf-dist/source/latex/koma-script/scrkbase.dtx
index f1d31d44d17..87583206fd1 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkbase.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkbase.dtx
@@ -927,6 +927,8 @@
% \changes{v2.97c}{2007/04/19}{Neues Makro (intern)}
% \begin{macro}{\KOMA@key@split@name@value}
% \changes{v2.97c}{2007/04/19}{Neues Makro (intern)}
+% \changes{v2.97e}{2007/11/10}{verwendet \cs{KV@@sp@def} zur Entsorgung von
+% Leerzeichen}
% \begin{macrocode}
\newif\ifKOMA@key@found@
\newcommand*{\KOMA@key@atlist}{}
@@ -934,8 +936,8 @@
\newcommand*{\KOMA@key@value}{}
\newcommand*{\KOMA@key@split@name@value}{}
\def\KOMA@key@split@name@value#1=#2=#3\@nil{%
- \def\KOMA@key@name{#1}%
- \def\KOMA@key@value{#2}%
+ \KV@@sp@def\KOMA@key@name{#1}%
+ \KV@@sp@def\KOMA@key@value{#2}%
}
\newcommand*{\post@kopt@hook}{}
\let\post@kopt@hook\relax
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkcomp.dtx b/Master/texmf-dist/source/latex/koma-script/scrkcomp.dtx
index aa78c7b68c9..eca345c3b13 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkcomp.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkcomp.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{57}
+% \CheckSum{59}
% \iffalse meta-comment
% ======================================================================
% scrkcomp.dtx
@@ -176,6 +176,10 @@
% \begin{macro}{\scr@v@2.97d}
% \changes{v2.97d}{2007/10/03}{Neues Macro}
% \changes{v2.97d}{2007/10/09}{Wert geändert}
+% \begin{macro}{\scr@v@2.97e}
+% \changes{v2.97e}{2007/11/27}{Neues Macro}
+% \begin{macro}{\scr@v@2.98}
+% \changes{v2.98}{2007/12/24}{Neues Macro}
% \begin{macro}{\scr@v@last}
% \changes{v2.9u}{2005/03/05}{Neues Macro}
% Nun die unterschiedlichen möglichen Werte (|\scr@v@last| ist jeweils die
@@ -195,9 +199,13 @@
\@namedef{scr@v@2.97b}{3}
\@namedef{scr@v@2.97c}{4}
\@namedef{scr@v@2.97d}{5}
-\@namedef{scr@v@last}{5}
+\@namedef{scr@v@2.97e}{6}
+\@namedef{scr@v@2.98}{6}
+\@namedef{scr@v@last}{6}
% \end{macrocode}
% \end{macro}
+% \end{macro}
+% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkfloa.dtx b/Master/texmf-dist/source/latex/koma-script/scrkfloa.dtx
index c58c1674c62..a4c1ec8e5cc 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkfloa.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkfloa.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{1064}
+% \CheckSum{1082}
% \iffalse meta-comment
% ======================================================================
% scrkfloa.dtx
@@ -58,7 +58,7 @@
%%% From File: scrkfloa.dtx
%<*driver>
% \fi
-\ProvidesFile{scrkfloa.dtx}[2007/09/17 v2.97c KOMA-Script (floats)]
+\ProvidesFile{scrkfloa.dtx}[2007/11/23 v2.97e KOMA-Script (floats)]
% \iffalse
\documentclass[halfparskip-]{scrdoc}
\usepackage[english,ngerman]{babel}
@@ -1195,6 +1195,7 @@
% Zunächst werden \texttt{figure}s, also Abbildungen behandelt.
% \begin{Counter}{figure}
% \begin{macro}{\thefigure}
+% \changes{v2.97e}{2007/11/23}{Kapitelnummer nur im Hauptteil}
% \begin{macro}{\figureformat}
% \changes{v2.3c}{1995/08/06}{neu}
% Dafür wird ein neuer Zähler benötigt, der bei der Buch- und der
@@ -1204,7 +1205,13 @@
%<book|report>\newcounter{figure}[chapter]
%<article>\newcounter{figure}
\renewcommand*\thefigure{%
+%<*book>
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter.\fi
+ \else
+%</book>
%<book|report> \thechapter.%
+%<book> \fi
\@arabic\c@figure
}
\newcommand*{\figureformat}{%
@@ -1270,13 +1277,20 @@
% gleiche wie bei den Abbildungen.
% \begin{Counter}{table}
% \begin{macro}{\thetable}
+% \changes{v2.97e}{2007/11/23}{Kapitelnummer nur im Hauptteil}
% \begin{macro}{\tableformat}
% \changes{v2.3c}{1995/08/06}{neu}
% \begin{macrocode}
%<article>\newcounter{table}
%<book|report>\newcounter{table}[chapter]
\renewcommand*\thetable{%
+%<*book>
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter.\fi
+ \else
+%</book>
%<book|report> \thechapter.%
+%<book> \fi
\@arabic\c@table
}
\newcommand*{\tableformat}{%
diff --git a/Master/texmf-dist/source/latex/koma-script/scrklco.dtx b/Master/texmf-dist/source/latex/koma-script/scrklco.dtx
index 3ac4aeae269..287a3892e32 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrklco.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrklco.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{499}
+% \CheckSum{503}
% \iffalse meta-comment
% ======================================================================
% scrklco.dtx
@@ -58,7 +58,7 @@
%%% From File: scrklco.dtx
%<*driver>
% \fi
-\ProvidesFile{scrklco.dtx}[2007/09/12 v2.97c KOMA-Script (letter class options)]
+\ProvidesFile{scrklco.dtx}[2007/11/20 v2.97e KOMA-Script (letter class options)]
% \iffalse
\documentclass{scrdoc}
\usepackage[english,ngerman]{babel}
@@ -382,14 +382,17 @@
% Dann werden die Werte gesetzt.
% \changes{v2.9u}{2005/03/05}{Der Fuß hat optional eine feste Position 16\,mm
% über der unteren Papierkante.}
+% \changes{v2.97e}{2007/11/20}{Die neuen Faltmarken werden berücksichtigt.}
% \begin{macrocode}
\@setplength{foldmarkhpos}{3.5mm}
%<DIN|SwissLeft|SN>\@setplength{tfoldmarkvpos}{105mm}
%<DINmoretext>\@setplength{tfoldmarkvpos}{87mm}
%<KOMAold>\@setplength{tfoldmarkvpos}{103.5mm}
+\@setplength{mfoldmarkvpos}{\z@}
%<DIN|SwissLeft|SN>\@setplength{bfoldmarkvpos}{210mm}
%<DINmoretext>\@setplength{bfoldmarkvpos}{192mm}
%<KOMAold>\@setplength{bfoldmarkvpos}{202.5mm}
+\@setplength{lfoldmarkhpos}{\z@}
%<DIN|SN>\@setplength{toaddrvpos}{45mm}
%<DINmoretext>\@setplength{toaddrvpos}{27mm}
%<SwissLeft>\@setplength{toaddrvpos}{35.5mm}
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkmisc.dtx b/Master/texmf-dist/source/latex/koma-script/scrkmisc.dtx
index 14b1e3e983c..4444e061ad5 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkmisc.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkmisc.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{174}
+% \CheckSum{183}
% \iffalse meta-comment
% ======================================================================
% scrkmisc.dtx
@@ -58,7 +58,7 @@
%%% From File: scrkmisc.dtx
%<*driver>
% \fi
-\ProvidesFile{scrkmisc.dtx}[2007/10/03 v2.97d KOMA-Script (misc)]
+\ProvidesFile{scrkmisc.dtx}[2007/11/23 v2.97e KOMA-Script (misc)]
% \iffalse
\documentclass[halfparskip-]{scrdoc}
\usepackage[english,ngerman]{babel}
@@ -350,16 +350,23 @@
%<*!letter>
% \fi
%
-% \begin{macro}{\theequation}
+% \begin{macro}{\theequation}
+% \changes{v2.97e}{2007/11/23}{Kapitelnummer nur im Hauptteil}
% Darstellung der Gleichungsnummer:
% \begin{macrocode}
%<book|report>\@addtoreset{equation}{chapter}
\renewcommand*\theequation{%
+%<*book>
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter.\fi
+ \else
+%</book>
%<book|report> \thechapter.%
+%<book> \fi
\@arabic\c@equation
}
% \end{macrocode}
-% \end{macro}
+% \end{macro}
%
% \iffalse
%</!letter>
diff --git a/Master/texmf-dist/source/latex/koma-script/scrknpap.dtx b/Master/texmf-dist/source/latex/koma-script/scrknpap.dtx
index 78efce82dba..f2b0f0764ff 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrknpap.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrknpap.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{1853}
+% \CheckSum{2341}
% \iffalse meta-comment
% ======================================================================
% scrknpap.dtx
@@ -58,7 +58,7 @@
%%% From File: scrknpap.dtx
%<*driver>
% \fi
-\ProvidesFile{scrknpap.dtx}[2007/10/12 v2.97d KOMA-Script (note-paper)]
+\ProvidesFile{scrknpap.dtx}[2007/11/22 v2.97e KOMA-Script (note-paper)]
% \iffalse
\documentclass{scrdoc}
\usepackage[english,ngerman]{babel}
@@ -116,12 +116,27 @@
% veröffentlicht. Die Funktionalität ist nun direkt verfügbar. Dazu
% werden verschiedene Optionen benötigt.
%
+% \begin{option}{firsthead}
+% \changes{v2.97e}{2007/11/22}{Neu}
+% Der Briefkopf kann auch einfach abgeschaltet werden.
+% \begin{macro}{\if@firsthead}
+% \changes{v2.8q}{2002/01/25}{Neuer Schalter (intern)}
+% Gespeichert wird die Information in einem einfachen Schalter.
+% Voreingestellt ist die Verwendung des Briefkopfes.
+% \begin{macrocode}
+\KOMA@ifkey{firsthead}{@firsthead}\@firstheadtrue
+% \end{macrocode}
+% \end{macro}
+% \end{option}
+%
% \begin{option}{fromalign}
% \changes{v2.8q}{2002/01/25}{Neu}
% Diese Option legt fest, ob der Absender linksbündig, mittig oder
% rechtsbündig gesetzt werden soll.
% \begin{macro}{\@alignfrom}
% \changes{v2.8q}{2002/01/25}{Neu}
+% \changes{v2.97e}{2007/11/13}{neue Werte für Verwendung der
+% Absenderergänzung}
% Die Einstellung wird in einem nummerisch auszuwertenden Makro
% gespeichert. Dabei gelten folgende Werte:
% \begin{center}
@@ -130,17 +145,24 @@
% 0 & linksbündig \\
% 1 & zentriert \\
% 2 & rechtsbündig \\
+% 3 & linksbündig in der Absenderergänzung ohne Kopf \\
+% 4 & rechtbündig in der Absenderergänzung ohne Kopf \\
% 10000 & nicht antasten \\
% \end{tabular}
% \end{center}
% Voreingestellt ist "`nicht antasten"'.
% \begin{macrocode}
\newcommand*{\@alignfrom}{0}
-\KOMA@ncmdkey{fromalign}{@alignfrom}{%
- {left}{0},%
- {center}{1},{centered}{1},{middle}{1},%
- {right}{2},%
- {no}{10000},{false}{10000},{off}{10000}%
+\KOMA@key{fromalign}{%
+ \KOMA@set@ncmdkey{fromalign}{@alignfrom}{%
+ {left}{0},%
+ {center}{1},{centered}{1},{middle}{1},%
+ {right}{2},%
+ {locationleft}{3},{leftlocation}{3},%
+ {locationright}{4},{rightlocation}{4},{location}{4},%
+ {no}{10000},{false}{10000},{off}{10000}%
+ }{#1}%
+ \ifcase\@alignfrom\or\or\or\@firstheadfalse\or\@firstheadfalse\fi
}
% \end{macrocode}
% \end{macro}
@@ -392,8 +414,94 @@
% Schalter gespeichert.
% \begin{macrocode}
\newif\if@fold\@foldtrue
-\KOMA@ifkey{foldmarks}{@fold}
% \end{macrocode}
+% \begin{macro}{\@usefolds}
+% Welche Faltmarken gesetzt werden sollen, wird in einem Makro gespeichert.
+% \changes{v2.97e}{2007/11/08}{Neu}
+% \begin{macrocode}
+\newcommand*{\@usefolds}{TMBPL}
+\KOMA@key{foldmarks}[true]{%
+ \begingroup
+ \def\KOMA@unknown@keyval##1##2##3{%
+ \def\sc@nf@ldch@rs####1{%
+ \ifx ####1\@nil\else
+ \if ####1T\g@addto@macro\@usefolds{####1}\else
+ \if ####1M\g@addto@macro\@usefolds{####1}\else
+ \if ####1B\g@addto@macro\@usefolds{####1}\else
+ \if ####1P\g@addto@macro\@usefolds{####1}\else
+ \if ####1L\g@addto@macro\@usefolds{####1}\else
+ \if ####1V\g@addto@macro\@usefolds{L}\else
+ \if ####1H\g@addto@macro\@usefolds{TMBP}\else
+ \if ####1t\scr@removechar\@usefolds{T}\else
+ \if ####1m\scr@removechar\@usefolds{M}\else
+ \if ####1b\scr@removechar\@usefolds{B}\else
+ \if ####1p\scr@removechar\@usefolds{P}\else
+ \if ####1l\scr@removechar\@usefolds{L}\else
+ \if ####1v%
+ \scr@removechar\@usefolds{L}%
+ \else
+ \if ####1h%
+ \scr@removechar\@usefolds{T}%
+ \scr@removechar\@usefolds{M}%
+ \scr@removechar\@usefolds{B}%
+ \else
+ \ClassError{\KOMAClassName}{%
+ unknown fold mark switch `####1'}{%
+ You should use option `foldmarks'
+ either with one of\MessageBreak
+ \@spaces `true', `on', or `yes' to
+ switch fold marks on,\MessageBreak
+ \@spaces `false', `off', or `no' to
+ switch fold marks off,\MessageBreak
+ or a combination of\MessageBreak
+ \@spaces `T', `M', `B', 'P', 'L', `V',
+ `H' to select dedicated fold
+ marks\MessageBreak
+ or\MessageBreak
+ \@spaces `t', `m', 'b', 'p', 'l', 'v',
+ 'h' to deselect dedicated fold
+ marks.\MessageBreak
+ See the KOMA-Script manual for more
+ information.
+ }%
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \expandafter\sc@nf@ldch@rs
+ \fi
+ }%
+ \expandafter\sc@nf@ldch@rs#1\@nil
+ }%
+ \KOMA@set@ifkey\@empty{@fold}{#1}%
+ \if@fold\aftergroup\@foldtrue\else\aftergroup\@foldfalse\fi
+ \endgroup
+}
+% \end{macrocode}
+% \begin{macro}{\scr@removechar}
+% \changes{v2.97e}{2007/11/08}{Neu (intern)}
+% \begin{macrocode}
+\newcommand*{\scr@removechar}[2]{%
+ \def\in@@##1#2##2##3\in@@{%
+ \ifx\in@##2\else
+ \def\in@@####1#2\in@{\gdef#1{##1####1}}%
+ \in@@##2##3%
+ \fi}%
+ \expandafter\in@@#1#2\in@\in@@
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
% \end{macro}
% \end{macro}
% \end{macro}
@@ -533,6 +641,22 @@
% \end{option}
%
%
+% \subsubsection{Optionen für den Briefbogenfuß}
+%
+% \begin{option}{firstfoot}
+% \changes{v2.97e}{2007/11/22}{Neu}
+% Der Fuß des Briefbogens kann auch einfach abgeschaltet werden.
+% \begin{macro}{\if@firstfoot}
+% \changes{v2.8q}{2002/01/25}{Neuer Schalter (intern)}
+% Gespeichert wird die Information in einem einfachen Schalter.
+% Voreingestellt ist die Verwendung des Fußes.
+% \begin{macrocode}
+\KOMA@ifkey{firstfoot}{@firstfoot}\@firstfoottrue
+% \end{macrocode}
+% \end{macro}
+% \end{option}
+%
+%
% \subsection{Optionen für den Kopf des weiteren Briefpapiers}
%
% Diese Optionen haben zwar nichts mit dem eigentlichen Briefbogen zu tun. Das
@@ -960,22 +1084,65 @@
%
% \begin{macro}{\ltr@len@foldmarkhpos}
% \changes{v2.8q}{2001/10/06}{Neu}
-% Abstand der Faltmarken von der linken Papierkante.
+% Abstand der horizontalen Faltmarken von der linken Papierkante.
% \begin{macrocode}
\@newplength{foldmarkhpos}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\ltr@len@foldmarkvpos}
+% \changes{v2.97e}{2007/11/10}{Neu}
+% Abstand der vertikalen Faltmarken von der oberen Papierkante.
+% \begin{macrocode}
+\@newplength{foldmarkvpos}
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\ltr@len@tfoldmarkvpos}
% \changes{v2.8q}{2001/10/06}{Neu}
+% \begin{macro}{\ltr@len@mfoldmarkvpos}
+% \changes{v2.97e}{2007/11/08}{Neu}
% \begin{macro}{\ltr@len@bfoldmarkvpos}
% \changes{v2.8q}{2001/10/06}{Neu}
-% Abstand der oberen und unteren Faltmarken von der oberen Papierkante.
+% Abstand der oberen, mittleren und unteren Faltmarken von der oberen
+% Papierkante.
% \begin{macrocode}
\@newplength{tfoldmarkvpos}
+\@newplength{mfoldmarkvpos}
\@newplength{bfoldmarkvpos}
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \end{macro}
+% \begin{macro}{\ltr@len@lfoldmarkhpos}
+% \changes{v2.97e}{2007/11/10}{Neu}
+% Abstand linken Faltmarken von der linken Papierkante.
+% \begin{macrocode}
+\@newplength{lfoldmarkhpos}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\ltr@len@pfoldmarklength}
+% \changes{v2.97e}{2007/11/19}{Neu}
+% \begin{macro}{\ltr@len@hfoldmarklength}
+% \changes{v2.97e}{2007/11/10}{Neu}
+% \begin{macro}{\ltr@len@mfoldmarklength}
+% \changes{v2.97e}{2007/11/10}{Neu}
+% \begin{macro}{\ltr@len@bfoldmarklength}
+% \changes{v2.97e}{2001/11/10}{Neu}
+% \begin{macro}{\ltr@len@lfoldmarklength}
+% \changes{v2.97e}{2001/11/10}{Neu}
+% Länge der Lochmarke und der oberen, mittleren und unteren horizontalen und
+% der (linken) vertikalen Faltmarke.
+% \begin{macrocode}
+\@newplength{pfoldmarklength}
+\@newplength{tfoldmarklength}
+\@newplength{mfoldmarklength}
+\@newplength{bfoldmarklength}
+\@newplength{lfoldmarklength}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
% \begin{macro}{\ltr@len@foldmarkthickness}
% \changes{2.97c}{2007/05/08}{Neu}
% Dicke der Faltmarken.
@@ -1041,6 +1208,13 @@
\@newplength{toaddrheight}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\ltr@len@locvpos}
+% \changes{v2.97e}{2007/11/07}{Neu}
+% Abstand der Absenderergänzung von der oberen Papierkante.
+% \begin{macrocode}
+\@newplength{locvpos}
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\ltr@len@locwidth}
% \changes{v2.8q}{2001/10/06}{Neu}
% Breite des Feldes neben dem Adressfenster
@@ -1048,6 +1222,21 @@
\@newplength{locwidth}
% \end{macrocode}
% \end{macro}
+% \begin{macro}{\ltr@len@lochpos}
+% \changes{v2.97e}{2007/11/07}{Neu}
+% Abstand der Absenderergänzung von der linken Papierkante bzw. wenn negativ
+% von der rechten Papierkante.
+% \begin{macrocode}
+\@newplength{lochpos}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\ltr@len@locheight}
+% \changes{v2.97e}{2007/11/07}{Neu}
+% Höhe der Absenderergänzung.
+% \begin{macrocode}
+\@newplength{locheight}
+% \end{macrocode}
+% \end{macro}
% \begin{macro}{\ltr@len@refvpos}
% \changes{v2.8q}{2001/10/06}{Neu}
% Abstand der Geschäftszeile von der Papieroberkante.
@@ -1217,9 +1406,10 @@
% \begin{macro}{\vb@t@z}
% \changes{v2.8n}{2001/09/07}{Neu}
% \changes{v2.95}{2006/03/23}{Absatzformatierung mit \cs{setparsizes}}
+% \changes{v2.97e}{2007/11/20}{\cs{long}}
% Ausserdem wird ein vertikales Äquivalent zu |\rlap| benötigt.
% \begin{macrocode}
-\newcommand*{\vb@t@z}[1]{{%
+\newcommand{\vb@t@z}[1]{{%
\setbox0\vbox to\z@{#1\vss}%
\setparsizes{\z@}{\z@}{\z@ plus 1fil}\par@updaterelative
\setlength{\baselineskip}{\z@}%
@@ -1231,8 +1421,13 @@
% \end{macro}
%
% \begin{macro}{\@foldmarks}
+% \changes{v2.97e}{2007/11/08}{\texttt{mfoldmarkvpos} wird verwendet}
% Für die Faltmarken müssen nicht nur Abstände definiert werden, es wird auch
% ein Befehl benötigt, um die Faltmarken zu setzen.
+% \begin{macro}{\@hfoldmark}
+% \changes{v2.97e}{2007/11/08}{Neu (intern)}
+% Dabei werden nur die horizontalen Faltmarken gesetzt, die tatsächlich
+% existieren.
% \begin{macro}{\@foldmark}
% \changes{v2.8n}{2001/09/07}{Neu}
% \changes{v2.95}{2006/06/06}{\cs{vskip} in \cs{vb@t@z} verschoben, damit es
@@ -1252,15 +1447,91 @@
\rlap{\move@topl\hskip\useplength{foldmarkhpos}%
\usekomafont{foldmark}{%
\rule{#2}{\useplength{foldmarkthickness}}}}}%
- \ignorespaces%
+ \ignorespaces
+}
+\newcommand*{\@hfoldmark}[1]{%
+ \begingroup
+ \@expandtwoargs\in@{#1}{\@usefolds}%
+ \ifin@
+ \lowercase{%
+ \edef\@tempa{%
+ \noexpand\ifdim \noexpand\useplength{#1foldmarkvpos}=\noexpand\z@
+ \noexpand\else
+ \noexpand\@foldmark{%
+ \noexpand\useplength{#1foldmarkvpos}%
+ }{%
+ \noexpand\useplength{#1foldmarklength}%
+ }%
+ \noexpand\fi
+ }%
+ }%
+ \@tempa
+ \fi
+ \endgroup
+}
+% \end{macrocode}
+% \begin{macro}{\@vfoldmark}
+% \changes{v2.97e}{2007/11/10}{Neu (intern)}
+% Für die vertikale(n) Faltmarke(n) gilt prinzipiell das gleiche. Dabei ist
+% lediglich zu beachten, dass die Linie hier komplett oberhalb der Grundlinie
+% gesetzt wird, also die vertikale Position um die Länge nach unten zu
+% verschieben ist.
+% \begin{macrocode}
+\newcommand*{\@vfoldmark}[1]{%
+ \begingroup
+ \@expandtwoargs\in@{#1}{\@usefolds}%
+ \ifin@
+ \ifdim \useplength{lfoldmarkhpos}=\z@\else
+ \vb@t@z{%
+ \ifdim \useplength{foldmarkvpos}<\z@
+ \nobreak\vskip \paperheight\nobreak
+ \fi
+ \vskip \useplength{foldmarkvpos}%
+ \vskip \useplength{foldmarkthickness}%
+ \rlap{\move@topl
+ \setlength{\@tempdima}{\useplength{lfoldmarkhpos}}%
+ \addtolengthplength[-.5]{\@tempdima}{foldmarkthickness}%
+ \hskip\@tempdima
+ \usekomafont{foldmark}{%
+ \rule{\useplength{foldmarkthickness}}%
+ {\useplength{lfoldmarklength}}%
+ }%
+ }%
+ }%
+ \ignorespaces
+ \fi
+ \fi
+ \endgroup
}
\newcommand*{\@foldmarks}{%
\if@fold%
\typeout{Foldmarks: yes}%
\move@topt
- \@foldmark{\useplength{tfoldmarkvpos}}{2mm}%
- \@foldmark{.5\paperheight}{4mm}%
- \@foldmark{\useplength{bfoldmarkvpos}}{2mm}%
+ \ifdim \useplength{pfoldmarklength}=\z@
+ \@setplength{pfoldmarklength}{4mm}%
+ \fi
+ \ifdim \useplength{tfoldmarklength}=\z@
+ \@setplength{tfoldmarklength}{2mm}%
+ \fi
+ \ifdim \useplength{mfoldmarklength}=\z@
+ \@setplength{mfoldmarklength}{2mm}%
+ \fi
+ \ifdim \useplength{bfoldmarklength}=\z@
+ \@setplength{bfoldmarklength}{2mm}%
+ \fi
+ \ifdim \useplength{lfoldmarklength}=\z@
+ \@setplength{lfoldmarklength}{4mm}%
+ \fi
+ \begingroup
+ \@expandtwoargs\in@{P}{\@usefolds}%
+ \ifin@
+ \@foldmark{.5\paperheight}{\useplength{pfoldmarklength}}%
+ \fi
+ \endgroup
+ \@hfoldmark{T}%
+ \@hfoldmark{M}%
+ \@hfoldmark{B}%
+ \@vfoldmark{L}%
\move@frompt
\else
\typeout{Foldmarks: no}%
@@ -1269,6 +1540,8 @@
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \end{macro}
+% \end{macro}
%
% \begin{macro}{\@savevbox}
% \changes{v2.8n}{2001/09/07}{Neu}
@@ -1323,6 +1596,8 @@
% \changes{v2.8q}{2001/10/30}{\cs{parfillskip} lokal auf 0 gesetzt}
% \changes{v2.8q}{2001/10/30}{Fuß explizit in eine Box gesetzt}
% \changes{v2.9l}{2003/01/23}{Positionierung verbessert}
+% \changes{v2.97e}{2007/11/22}{Optionen \texttt{firsthead} und
+% \texttt{firstfoot} beachten}
% Ab Version 2.8n werden Kopf und Fuß der ersten Seite nicht mehr per
% Seitenstil \texttt{firstpage} gesetzt, sondern mit einem speziellen
% Feld. Dabei wird auch beachtet, dass dieses Feld im Kopf eine bestimmte aber
@@ -1330,52 +1605,60 @@
% und richtet sich stattdessen nach der Position des Adressfeldes.
% \begin{macrocode}
\newcommand*{\@firstheadfootfield}{%
- \typeout{Head of first page}%
- \move@topt\vskip\useplength{firstheadvpos}%
- \vb@t@z{%
- \rlap{\move@topl
- \setlength\@tempskipa{.5\paperwidth}%
- \addtolengthplength[-.5]{\@tempskipa}{firstheadwidth}%
- \hskip\@tempskipa
- \vbox{\hsize\useplength{firstheadwidth}%
- \setlength{\@tempskipa}{\useplength{toaddrvpos}}%
- \addtolengthplength[-1]{\@tempskipa}{firstheadvpos}%
- \addtolength{\@tempskipa}{-\baselineskip}%
+ \if@firsthead
+ \typeout{Head of first page}%
+ \move@topt\vskip\useplength{firstheadvpos}%
+ \vb@t@z{%
+ \rlap{\move@topl
+ \setlength\@tempskipa{.5\paperwidth}%
+ \addtolengthplength[-.5]{\@tempskipa}{firstheadwidth}%
+ \hskip\@tempskipa
+ \vbox{\hsize\useplength{firstheadwidth}%
+ \setlength{\@tempskipa}{\useplength{toaddrvpos}}%
+ \addtolengthplength[-1]{\@tempskipa}{firstheadvpos}%
+ \addtolength{\@tempskipa}{-\baselineskip}%
% \end{macrocode}
% Da sich einige -- beispielsweise |briefkopf.sty| -- darauf verlassen, dass
% |\textwidth| die Breite des Briefkopfes ist, wird diese Länge lokal
% entsprechend gesetzt. Außerdem wird dafür gesorgt, dass |\parfillskip| hier
% nicht berücksichtigt wird.
% \begin{macrocode}
- \setlength{\textwidth}{\useplength{firstheadwidth}}%
- \setlength{\parfillskip}{\z@ \@plus 1fil}%
- \@savevbox{\@tempskipa}{\@firsthead\vskip \z@ \@plus .00001fil}%
- {head of first page}{firstheadvpos}{\firsthead}%
+ \setlength{\textwidth}{\useplength{firstheadwidth}}%
+ \setlength{\parfillskip}{\z@ \@plus 1fil}%
+ \@savevbox{\@tempskipa}{\@firsthead\vskip \z@ \@plus .00001fil}%
+ {head of first page}{firstheadvpos}{\firsthead}%
+ }%
}%
}%
- }%
- \vskip-\useplength{firstheadvpos}\move@frompt
- \typeout{Foot of first page}%
+ \vskip-\useplength{firstheadvpos}\move@frompt
+ \else
+ \typeout{No head at first page}%
+ \fi
\move@topt
- \vb@t@z{%
- \rlap{\move@topl
- \setlength\@tempskipa{.5\paperwidth}%
- \addtolengthplength[-.5]{\@tempskipa}{firstfootwidth}%
- \hskip\@tempskipa%
- \vbox{\hsize\useplength{firstfootwidth}%
- \vskip\useplength{firstfootvpos}%
+ \if@firstfoot
+ \typeout{Foot of first page}%
+ \vb@t@z{%
+ \rlap{\move@topl
+ \setlength\@tempskipa{.5\paperwidth}%
+ \addtolengthplength[-.5]{\@tempskipa}{firstfootwidth}%
+ \hskip\@tempskipa%
+ \vbox{\hsize\useplength{firstfootwidth}%
+ \vskip\useplength{firstfootvpos}%
% \end{macrocode}
% Da sich einige -- beispielsweise |briefkopf.sty| -- darauf verlassen, dass
% |\textwidth| die Breite des Brieffußes ist, wird diese Länge lokal
% entsprechend gesetzt. Außerdem wird dafür gesorgt, dass |\parfillskip| hier
% nicht berücksichtigt wird.
% \begin{macrocode}
- \setlength{\textwidth}{\useplength{firstfootwidth}}%
- \setlength{\parfillskip}{\z@ \@plus 1fil}%
- \vbox{\hsize\useplength{firstfootwidth}\@firstfoot}%
+ \setlength{\textwidth}{\useplength{firstfootwidth}}%
+ \setlength{\parfillskip}{\z@ \@plus 1fil}%
+ \vbox{\hsize\useplength{firstfootwidth}\@firstfoot}%
+ }%
}%
}%
- }%
+ \else
+ \typeout{No foot at first page}%
+ \fi
\move@frompt%
{%
\setlength{\@tempdima}{1in}\addtolength{\@tempdima}{\topmargin}%
@@ -1383,7 +1666,11 @@
\addtolength{\@tempdima}{\headsep}%
\addtolength{\@tempdima}{\textheight}%
\addtolength{\@tempdima}{\footskip}%
- \addtolengthplength[-1]{\@tempdima}{firstfootvpos}%
+ \if@firstfoot
+ \addtolengthplength[-1]{\@tempdima}{firstfootvpos}%
+ \else
+ \addtolength{\@tempdima}{-\paperheight}%
+ \fi
\ifdim\@tempdima>\z@\enlargethispage{-\@tempdima}%
\else\if@enlargefp\enlargethispage{-\@tempdima}\fi\fi
}%
@@ -1506,43 +1793,220 @@
\@setplength[.5]{locwidth}{\useplength{locwidth}}%
\fi%
\fi%
- \ifnum 1=\@alignfrom
+% \end{macrocode}
+% \changes{v2.97e}{2007/11/13}{Der Absender kann nun ebenfalls in der
+% Absenderergänzung stehen}
+% Je nach Absenderanordnung muss hier nun ebenfalls etwas getan werden.
+% Der Fall 0, also linksbündiger Absender im Kopf spielt hier keine Rolle.
+% \begin{macrocode}
+ \ifcase\@alignfrom
+% \end{macrocode}
+% Im Fall 1, also zentrierter Absender im Kopf wird jedoch das Logo hier
+% platziert, also darf die Absenderergänzung nicht leer sein.
+% \begin{macrocode}
+ \or
\if@logo
- \ifkomavarempty{location}{%
- \setkomavar{location}{\null}}{}%
+ \ifkomavarempty{location}{\setkomavar{location}{\null}}{}%
\fi
+% \end{macrocode}
+% Im Fall 2, also rechtsbündiger Absender im Kopf, ist auch nichts zu tun.
+% \begin{macrocode}
+ \or
+% \end{macrocode}
+% Im Fall 3, also linksbündiger Absender in der Absenderergänzung wird hier
+% eine Menge ausgegeben, also darf die Absenderergänzung nicht leer sein.
+% \begin{macrocode}
+ \or
+ \ifkomavarempty{location}{\setkomavar{location}{\null}}{}%
+% \end{macrocode}
+% Im Fall 3, also linksbündiger Absender in der Absenderergänzung wird hier
+% eine Menge ausgegeben, also darf die Absenderergänzung nicht leer sein.
+% \begin{macrocode}
+ \or
+ \ifkomavarempty{location}{\setkomavar{location}{\null}}{}%
+% \end{macrocode}
+% Alle anderen Fälle sind wie hier ebenfalls ohne Bedeutung.
+% \begin{macrocode}
\fi
\ifkomavarempty{location}{%
\typeout{Location field: empty}%
}{%
\typeout{Location field: yes}%
- \move@topt\vskip\useplength{toaddrvpos}%
- \vb@t@z{\rlap{%
+ \ifdim \useplength{lochpos}=\z@%
+ \@setplength{lochpos}{\useplength{toaddrhpos}}%
+ \fi
+ \ifdim \useplength{locvpos}=\z@%
+ \@setplength{locvpos}{\useplength{toaddrvpos}}%
+ \fi
+ \ifdim \useplength{locheight}=\z@%
+ \@setplength{locheight}{\useplength{toaddrheight}}%
+ \@addtoplength{locheight}{\useplength{backaddrheight}}%
+ \fi
+ \move@topt\vskip\useplength{locvpos}%
+ \vb@t@z{\noindent\makebox[0pt][l]{%
\move@topl
- \setlengthtoplength[-]{\@tempskipa}{toaddrhpos}%
+ \setlengthtoplength[-]{\@tempskipa}{lochpos}%
\ifdim \@tempskipa<\z@
\addtolength{\@tempskipa}{\paperwidth}%
\else
\addtolengthplength{\@tempskipa}{locwidth}%
\fi
\hskip\@tempskipa
- \llap{%
- \@savevbox{\useplength{toaddrheight}}{%
+ \makebox[0pt][r]{%
+ \@savevbox{\useplength{locheight}}{%
\noindent\hsize\useplength{locwidth}%
- \ifnum 1=\@alignfrom
+% \end{macrocode}
+% In einigen Fällen der Absenderanordnung muss hier nun eine ganze Menge getan
+% werden. In anderen ist hingegen nur wenig zu tun.
+% Im Fall 0, also linksbündiger Absender im Kopf wird nur die
+% Absenderergänzung ausgegeben.
+% \begin{macrocode}
+ \ifcase\@alignfrom
+ \usekomavar{location}%
+% \end{macrocode}
+% Im Fall 1, also zentrierter Absender im Kopf wird jedoch das Logo hier
+% platziert, die Absenderergänzung wird hingegen ignorriert.
+% \begin{macrocode}
+ \or
\if@logo
- \ifkomavarempty{fromlogo}{}{%
+ \ifkomavarempty{fromlogo}{\null}{%
{\raggedleft\noindent\usekomavar{fromlogo}\\
\vskip\parskip}\noindent}%
\fi
+% \end{macrocode}
+% Im Fall 2, also rechtsbündiger Absender im Kopf, wird auch nur die
+% Absenderergänzung ausgegeben.
+% \begin{macrocode}
+ \or
+ \usekomavar{location}%
+% \end{macrocode}
+% Im Fall 3, also linksbündiger Absender in der Absenderergänzung wird hier
+% sozusagen der linksbündige Kopf nachgebaut. Das Logo steht dabei
+% ggf. rechtsbündig oben.
+% \begin{macrocode}
+ \or
+ \if@logo
+ \ifkomavarempty{fromlogo}{}{%
+ \raggedleft\usekomavar{fromlogo}\par}%
+ \fi
+ \raggedright
+% \end{macrocode}
+% Zuerst wird der Name gesetzt. Dabei soll eine eigene Schriftart für
+% den Namen verwendet werden.
+% \begin{macrocode}
+ {\usekomafont{fromname}\strut\ignorespaces
+ \usekomavar{fromname}%
+% \end{macrocode}
+% Hat \verb|\@rulefrom| den nummerischen Wert 1, so soll direkt auf den
+% Absender eine Linie folgen. Die Länge dieser Linie kann vom Anwender
+% bestimmt oder automatisch gewählt werden. Es werden dabei die
+% Pseudo-Längen \texttt{fromrulewidth} und \texttt{fromrulethickness}
+% verwendet. Ist \texttt{fromrulewidth} 0, so wird sie automatisch
+% bestimmt. Bei der automatischen Längenbestimmung wird einfach eine Linie
+% über de Gesamtbreite der Absenderergänzung gesetzt.
+% \begin{macrocode}
+ {%
+ \ifnum\@rulefrom=1\\[-.5\baselineskip]%
+ \usekomafont{fromrule}{%
+ \setlength{\@tempdima}{\useplength{fromrulewidth}}%
+ \ifdim\@tempdima=\z@
+ \setlength{\@tempdima}{\useplength{locwidth}}%
+ \fi
+ \expandafter\rule\expandafter{\the\@tempdima}{%
+ \useplength{fromrulethickness}}%
+ }%
+ \fi
+ }%
+ \\
+ }%
+% \end{macrocode}
+% Als Nächstes wird die Absenderadresse einschließlich aller
+% optionalen Felder gesetzt. Dabei werden optionale Felder nur
+% gesetzt, wenn der entsprechende Schalter \emph{true} ist. Die
+% Adresse wird ebenfalls innerhalb einer Gruppe in einer eigenen
+% Schriftart gesetzt.
+% \begin{macrocode}
+ {\usekomafont{fromaddress}\strut\ignorespaces
+ \usekomavar{fromaddress}%
+ \if@phone\\\usekomavar*{fromphone}\usekomavar{fromphone}\fi%
+ \if@fax\\\usekomavar*{fromfax}\usekomavar{fromfax}\fi%
+ \if@email\\\usekomavar*{fromemail}\usekomavar{fromemail}\fi%
+ \if@www\\\usekomavar*{fromurl}\usekomavar{fromurl}\fi%
+% \end{macrocode}
+% Wie weiter oben erwähnt, kann auch an dieser Stelle eine Linie
+% gesetzt werden.
+% \begin{macrocode}
+ \ifnum\@rulefrom=2\\[-.5\baselineskip]%
+ \usekomafont{fromrule}{%
+ \setlength{\@tempdima}{\useplength{fromrulewidth}}%
+ \ifdim\@tempdima=\z@
+ \setlength{\@tempdima}{\useplength{locwidth}}%
+ \fi
+ \expandafter\rule\expandafter{\the\@tempdima}{%
+ \useplength{fromrulethickness}}}%
+ \fi
+ \\
+ }%
+% \end{macrocode}
+% Damit ist die Definition des linksbündigen Absenders in der
+% Absenderergänzung abgeschlossen.
+% Im Fall 4, also rechtsbündiger Absender in der Absenderergänzung wird hier
+% exakt wie für Fall 3 verfahren. Nur ist jetzt alles rechtsbündig.
+% \begin{macrocode}
+ \or
+ \raggedleft
+ \if@logo
+ \ifkomavarempty{fromlogo}{}{\usekomavar{fromlogo}\par}%
+ \fi
+ {\usekomafont{fromname}\strut\ignorespaces
+ \usekomavar{fromname}%
+ {%
+ \ifnum\@rulefrom=1\\[-.5\baselineskip]%
+ \usekomafont{fromrule}{%
+ \setlength{\@tempdima}{\useplength{fromrulewidth}}%
+ \ifdim\@tempdima=\z@
+ \setlength{\@tempdima}{\useplength{locwidth}}%
+ \fi
+ \expandafter\rule\expandafter{\the\@tempdima}{%
+ \useplength{fromrulethickness}}%
+ }%
+ \fi
+ }%
+ \\
+ }%
+ {\usekomafont{fromaddress}\strut\ignorespaces
+ \usekomavar{fromaddress}%
+ \if@phone\\\usekomavar*{fromphone}\usekomavar{fromphone}\fi%
+ \if@fax\\\usekomavar*{fromfax}\usekomavar{fromfax}\fi%
+ \if@email\\\usekomavar*{fromemail}\usekomavar{fromemail}\fi%
+ \if@www\\\usekomavar*{fromurl}\usekomavar{fromurl}\fi%
+ \ifnum\@rulefrom=2\\[-.5\baselineskip]%
+ \usekomafont{fromrule}{%
+ \setlength{\@tempdima}{\useplength{fromrulewidth}}%
+ \ifdim\@tempdima=\z@
+ \setlength{\@tempdima}{\useplength{locwidth}}%
+ \fi
+ \expandafter\rule\expandafter{\the\@tempdima}{%
+ \useplength{fromrulethickness}}}%
+ \fi
+ \\
+ }%
+% \end{macrocode}
+% In allen anderen Fällen wird ebenfalls die Absenderergänzung gesetzt.
+% \begin{macrocode}
+ \usekomavar{location}%
\fi
- \usekomavar{location}\vskip \z@ \@plus .00001fil}%
- {location field}{toaddrheight}{\setkomavar}%
- }}%
- }%
- \vskip-\useplength{toaddrvpos}\move@frompt
+% \end{macrocode}
+% Zum Schluss wird noch verhindert, dass wegen nicht vollen vertikalen Boxen
+% gemotzt wird.
+% \begin{macrocode}
+ \vskip \z@ \@plus .00001fil}%
+ {location field}{locheight}{\setkomavar}%
+ }}%
}%
- }
+ \vskip-\useplength{locvpos}\move@frompt
+ }%
+}
% \end{macrocode}
% \end{macro}
%
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx b/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx
index 55f9ddd4c3f..3b57670308b 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkpage.dtx
@@ -58,7 +58,7 @@
%%% From File: scrkpage.dtx
%<*driver>
% \fi
-\ProvidesFile{scrkpage.dtx}[2007/10/03 v2.97d KOMA-Script (page style)]
+\ProvidesFile{scrkpage.dtx}[2007/10/23 v2.97e KOMA-Script (page style)]
% \iffalse
\documentclass[halfparskip-]{scrdoc}
\usepackage[english,ngerman]{babel}
@@ -405,7 +405,7 @@
\aliaskomafont{pagination}{pagenumber}
\newcommand*{\scr@fnt@pagehead}{\headfont}
\newcommand*{\scr@fnt@wrn@pagehead}[1]{%
- `pagehead' and `pagefoot' are aliases for the same¸\MessageBreak
+ `pagehead' and `pagefoot' are aliases for the same\MessageBreak
font element, changed%
}
\aliaskomafont{pagefoot}{pagehead}
diff --git a/Master/texmf-dist/source/latex/koma-script/scrksect.dtx b/Master/texmf-dist/source/latex/koma-script/scrksect.dtx
index 9c6db67c1d3..feb0314ced6 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrksect.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrksect.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{1681}
+% \CheckSum{1690}
% \iffalse meta-comment
% ======================================================================
% scrksect.dtx
@@ -58,7 +58,7 @@
%%% From File: scrksect.dtx
%<*driver>
% \fi
-\ProvidesFile{scrksect.dtx}[2007/07/23 v2.97c KOMA-Script (disposition)]
+\ProvidesFile{scrksect.dtx}[2007/11/23 v2.97e KOMA-Script (disposition)]
% \iffalse
\documentclass[halfparskip-]{scrdoc}
\usepackage[english,ngerman]{babel}
@@ -686,6 +686,7 @@
% \cs{chapappifprefix}}
% \begin{Counter}{section}
% \begin{macro}{\thesection}
+% \changes{v2.97e}{2007/11/23}{Kapitelnummer nur im Hauptteil}
% \begin{macro}{\sectionmarkformat}
% \changes{v2.3a}{1995/07/08}{Leerraum nach der Kapitelnummer
% erhöht}
@@ -721,7 +722,16 @@
\newcommand*\chaptermarkformat{\chapappifchapterprefix{\ }%
\thechapter\autodot\enskip}
\newcounter{section}[chapter]
-\renewcommand*\thesection{\thechapter.\@arabic\c@section}
+\renewcommand*\thesection{%
+%<*book>
+ \ifnum \scr@compatibility>\@nameuse{scr@v@2.97d}\relax
+ \if@mainmatter\thechapter.\fi
+ \else
+%</book>
+ \thechapter.%
+%<book> \fi
+ \@arabic\c@section
+}
\newcommand*\sectionmarkformat{\thesection\autodot\enskip}
%</book|report>
%<*article>
diff --git a/Master/texmf-dist/source/latex/koma-script/scrktare.dtx b/Master/texmf-dist/source/latex/koma-script/scrktare.dtx
index c60b738fe8d..c10ea1eefac 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrktare.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrktare.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{1642}
+% \CheckSum{1678}
% \iffalse meta-comment
% ======================================================================
% scrktare.dtx
@@ -58,7 +58,7 @@
%%% From File: scrktare.dtx
%<*driver>
% \fi
-\ProvidesFile{scrktare.dtx}[2007/10/03 v2.97d KOMA-Script (type area)]
+\ProvidesFile{scrktare.dtx}[2007/11/26 v2.97e KOMA-Script (type area)]
% \iffalse
%</driver>
%<package&identify>\ProvidesPackage{typearea}[%
@@ -101,6 +101,7 @@
% \subsection{Präambel}
%
% \iffalse
+%<*class|package>
%<*package&identify>
% \fi
%
@@ -180,7 +181,6 @@
% Ab hier nun Teile für Klassen und Paket:
% \begin{macrocode}
%</package>
-%<*class|package>
% \end{macrocode}
%
% \begin{macro}{\@BCOR}
@@ -378,6 +378,15 @@
% \begin{macrocode}
\multiply\paperwidth by186468
\multiply\paperheight by186468
+% \end{macrocode}
+% Jetzt noch die gewünschte Ausrichtung beachten.
+% \changes{v2.97e}{2007/10/23}{gewünschte Papierausrichtung wird beachtet}
+% \begin{macrocode}
+ \if@landscape
+ \setlength{\@tempdima}{\paperwidth}%
+ \setlength{\paperwidth}{\paperheight}%
+ \setlength{\paperheight}{\@tempdima}%
+ \fi
}
% \end{macrocode}
% \end{macro}
@@ -418,6 +427,8 @@
%
% Zurück zur Mustererkennung. Diese ist tatsächlich etwas einfacher
% als die in den beiden Fällen zuvor.
+% \changes{v2.97e}{2007/10/23}{Optionen werden nach der neuen Syntax an
+% typearea weitergeleitet}
% \begin{macrocode}
\newcommand*{\x@paper}{%
\expandafter\x@@paper\CurrentOption paper\x@@paper%
@@ -427,19 +438,19 @@
\ifstr{#3}{paper}{%
\ifnumber{#2}{%
\ifstr{#1}{a}{%
-%<class> \PassOptionsToPackage{#1#2#3}{typearea}%
+%<class> \PassOptionsToPackage{#3=#1#2}{typearea}%
%<package> \isopaper[a]{#2}%
}{%
\ifstr{#1}{b}{%
-%<class> \PassOptionsToPackage{#1#2#3}{typearea}%
+%<class> \PassOptionsToPackage{#3=#1#2}{typearea}%
%<package> \isopaper[b]{#2}%
}{%
\ifstr{#1}{c}{%
-%<class> \PassOptionsToPackage{#1#2#3}{typearea}%
+%<class> \PassOptionsToPackage{#3=#1#2}{typearea}%
%<package> \isopaper[c]{#2}%
}{%
\ifstr{#1}{d}{%
-%<class> \PassOptionsToPackage{#1#2#3}{typearea}%
+%<class> \PassOptionsToPackage{#3=#1#2}{typearea}%
%<package> \isopaper[d]{#2}%
}{\scr@pti@nerr@r}%
}%
@@ -471,7 +482,6 @@
%
% Jetzt wieder nur für Pakete:
% \begin{macrocode}
-%</class|package>
%<*package>
% \end{macrocode}
%
@@ -654,18 +664,27 @@
% \subsubsection{Sonstige Satzspiegel-Optionen}
%
% \begin{option}{oneside}
+% \changes{v2.97e}{2007/11/23}{auf vielfachen Wunsch reicht die Klasse die
+% Option an das Paket weiter}
% \begin{option}{twoside}
% \changes{v2.97d}{2007/10/03}{\cs{PackageInfo} durch \cs{PackageInfoNoLine}
% ersetzt}
+% \changes{v2.97e}{2007/11/23}{auf vielfachen Wunsch reicht die Klasse die
+% Option an das Paket weiter}
% Einseitiger oder zweiseitiger Satzspiegel?
% \begin{macrocode}
+%</package>
\KOMA@key{twoside}[true]{%
+%<class> \if@atdocument\else\PassOptionsToPackage{twoside=#1}{typearea}\fi%
+%<*package>
\if@atdocument\if@twoside\cleardoublepage\else\clearpage\fi\fi
\KOMA@set@ifkey{twoside}{@twoside}{#1}%
\if@twoside\@mparswitchtrue\else\@mparswitchfalse\fi%
\csname recalctypearea\endcsname
+%</package>
}
\KOMA@DeclareObsoleteOption[\PackageInfoNoLine]{oneside}{twoside=false}
+%<*package>
% \end{macrocode}
% \end{option}
% \end{option}
@@ -675,17 +694,26 @@
% verlagert}
% \changes{v2.97d}{2007/10/03}{\cs{PackageInfo} durch \cs{PackageInfoNoLine}
% ersetzt}
+% \changes{v2.97e}{2007/11/23}{auf vielfachen Wunsch reicht die Klasse die
+% Option an das Paket weiter}
% \begin{option}{twocolumn}
% \changes{v2.95}{2002/12/04}{Option in das \textsf{typearea}-Paket
% verlagert}
+% \changes{v2.97e}{2007/11/23}{auf vielfachen Wunsch reicht die Klasse die
+% Option an das Paket weiter}
% Einspaltiger oder zweispaltiger Satz?
% \begin{macrocode}
+%</package>
\KOMA@key{twocolumn}[true]{%
+%<class> \if@atdocument\else\PassOptionsToPackage{twoside=#1}{typearea}\fi%
+%<*package>
\if@atdocument\clearpage\fi
\KOMA@set@ifkey{twocolumn}{@twocolumn}{#1}%
\csname recalctypearea\endcsname
+%</package>
}
\KOMA@DeclareObsoleteOption[\PackageInfoNoLine]{onecolumn}{twocolumn=false}
+%<*package>
% \end{macrocode}
% \end{option}
% \end{option}
@@ -931,20 +959,35 @@
\fi
}{%
\ifstr{#1}{letter}{%
- \setlength\paperheight{11in}%
- \setlength\paperwidth {8.5in}%
+ \if@landscape
+ \setlength\paperheight{8.5in}%
+ \setlength\paperwidth {11in}%
+ \else
+ \setlength\paperheight{11in}%
+ \setlength\paperwidth {8.5in}%
+ \fi
}{%
\ifstr{#1}{legal}{%
- \setlength\paperheight{14in}%
- \setlength\paperwidth {8.5in}%
+ \if@landscape
+ \setlength\paperheight{8.5in}%
+ \setlength\paperwidth {14in}%
+ \else
+ \setlength\paperheight{14in}%
+ \setlength\paperwidth {8.5in}%
+ \fi
}{%
\ifstr{#1}{executive}{%
- \setlength\paperheight{10.5in}%
- \setlength\paperwidth {7.25in}%
+ \if@landscape
+ \setlength\paperheight{7.25in}%
+ \setlength\paperwidth {10.5in}%
+ \else
+ \setlength\paperheight{10.5in}%
+ \setlength\paperwidth {7.25in}%
+ \fi
}{%
\iso@paper{#1}%
\if@tempswa\else
- \expandafter\maybe@pair#1\scr@next
+ \expandafter\maybe@pair#1::\@nil
\if@tempswa
\setlength\paperheight{\@tempa}%
\setlength\paperwidth{\@tempb}%
@@ -952,18 +995,13 @@
\KOMA@unknown@keyval{paper}{#1}{%
`letter', `legal', `executive', `a'<nr>, `b'<nr>,
`c'<nr>, `d'<nr>,\MessageBreak
- `('<width>`,'<height>`)', `landscape' and `portrait'%
+ <width>`:'<height>, `landscape' and `portrait'%
}%
\fi
\fi
}%
}%
}%
- \if@landscape
- \setlength{\@tempdima}{\paperwidth}%
- \setlength{\paperwidth}{\paperheight}%
- \setlength{\paperheight}{\@tempdima}%
- \fi
}%
}%
}
@@ -981,22 +1019,21 @@
% \end{macro}
% \begin{macro}{\maybe@pair}
% \changes{v2.95}{2002/12/03}{neu (intern)}
+% \changes{v2.97e}{2007/11/26}{funktioniert zum ersten Mal}
% Testet, ob der nachfolgende Parameter die Form
-% "`(\meta{erstes Argument},\meta{zweites Argument})"' hat.
-% \begin{macro}{\maybe@@pair}
-% \changes{v2.95}{2002/12/03}{neu (intern)}
+% "`\meta{erstes Argument}:\meta{zweites Argument}"' hat.
% Wenn ja, wird \cs{@tempa} mit dem ersten und \cs{@tempb} mit dem
% zweiten Argument definiert.
% \begin{macrocode}
-\newcommand*{\maybe@pair}{%
- \@ifnextchar (%
- {\@tempswatrue\maybe@@pair}{\@tempswafalse\gobble@till@scr@next}%
+\newcommand*{\maybe@pair}{}
+\def\maybe@pair#1:#2:#3\@nil{%
+ \edef\@tempa{#1}\edef\@tempb{#2}%
+ \ifx\@tempa\@empty\@tempswafalse\else
+ \ifx\@tempb\@empty\@tempswafalse\else\@tempswatrue\fi
+ \fi
}
-\newcommand*{\maybe@@pair}{}
-\def\@maybepair(#1,#2)\scr@next{\def\@tempa{#1}\def\@tempb{#2}}%
% \end{macrocode}
% \end{macro}
-% \end{macro}
% \end{option}
%
% \begin{macrocode}
@@ -1013,11 +1050,9 @@
% \changes{v2.97c}{2007/09/12}{\cs{lco@test} bei den geparsten Optionen
% eingefügt}
% \begin{macrocode}
-%<*class|package>
\DeclareOption*{%
%<letter> \lco@test
\x@paper}
-%</class|package>
% \end{macrocode}
%
% \iffalse
@@ -1070,7 +1105,7 @@
\else
\KOMAExecuteOptions{twoside=false}
\fi
-\KOMAProcessOptions
+\KOMAProcessOptions\relax
% \end{macrocode}
%
%
@@ -2031,6 +2066,7 @@
% \iffalse
%</package>
%</body>
+%</class|package>
% \fi
%
% \Finale
diff --git a/Master/texmf-dist/source/latex/koma-script/scrkvers.dtx b/Master/texmf-dist/source/latex/koma-script/scrkvers.dtx
index bdf48032fb1..b01076d1c92 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrkvers.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrkvers.dtx
@@ -112,7 +112,7 @@
\fi
}
\fi
- \@CheckKOMAScriptVersion{2007/10/12 v2.97d KOMA-Script}%
+ \@CheckKOMAScriptVersion{2007/12/24 v2.98 KOMA-Script}%
\endgroup
% \end{macrocode}
% \end{macro}
diff --git a/Master/texmf-dist/source/latex/koma-script/scrlfile.dtx b/Master/texmf-dist/source/latex/koma-script/scrlfile.dtx
index b206c4c2727..b2953f4b62f 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrlfile.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrlfile.dtx
@@ -1,4 +1,4 @@
-% \CheckSum{259}
+% \CheckSum{263}
% \iffalse meta-comment
% ======================================================================
% scrlfile.dtx
@@ -58,7 +58,7 @@
%%% From File: scrlfile.dtx
%<*driver|scrlfile|load>
% \fi
-\def\scrlfileversion{2007/03/07 v2.97a}
+\def\scrlfileversion{2007/12/18 v2.98}
% \iffalse
%</driver|scrlfile|load>
%<*driver>
@@ -491,6 +491,8 @@
% \changes{v2.96}{2006/07/19}{new redefinition}
% \begin{macro}{\scr@onefilewithoption}
% \changes{v2.96}{2006/07/19}{new helper macro}
+% \begin{macro}{\scr@@onefilewithoption}
+% \changes{v2.98}{2007/12/18}{new helper macro}
% \LaTeX{} uses this macro for loading classes and packages using
% \cs{LoadClass}, \cs{documentclass}, \cs{RequirePackage}, and
% \cs{usepackage}. We simply say now: if the class or package should be
@@ -504,17 +506,24 @@
\def\@onefilewithoptions#1[#2][#3]#4{%
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname #1.#4-@aliasname\endcsname\relax
- \scr@onefilewithoptions{#1}[{#2}][{#3}]{#4}%
+% \end{macrocode}
+% Do this ridiculous definition and call outside of \cs{ifx}\dots\cs{fi}
+% because of some errornous packages like some versions of
+% \textsf{breakurl}. This does not avoid an error, but the message about
+% unclosed \cs{if} will be outside of \textsf{scrlfile}.
+% \begin{macrocode}
+ \def\scr@@onefilewithoptions{\scr@onefilewithoptions{#1}}%
\else
\scr@replacefile@msg{\csname #1.#4-@aliasname\endcsname.#4}{#1.#4}%
- \expandafter\@onefilewithoptions\expandafter{%
- \csname #1.#4-@aliasname\endcsname
- }[{#2}][{#3}]{#4}%
+ \edef\scr@@onefilewithoptions{%
+ \noexpand\@onefilewithoptions{\csname #1.#4-@aliasname\endcsname}}%
\fi
+ \scr@@onefilewithoptions[{#2}][{#3}]{#4}%
}
% \end{macrocode}
% \end{macro}
% \end{macro}
+% \end{macro}
%
% \begin{macro}{\ReplaceInput}
% \changes{v2.96}{2006/07/19}{new command}
@@ -551,11 +560,12 @@
%
% \begin{macro}{\scr@replacefile@msg}
% \changes{v2.96}{2006/07/19}{new helper command}
+% \changes{v2.98}{2007/12/18}{spellfix}
% Last but not least \textsf{scrlfile} will write a message to the log file at
% every replacement.
% \begin{macrocode}
\newcommand*{\scr@replacefile@msg}[2]{%
- \PackageInfo{scrlfile}{inputting `#1' instead of `#2'}%
+ \PackageInfo{scrlfile}{inputing `#1' instead of `#2'}%
}
% \end{macrocode}
% \end{macro}
@@ -732,5 +742,5 @@
%%% Local Variables:
%%% mode: doctex
-%%% Text-master: t
+%%% TeX-master: t
%%% End:
diff --git a/Master/texmf-dist/source/latex/koma-script/scrmain.ins b/Master/texmf-dist/source/latex/koma-script/scrmain.ins
index ae4a46132cd..5ef001df84d 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrmain.ins
+++ b/Master/texmf-dist/source/latex/koma-script/scrmain.ins
@@ -201,27 +201,32 @@
\generate{\usepreamble\defaultpreamble
\file{KOMAold.lco}{%
+ \from{scrkvers.dtx}{trace}%
\from{scrklco.dtx}{lco,KOMAold,head}%
\ifbeta\from{scrbeta.dtx}{KOMAold,lco}\fi
\from{scrklco.dtx}{lco,KOMAold,body}%
\from{scrknpap.dtx}{lco,KOMAold,body}%
}%
\file{DIN.lco}{%
+ \from{scrkvers.dtx}{trace}%
\from{scrklco.dtx}{lco,DIN,head}%
\ifbeta\from{scrbeta.dtx}{DIN,lco}\fi
\from{scrklco.dtx}{lco,DIN,body}%
}%
\file{DINmtext.lco}{%
+ \from{scrkvers.dtx}{trace}%
\from{scrklco.dtx}{lco,DINmoretext,head}%
\ifbeta\from{scrbeta.dtx}{DINmoretext,lco}\fi
\from{scrklco.dtx}{lco,DINmoretext,body}%
}%
\file{SN.lco}{%
+ \from{scrkvers.dtx}{trace}%
\from{scrklco.dtx}{lco,SN,head}%
\ifbeta\from{scrbeta.dtx}{SN,lco}\fi
\from{scrklco.dtx}{lco,SN,body}%
}%
\file{SNleft.lco}{%
+ \from{scrkvers.dtx}{trace}%
\from{scrklco.dtx}{lco,SwissLeft,head}%
\ifbeta\from{scrbeta.dtx}{SwissLeft,lco}\fi
\from{scrklco.dtx}{lco,SwissLeft,body}%
@@ -229,6 +234,45 @@
}
\generate{\usepreamble\defaultpreamble
+ \file{NipponEL.lco}{%
+ \from{scrkvers.dtx}{trace}%
+ \from{japanlco.dtx}{lco,Ni,EARLY,LOW,head}%
+ \ifbeta\from{scrbeta.dtx}{KOMAold,lco}\fi
+ \from{japanlco.dtx}{lco,Ni,EARLY,LOW,body}%
+ }%
+ \file{NipponEH.lco}{%
+ \from{scrkvers.dtx}{trace}%
+ \from{japanlco.dtx}{lco,Ni,EARLY,HIGH,head}%
+ \ifbeta\from{scrbeta.dtx}{KOMAold,lco}\fi
+ \from{japanlco.dtx}{lco,Ni,EARLY,HIGH,body}%
+ }%
+ \file{NipponLL.lco}{%
+ \from{scrkvers.dtx}{trace}%
+ \from{japanlco.dtx}{lco,Ni,LATE,LOW,head}%
+ \ifbeta\from{scrbeta.dtx}{KOMAold,lco}\fi
+ \from{japanlco.dtx}{lco,Ni,LATE,LOW,body}%
+ }%
+ \file{NipponLH.lco}{%
+ \from{scrkvers.dtx}{trace}%
+ \from{japanlco.dtx}{lco,Ni,LATE,HIGH,head}%
+ \ifbeta\from{scrbeta.dtx}{KOMAold,lco}\fi
+ \from{japanlco.dtx}{lco,Ni,LATE,HIGH,body}%
+ }%
+ \file{NipponRL.lco}{%
+ \from{scrkvers.dtx}{trace}%
+ \from{japanlco.dtx}{lco,Ni,RIGHT,LOW,head}%
+ \ifbeta\from{scrbeta.dtx}{KOMAold,lco}\fi
+ \from{japanlco.dtx}{lco,Ni,RIGHT,LOW,body}%
+ }%
+ \file{KakuLL.lco}{%
+ \from{scrkvers.dtx}{trace}%
+ \from{japanlco.dtx}{lco,Kaku,LATE,LOW,head}%
+ \ifbeta\from{scrbeta.dtx}{KOMAold,lco}\fi
+ \from{japanlco.dtx}{lco,Kaku,LATE,LOW,body}%
+ }%
+}%
+
+\generate{\usepreamble\defaultpreamble
\file{typearea.sty}{%
\ifbeta\from{scrbeta.dtx}{package,typearea}\fi
\from{scrkvers.dtx}{package,typearea}%
diff --git a/Master/texmf-dist/source/latex/koma-script/scrpage.dtx b/Master/texmf-dist/source/latex/koma-script/scrpage.dtx
index c639f994906..45c5ee7fde1 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrpage.dtx
+++ b/Master/texmf-dist/source/latex/koma-script/scrpage.dtx
@@ -2506,5 +2506,5 @@
% end of file `scrpage.dtx'
%%% Local Variables:
%%% mode: doctex
-%%% Text-master: t
+%%% TeX-master: t
%%% End:
diff --git a/Master/texmf-dist/source/latex/koma-script/scrsource.tex b/Master/texmf-dist/source/latex/koma-script/scrsource.tex
index 4db7b678e38..a93ffb48b15 100644
--- a/Master/texmf-dist/source/latex/koma-script/scrsource.tex
+++ b/Master/texmf-dist/source/latex/koma-script/scrsource.tex
@@ -116,6 +116,7 @@
\DocInclude{scrkvars}
\DocInclude{scrkplen}
\DocInclude{scrklco}
+ \DocInclude{japanlco}
\DocInclude{scrkcile}
\PrintIndex
diff --git a/Master/texmf-dist/source/latex/koma-script/tocstyle.dtx b/Master/texmf-dist/source/latex/koma-script/tocstyle.dtx
new file mode 100644
index 00000000000..d42327d2899
--- /dev/null
+++ b/Master/texmf-dist/source/latex/koma-script/tocstyle.dtx
@@ -0,0 +1,1931 @@
+% \CheckSum{1629}
+% \iffalse meta-comment
+% ======================================================================
+% tocstyle.dtx
+% Copyright (c) Markus Kohm, 2007
+%
+% This file is part of the LaTeX2e KOMA-Script bundle.
+%
+% This work may be distributed and/or modified under the conditions of
+% the LaTeX Project Public License, version 1.3b of the license.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3b or later is part of all distributions of LaTeX
+% version 2005/12/01 and of this work.
+%
+% This work has the LPPL maintenance status "author-maintained".
+%
+% The Current Maintainer and author of this work is Markus Kohm.
+%
+% The KOMA-Script bundle consists of all files listed in manifest.txt.
+% The work `tocstyle' consists of the files `tocstyle.dtx' and
+% `scrlogo.dtx'.
+%
+% If you're missing the installation batch file `tocstyle.ins', try
+% tex tocstyle.dtx
+% to unpack all files.
+% The package documentation may be produced repeating
+% latex tocstyle.dtx
+% at least three times.
+% ----------------------------------------------------------------------
+% tocstyle.dtx
+% Copyright (c) Markus Kohm, 2007
+%
+% Diese Datei ist Teil des LaTeX2e KOMA-Script-Pakets.
+%
+% Dieses Werk darf nach den Bedingungen der LaTeX Project Public Lizenz,
+% Version 1.3b.
+% Die neuste Version dieser Lizenz ist
+% http://www.latex-project.org/lppl.txt
+% und Version 1.3b ist Teil aller Verteilungen von LaTeX
+% Version 2005/12/01 und dieses Werks.
+%
+% Dieses Werk hat den LPPL-Verwaltungs-Status "author-maintained"
+% (allein durch den Autor verwaltet).
+%
+% Der Aktuelle Verwalter und Autor dieses Werkes ist Markus Kohm.
+%
+% Das KOMA-Script-Paket besteht aus allen Dateien, die in manifest.txt
+% genannt sind.
+% Das Werk `tocstyle' besteht aus den Dateien `tocstyle.dtx' und
+% `scrlogo.dtx'.
+%
+% Falls Sie die Installations-Batch-Datei `tocstyle.ins' vermissen,
+% probieren Sie einfach einmal
+% tex tocstyle.dtx
+% um alle Dateien auszupacken. Zur englischen Anleitung siehe den
+% englischen Kommentar oben.
+% ======================================================================
+% \fi
+%
+% \CharacterTable
+% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+% Digits \0\1\2\3\4\5\6\7\8\9
+% Exclamation \! Double quote \" Hash (number) \#
+% Dollar \$ Percent \% Ampersand \&
+% Acute accent \' Left paren \( Right paren \)
+% Asterisk \* Plus \+ Comma \,
+% Minus \- Point \. Solidus \/
+% Colon \: Semicolon \; Less than \<
+% Equals \= Greater than \> Question mark \?
+% Commercial at \@ Left bracket \[ Backslash \\
+% Right bracket \] Circumflex \^ Underscore \_
+% Grave accent \` Left brace \{ Vertical bar \|
+% Right brace \} Tilde \~}
+%
+% \iffalse
+%%% From File: tocstyle.dtx
+%<*dtx>
+% \fi
+\def\LaTeXformat{LaTeX2e}
+\let\ifbeta=\iffalse
+\ifx\fmtname\LaTeXformat\else
+% \iffalse
+%</dtx>
+%<*insfile>
+% \fi
+\def\batchfile{tocstyle.dtx}
+\input docstrip.tex
+\ifToplevel{%
+ \Msg{**********************************************************************}
+ \Msg{*}
+ \Msg{* KOMA-Script presents tocstyle}
+ \Msg{* a package to define, configure and several different styles for}
+ \Msg{* table of contents, list of floats and comparables.}
+ \Msg{*}
+ \Msg{* This is `\batchfile', a batchfile to unpack the package tocstyle,}
+ \Msg{* the documentation of the package, and an archive of all these files.}
+ \Msg{*}
+ \Msg{**********************************************************************}
+ \keepsilent
+ \askforoverwritefalse
+}
+
+\preamble
+
+Copyright (c) 2007 by Markus Kohm <komascript(at)gmx.info>
+
+Copyright (c) 1994-2007
+Markus Kohm and any individual authors listed elsewhere in this file.
+
+This file was generated from file(s) of the KOMA-Script bundle.
+---------------------------------------------------------------
+
+This work may be distributed and/or modified under the conditions of
+the LaTeX Project Public License, version 1.3b of the license.
+The latest version of this license is in
+ http://www.latex-project.org/lppl.txt
+and version 1.3b or later is part of all distributions of LaTeX
+version 2005/12/01 or later and of this work.
+
+This work has the LPPL maintenance status "author-maintained".
+
+The Current Maintainer and author of this work is Markus Kohm.
+
+This file may only be distributed together with the file
+`tocstyle.dtx' and `scrlogo.dtx'. You may however distribute the files
+`tocstyle.dtx' and `scrlogo.dtx' without this file.
+
+If this file is a beta version, you are not allowed to distribute it.
+
+English and German manuals are part of KOMA-Script bundle.
+----------------------------------------------------------
+
+The english manual is at `tocstyle.dtx', too.
+
+The KOMA-Script bundle (but not this file) was based upon the LaTeX2.09
+Script family created by Frank Neukam 1993 and the LaTeX2e standard
+classes created by The LaTeX3 Project 1994-1996.
+
+THIS IS AN ALPHA VERSION!
+USAGE OF THIS VERSION IS ON YOUR OWN RISK!
+EVERYTHING MAY HAPPEN!
+EVERYTHING MAY CHANGE IN FUTURE!
+THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!
+
+\endpreamble
+
+\generate{\usepreamble\defaultpreamble
+ \file{tocstyle.sty}{%
+ \ifbeta\from{scrbeta.dtx}{package,tocstyle}\fi
+ \from{tocstyle.dtx}{package,trace,tocstyle}%
+ \from{scrlogo.dtx}{logo}%
+ }%
+}
+
+\ifToplevel{%
+ \generate{\usepreamble\defaultpreamble
+ \file{tocstyle.ins}{%
+ \from{tocstyle.dtx}{insfile}%
+ }%
+ \file{tocstyle.tex}{%
+ \from{tocstyle.dtx}{doc}%
+ }%
+ \file{tocstyle.drv}{%
+ \from{tocstyle.dtx}{driver}%
+ }%
+ }%
+}
+
+\ifToplevel{%
+ \Msg{**********************************************************************}
+ \Msg{*}
+ \ifbeta
+ \Msg{* THIS IS A BETA VERSION. YOU SHOULD NOT INSTALL OR USE IT!}
+ \Msg{* THERE MAY BE A LOT OF BUGS AT THIS VERSION!}
+ \Msg{* PLEASE INSTALL THE RELEASE YOU MAY FIND AT CTAN!}
+ \else
+ \Msg{* To finish the installation you have to copy the file `tocstyle.sty'}
+ \Msg{* to folder `tex/latex/tocstyle/' of one of your TEXMF trees.}
+ \Msg{* You should also produce the documentation using}
+ \Msg{*\space\space latex tocstyle.dtx}
+ \Msg{* and copy it to folder `doc/latex/tocstyle/' of one of your}
+ \Msg{* TEXMF trees.}
+ \Msg{*}
+ \Msg{* See the manual of your TeX distribution for more informations about}
+ \Msg{* package installation.}
+ \fi
+ \Msg{*}
+ \Msg{**********************************************************************}
+}
+% \iffalse
+%</insfile>
+%<*dtx>
+% \fi
+ \def\ProvidesFile{\csname fi\endcsname\csname endinput\endcsname}
+\fi
+\ProvidesFile{tocstyle.dtx}
+% \iffalse
+%</dtx>
+%<package|driver>\NeedsTeXFormat{LaTeX2e}[1995/06/01]
+%<package>\ProvidesPackage{tocstyle}
+%<driver>\ProvidesFile{tocstyle.drv}
+%<doc>\ProvidesFile{tocstyle.tex}
+%<*dtx|package|driver|doc>
+ [2007/12/21 v0.2alpha LaTeX2e KOMA-Script package (versatile toc styles)]
+%</dtx|package|driver|doc>
+%<*driver>
+\documentclass{scrdoc}
+\usepackage[ngerman,english]{babel}
+\usepackage{tocstyle}
+\usetocstyle[toc]{nopagecolumn}
+\CodelineIndex
+\RecordChanges
+\GetFileInfo{tocstyle.dtx}
+\title{The \KOMAScript{} package \texttt{tocstyle}%
+ \footnote{This is version \fileversion\ of file \texttt{\filename}.}}
+\date{\filedate}
+\author{Markus Kohm}
+
+\newenvironment{Explain}{\par}{\par}
+\let\Macro\cs
+\let\Package\textsf
+\let\File\texttt
+\let\Option\texttt
+\let\Counter\texttt
+\let\ShowOutput\quote
+\let\endShowOutput\endquote
+\let\Parameter\marg
+\let\OParameter\oarg
+\newcommand\PParameter[1]{\mbox{\texttt{\{#1\}}}}
+\let\PName\meta
+\let\PValue\texttt
+\newlength\descwidth
+\newenvironment{desctabular}{%
+ \setlength{\descwidth}{\linewidth}
+ \addtolength{\descwidth}{-1em}
+ \addtolength{\descwidth}{-2\tabcolsep}
+ \tabular{@{}lp{\descwidth}@{}}
+ \hline
+}{%
+ \hline
+ \endtabular
+}
+\newcommand{\pventry}[2]{%
+ \multicolumn{2}{@{}l@{}}{\PValue{#1}}\\
+ ~ & #2 \\ }
+\providecommand*{\autoref}[1]{\expandafter\AUTOREF#1:}
+\newcommand*{\AUTOREF}{}
+\makeatletter
+\def\AUTOREF#1:#2:{%
+ \edef\@tempa{#1}%
+ \edef\@tempb{tab}\ifx\@tempa\@tempb table~\fi
+ \edef\@tempb{sec}\ifx\@tempa\@tempb section~\fi
+ \ref{#1:#2}%
+}
+\makeatother
+
+\begin{document}
+ \maketitle
+ \DocInput{\filename}
+\end{document}
+%</driver>
+% \fi
+%
+% \selectlanguage{english}
+%
+% \changes{v0.1}{2007/06/23}{start of new package}
+%
+%\iffalse
+%<doc>\chapter{Other Styles for Table of Contents and Lists of Floats}
+%<doc>\labelbase{tocstyle}
+%<doc>\BeginIndex{Package}{tocstyle}
+%\fi
+%
+% \begin{abstract}
+%\iffalse
+%<*doc>
+%\fi
+While the main classes of the \KOMAScript\ bundle were made, there where
+several ideas for formating the table of contents and lists of floats, but
+almost none of them where implemented. One reason was, that the \KOMAScript\
+author didn't like to change the \LaTeX\ kernel at a class, because this may
+result in serveral problems with other packages. The package
+\Package{tocstyle} will fill the gap. If it conflicts with another package,
+you simply may decide not to use it.
+%\iffalse
+%</doc>
+%\fi
+% \end{abstract}
+%
+% \def\appendixtocdepth{\value{tocdepth}}
+% \tableofcontents
+% \def\appendixtocdepth{2}
+%
+%\iffalse
+%<*doc>
+%\fi
+%
+\section{How It Works}
+\label{sec:tocstyle.howitworks}
+
+\begin{Explain}
+ Loading the package \Package{tocstyle} will redefine the kernel macro
+ \Macro{@starttoc}. Using the redefined \Macro{@starttoc} will redefine
+ \Macro{@dottedtocline}, \Macro{l@part} down to \Macro{l@subparagraph},
+ \Macro{l@figure}, and \Macro{l@table}, if and only if \Package{tocstyle}
+ wasn't deactivated for all TOCs or this TOC. Usage the redefined
+ \Macro{@dottedtocline} will redefine \Macro{numberline}.
+
+ Redefining \Macro{@starttoc}, \Macro{@dottedtocline}, and \Macro{numberline}
+ will activate the features of \Package{tocstyle} for all lists that uses
+ these, e.g. table of contents, list of figures and list of tables at the
+ standard or the \KOMAScript{} classes. But while not all classes uses
+ \Macro{@dottedtocline} and \Macro{@numberline} for all entries to table of
+ contents and list of floats the package redefines some other macros that are
+ typically used for those entries. These are e.g. \Macro{l@part},
+ \Macro{l@chapter} and some more. If the class even does not use those
+ macros, you may not use \Package{tocstyle} to change the lists. The term TOC
+ will be used for all kind of list, that may be processed by
+ \Package{tocstyle}. The package tests wether the original kernel macros
+ \Macro{@starttoc}, \Macro{@dottedtocline}, and \Macro{numberline} were used
+ or not and warns if not.
+
+ Package \Package{tocstyle} needs some more information. For the standard and
+ the \KOMAScript{} classes these informations may be detected by the
+ package. If the result is not the expected, you may configure these
+ informations manually.
+
+ The entries of every TOC hat a depth. See the counter \Counter{tocdepth} for
+ more information about the depth. You may change several settings for the
+ entries of either all depths of all TOCs, all depths of one TOC, or one
+ depth of one TOC.
+
+ But most users will not need to set up \Package{tocstyle} at this low
+ level. They simply will select one of the predefined styles and maybe select
+ one of the optional features.
+\end{Explain}
+
+\section{Optional Features}
+\label{sec:tocstyle.options}
+
+Optional features will be selected using a package option while loading the
+package or using the package option as a global option loading the class using
+\Macro{documentclass}. Optional features change generall behaviour of all
+TOCs.
+
+%\iffalse
+\begin{Description}
+ \Option{tocindentauto}
+ \Option{tocindentmanual}
+\end{Description}
+\BeginIndex{Option}{tocindentauto}\BeginIndex{Option}{tocindentmanual}
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{tocindentauto}
+\DescribeMacro{tocindentmanual}
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+With option \Option{tocindentauto} all widths at the TOCs are calculated by
+\Package{tocstyle}. The calculation of the width needs at least one \LaTeX{}
+run with all TOC entries. So you need at least three \LaTeX{} runs:
+\begin{itemize}
+\item one to write all the TOC entries to the TOC file
+\item one with the known TOC entries from the TOC file but unknown widths
+\item one with the known TOC entries from the TOC file and known widths
+\end{itemize}
+If the TOC entries changed between the second and the third
+run\,---\,e.g. because of page numbers changed\,---\,you'll need one more run
+(and so on).
+
+Note: The widths of all entries of same depth and same TOC are same. Don't ask
+for less width of page numbers at the first than the last TOC page!
+%\iffalse
+\EndIndex{Option}{tocindentauto}\EndIndex{Option}{tocindentmanual}
+%\fi
+%
+%\iffalse
+\begin{Description}
+ \Option{tocgraduated}
+ \Option{tocflat}
+ \Option{tocfullflat}
+\end{Description}%
+\BeginIndex{Option}{tocgraduated}\BeginIndex{Option}{tocflat}%
+\BeginIndex{Option}{tocfullflat}%
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{tocgraduated}
+\DescribeMacro{tocflat}
+\DescribeMacro{tocfullflat}
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+The option \Option{tocgraduated} selects the graduated version of all
+TOCs. You know the graduated version from the standard classes. Entries of lower
+depth are indented against entries of higher depth. This may e.g. look like:
+\begin{ShowOutput}
+ \showtoc[{%
+ \aliastoc{\tocstyleTOC}{toc}%
+ \usetocstyle[toc]{standard}%
+ \settocfeature[toc]{raggedhook}{\raggedright}%
+ \selecttocstyleoption{tocgraduated}%
+ }]{toc}
+\end{ShowOutput}
+The option \Option{tocflat} selects the flat\,---\,aka left
+aligned\,---\,version of all TOCs. You know the flat version from the
+\KOMAScript{} classes using option \Option{tocleft}. This may e.g. look like:
+\begin{ShowOutput}
+ \showtoc[{%
+ \aliastoc{\tocstyleTOC}{toc}%
+ \usetocstyle[toc]{standard}%
+ \selecttocstyleoption{tocflat}%
+ }]{toc}%
+\end{ShowOutput}
+The option \Option{tocfullflat} is similar to flat version of all
+TOCs, but there is even no box of same width for the numbers of all entries.
+This may e.g. look like:
+\begin{ShowOutput}
+ \showtoc[{%
+ \aliastoc{\tocstyleTOC}{toc}%
+ \usetocstyle[toc]{standard}%
+ \selecttocstyleoption{tocfullflat}%
+ }]{toc}%
+\end{ShowOutput}
+Default is option \Option{tocgraduated}.
+%\iffalse
+\EndIndex{Option}{tocgraduated}\EndIndex{Option}{tocflat}%
+\EndIndex{Option}{tocfullflat}%
+%\fi
+%
+%\iffalse
+\begin{Description}
+ \Option{tocbreaksstrict}\\
+ \Option{tocbreakscareless}
+\end{Description}%
+\BeginIndex{Option}{tocbreaksstrict}%
+\BeginIndex{Option}{tocbreakscareless}%
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{tocbreaksstrict}
+\DescribeMacro{tocbreakscareless}
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+Default option \Option{tocbreaksstrict} sets a lot of penalties before and
+after TOC entries to avoid page break between a TOC entry and it's parent. But
+sometimes you may like to allow more page breaks. You may use option
+\Option{tocbreakscareless} for this.
+%\iffalse
+\EndIndex{Option}{tocbreaksstrict}\EndIndex{Option}{tocbreakscareless}%
+%\fi
+%
+%\iffalse
+\begin{Description}
+ \Option{toctextentriesindented}\\
+ \Option{toctextentriesleft}
+\end{Description}%
+\BeginIndex{Option}{toctextentriesindented}%
+\BeginIndex{Option}{toctextentriesleft}%
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{toctextentriesindented}
+\DescribeMacro{toctextentriesleft}
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+With default option \Option{toctextentriesleft} unnumbered TOC entries,
+e.g. from \KOMAScript{} command \Macro{addchap}, are indented only as wide as
+the number of numbered TOC entries of the same level are. But with option
+\Option{toctextentriesindented} these are indented as if they have an empty
+number.
+%\iffalse
+\EndIndex{Option}{toctextentriesindented}%
+\EndIndex{Option}{toctextentriesleft}%
+%\fi
+%
+\section{Using TOC Styles}
+\label{sec:tocstyle.usestyles}
+
+Package \Package{tocstyle} hat several predefined toc styles. Most users will
+never need to define their own toc style but only select one of the
+predefined and maybe configure it by one of the options described at the
+previsous section.
+
+%\iffalse
+\begin{Description}
+ \Macro{usetocstyle}\OParameter{TOC}\Parameter{style}
+\end{Description}%
+\BeginIndex{Macro}{usetocstyle}%
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{\usetocstyle}
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+You may set the style of one or all TOCs. If you want to set the style of all
+TOCs, you'd simply say \Macro{usetocstyle}\Parameter{style}. This will set
+all settings of the given style to all TOCs. Individual settings will
+overwrite this generall setting.
+
+If you use \Macro{usetocstyle}\OParameter{TOC}\Parameter{style}, only the
+style of the given TOC will be set. This will be done \emph{after} the general
+setting. Only individual settings of single features may overwrite the setting
+of the style.
+
+The \autoref{tab:tocstyle.styles} shows the predefined styles, that may be
+used as mandatory argument of \Macro{tocstyle}. The optional argument
+\PName{TOC} is the shortcut (file extension) of the TOC. Examples of known
+shortcuts are shown at \autoref{tab:tocstyle.shortcuts}.
+
+\begin{table}
+ \centering
+ \caption{Predefined TOC Styles}
+ \label{tab:tocstyle.styles}
+ \begin{desctabular}
+ \pventry{standard}{A style similar to the standard classes. All width are
+ predefined to the width of the standard classes, but may be overwritten
+ by the general options (see \autoref{sec:tocstyle.options}). The depth -1
+ (part) and 0 (chapter) are set in bold face (\Macro{bfseries}). If no
+ depth 0 was found at the TOC, depth 1 (section) will be set in bold
+ face, too. All other depth will be set in normal font. Depth -1 (part)
+ will be set using \Macro{large}. The font changes are valid for the
+ page numbers, too.}%
+ \pventry{KOMAScript}{A style similar to the \KOMAScript{} classes. This is
+ almost the same like \PValue{standard}, but instead of bold face
+ \Macro{usekomafont}\PParameter{disposition} will be used if
+ \Macro{usekomafont} was defined and sans serif, bold face
+ (\Macro{sffamily}\Macro{bfseries}) if not.}%
+ \pventry{classic}{Like \PValue{KOMAScript} but all page numbers are set
+ using normal font.}%
+ \pventry{allwithdot}{Like \PValue{classic} but dots between entry text and
+ page numbers are used at all depths.}%
+ \pventry{noonewithdot}{Like \PValue{classic} but not dots between entry
+ text and page numbers are used.}%
+ \pventry{nopagecolumn}{Like \PValue{noonewithdot} but also the gap
+ between text and page numbers is omited. This means, that the page
+ numbers are set 1\,em after the text.}%
+ \end{desctabular}
+\end{table}
+
+Note: Before you're setting a style the style of the TOCs are
+unspecified. This means that some entries may be set using \Package{tocstyle}
+others may not.
+
+\begin{table}
+ \centering
+ \caption{Known TOC Shortcuts}
+ \label{tab:tocstyle.shortcuts}
+ \begin{desctabular}
+ \pventry{toc}{Table of contents of almost all known classes.}
+ \pventry{lof}{List of figures of almost all known classes.}
+ \pventry{lot}{List of tables of almost all known classes.}
+ \pventry{lol}{List of listings of package \Package{listings}. Currently
+ the usability of \Package{listings} with \Package{tocstyle} is not
+ recomended. Maybe it works, maybe not. Maybe you should try
+ \Macro{deactivatetocstyle[lol]}.}
+ \end{desctabular}
+\end{table}
+%\iffalse
+\EndIndex{Macro}{usetocstyle}%
+%\fi
+%
+%\iffalse
+\begin{Description}
+ \Macro{deactivatetocstyle}\OParameter{TOC}\\
+ \Macro{reactivatetocstyle}\OParameter{TOC}
+\end{Description}%
+\BeginIndex{Macro}{\deactivatetocstyle}\BeginIndex{Macro}{\reactivatetocstyle}%
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{\deactivatetocstyle}\DescribeMacro{\reactivatetocstyle}
+Both commands have one optional argument \PName{TOC}.
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+You may deactive the influence of \Package{tocstyle} for a TOC and reactivate
+it. If you use \Macro{deactivatetocstyle} without the optional argument or
+empty optional argument, the influence of \Package{tocstyle} for all TOCs will
+be deactivated and may reactivated only using \Macro{reactivatetocstyle}
+without the optional argument or empty optional argument too.
+
+After deactivation of \Package{tocstyle} for one TOC or all TOCs you may
+continue configuring TOCs. All these changes will be used after reactivation.
+%\iffalse
+\EndIndex{Macro}{\deactivatetocstyle}\EndIndex{Macro}{\reactivatetocstyle}%
+%\fi
+
+%
+
+\section{Setting-up Single Features}
+\label{sec:tocstyle.singlefeatures}
+
+At the previous section you've learned how to select a predefined TOC
+style. You were also told, that you may change one ore more features against
+the used predefined TOC style for one or all depth of one ore all TOCs. Now
+you will learn how to do this.
+
+%\iffalse
+\begin{Description}
+ \Macro{settocfeature}%
+ \OParameter{TOC}\OParameter{depth}\Parameter{feature}\Parameter{commands}\\
+ \Macro{settocstylefeature}%
+ \OParameter{depth}\Parameter{feature}\Parameter{commands}
+\end{Description}%
+\BeginIndex{Macro}{settocfeature}\BeginIndex{Macro}{settocstylefeature}%
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{\settocfeature}
+\DescribeMacro{\settocstylefeature}
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+These commands are used to set a single feature eiher of all depth of all TOCs
+(\Macro{settocfeature} \Parameter{feature} \Parameter{command} or
+\Macro{settocstylefeature} \Parameter{feature} \Parameter{commands}), or of
+all depth of a single TOC (\Macro{settocfeature}
+\OParameter{TOC} \Parameter{feature} \Parameter{commands}), or of a single
+depth of all TOCs (\Macro{settocstylefeature}
+\OParameter{depth} \Parameter{feature} \Parameter{commands}), or of a single
+depth of a single TOC (\Macro{settocfeature} \OParameter{TOC}
+\OParameter{depth} \Parameter{feature} \Parameter{commands}).
+
+Parameter \PName{commands} is a list of commands. In most cases these must not
+be commands, that need an argument. So you should e.g. not use \Macro{textbf}
+but \Macro{bfseries} to switch to bold face. Parameter \PName{feature} is
+the feature, that may be configured with parameter \PName{commands}. All known
+features are show at \autoref{tab:tocstyle.features}.
+
+\begin{table}
+ \centering
+ \caption{Features that May Be Set}
+ \label{tab:tocstyle.features}
+ \begin{desctabular}
+ \pventry{dothook}{will be executed before any dot of the dot line}%
+ \pventry{entryhook}{hook before the entry will be set}%
+ \pventry{entryvskip}{initial vertical skip amount (if not set 0pt plus
+ .2pt will be used)}%
+ \pventry{leaders}{commands for fillin the gap between entry text and page
+ number (if not set the default leaders command with dots will be used)}%
+ \pventry{pagenumberbox}{the box command for setting the page number (if
+ not set the default box of with \Macro{@pnumwidth} will be used); note,
+ that this has to be a command with exactly one argument}%
+ \pventry{pagenumberhook}{hook before the page number will be set at the
+ page number box}%
+ \pventry{parfillskip}{add this amount to the default value of
+ \Macro{parfillskip} after setting up all lengths}%
+ \pventry{raggedhook}{the only allowed values here are \Macro{raggedright}
+ or nothing}%
+ \pventry{spaceafternumber}{amount of minimum space after the entry number,
+ if the needed width will be calculated automaticly}%
+ \end{desctabular}
+\end{table}
+
+The order of used commands for a feature is
+\begin{enumerate}
+\item commands for all depths of all TOCs,
+\item commands for all depth of a single TOC,
+\item commands for a single depth of all TOCs,
+\item commands for a single depth of a single TOC,
+\end{enumerate}
+and settings of \Macro{usetocstyle} may be overwritten by
+\Macro{settocfeature} und \Macro{settocstylefeature}.
+%\iffalse
+\EndIndex{Macro}{settocfeature}\EndIndex{Macro}{settocstylefeature}%
+%\fi
+%
+
+\section{Defining New TOC Styles}
+\label{sec:tocstyle.define}
+
+Now you know how to select a prefedined TOC style and how to change single
+features. But wouldn't it be nice to define your own TOC style?
+
+%\iffalse
+\begin{Description}
+ \Macro{newtocstyle}\OParameter{parent style}\OParameter{exclude features}%
+ \Parameter{new style}%
+ \Parameter{\Macro{settocstylefeature}-commands}
+\end{Description}%
+\BeginIndex{Macro}{\newtocstyle}%
+%</doc>
+%<*dtx>
+%\fi
+\DescribeMacro{\newtocstyle}
+You may do this using \Macro{newtocstyle}\OParameter{parent
+ style} \OParameter{exclude features} \Parameter{style
+ name} \Parameter{\Macro{settocstylefeature}-commands}.
+%\iffalse
+%</dtx>
+%<*doc>
+%\fi
+If you used the optional argument \PName{parent style} all features of the
+parent style will be part of the new style, before overwriting them with the
+features of the \Macro{settocstylefeature}-commands. You should not use any
+other commands at the last argument. But at \Macro{newtocstyle} the command
+\Macro{settocfeature} becomes an alias for \Macro{settocstylefeature} to
+avoid to much mistakes.
+
+The second optional argument is a comma seperated list of feature names. If it
+is used, these features of the parent style (and all ancestors of the parent)
+will not be part of the new style.
+%\iffalse
+\BeginIndex{Macro}{\newtocstyle}%
+%\fi
+%
+There's another feature for new toc styles. If there's a file
+\File{tocstyle.cfg} it will be loaded at the end of the package. This is
+usefull to define your own toc styles.
+%
+%\iffalse
+%</doc>
+%\fi
+%
+% \StopEventually{%
+% \clearpage
+% \appendix
+% \addtocontents{toc}{%
+% \value{tocdepth}=\protect\appendixtocdepth\relax}
+% \section{Examples for the Different TOC Styles}
+% Here you will find the table of contents of this document set in the
+% different TOC styles. All are set with option \Option{tocindentauto}.
+%^^A The appendix will be omitted.
+% \subsection{Graduated Versions}
+% First of all all graduated versions of the table of contents
+% \selecttocstyleoption{tocgraduated}%
+% \subsubsection{\PValue{standard} with Option \Option{tocgraduated}}
+% \usetocstyle[toc]{standard}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{KOMAScript} with Option \Option{tocgraduated}}
+% \usetocstyle[toc]{KOMAScript}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{classic} with Option \Option{tocgraduated}}
+% \usetocstyle[toc]{classic}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{allwithdot} with Option \Option{tocgraduated}}
+% \usetocstyle[toc]{allwithdot}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{noonewithdot} with Option \Option{tocgraduated}}
+% \usetocstyle[toc]{noonewithdot}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{nopagecolumn} with Option \Option{tocgraduated}}
+% \usetocstyle[toc]{nopagecolumn}
+% \showtoc{toc}\clearpage
+% \subsection{Flat Versions}
+% Now, all flat versions of the table of contents
+% \selecttocstyleoption{tocflat}%
+% \subsubsection{\PValue{standard} with Option \Option{tocflat}}
+% \usetocstyle[toc]{standard}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{KOMAScript} with Option \Option{tocflat}}
+% \usetocstyle[toc]{KOMAScript}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{classic} with Option \Option{tocflat}}
+% \usetocstyle[toc]{classic}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{allwithdot} with Option \Option{tocflat}}
+% \usetocstyle[toc]{allwithdot}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{noonewithdot} with Option
+% \Option{tocflat}}
+% \usetocstyle[toc]{noonewithdot}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{nopagecolumn} with Option
+% \Option{tocflat}}
+% \usetocstyle[toc]{nopagecolumn}
+% \showtoc{toc}\clearpage
+% \subsection{Fullflat Versions}
+% Now, all full-flat versions of the table of contents
+% \selecttocstyleoption{tocfullflat}%
+% \subsubsection{\PValue{standard} with Option \Option{tocfullflat}}
+% \usetocstyle[toc]{standard}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{KOMAScript} with Option \Option{tocfullflat}}
+% \usetocstyle[toc]{KOMAScript}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{classic} with Option \Option{tocfullflat}}
+% \usetocstyle[toc]{classic}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{allwithdot} with Option \Option{tocfullflat}}
+% \usetocstyle[toc]{allwithdot}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{noonewithdot} with Option
+% \Option{tocfullflat}}
+% \usetocstyle[toc]{noonewithdot}
+% \showtoc{toc}\clearpage
+% \subsubsection{\PValue{nopagecolumn} with Option
+% \Option{tocfullflat}}
+% \usetocstyle[toc]{nopagecolumn}
+% \showtoc{toc}\clearpage
+% \PrintIndex\PrintChanges}
+%
+% \section{Implementation}
+%
+% \iffalse
+%<*package>
+% \fi
+%
+% \begin{macrocode}
+\PackageWarningNoLine{tocstyle}{%
+ THIS IS AN ALPHA VERSION!\MessageBreak
+ USAGE OF THIS VERSION IS ON YOUR OWN RISK!\MessageBreak
+ EVERYTHING MAY HAPPEN!\MessageBreak
+ EVERYTHING MAY CHANGE IN FUTURE!\MessageBreak
+ THERE IS NO SUPPORT, IF YOU USE THIS PACKAGE!\MessageBreak
+ Maybe it would be better, not to load this package%
+}
+% \end{macrocode}
+%
+% \subsection{Option}
+%
+% Options change general behaviour of TOCs.
+%
+% \begin{macro}{\selecttocstyleoption}
+% \begin{macrocode}
+\newif\if@tocstyle@penalties
+\newif\iftocstyle@autolength
+\newif\iftocstyle@indentnotnumbered
+\newcount\tocstyle@indentstyle\tocstyle@indentstyle=\z@
+\newcommand*{\selecttocstyleoption}[1]{%
+ \begingroup
+ \edef\@tempa{#1}%
+ \edef\@tempb{tocbreaksstrict}%
+ \ifx\@tempa\@tempb\aftergroup\@tocstyle@penaltiestrue\else
+ \edef\@tempb{tocbreakscareless}%
+ \ifx\@tempa\@tempb\aftergroup\@tocstyle@penaltiesfalse\else
+ \edef\@tempb{tocindentauto}
+ \ifx\@tempa\@tempb\aftergroup\tocstyle@autolengthtrue\else
+ \edef\@tempb{tocindentmanual}%
+ \ifx\@tempa\@tempb\aftergroup\tocstyle@autolengthfalse\else
+ \edef\@tempb{tocgraduated}%
+ \ifx\@tempa\@tempb
+ \aftergroup\tocstyle@indentstyle\aftergroup\z@
+ \else
+ \edef\@tempb{tocflat}%
+ \ifx\@tempa\@tempb
+ \aftergroup\tocstyle@indentstyle\aftergroup\@ne
+ \aftergroup\relax
+ \else
+ \edef\@tempb{tocfullflat}%
+ \ifx\@tempa\@tempb
+ \aftergroup\tocstyle@indentstyle\aftergroup\tw@
+ \aftergroup\relax
+ \else
+ \edef\@tempb{toctextentriesindented}%
+ \ifx\@tempa\@tempb\aftergroup\tocstyle@indentnotnumberedtrue
+ \else
+ \edef\@tempb{toctextentriesleft}%
+ \ifx\@tempa\@tempb
+ \aftergroup\tocstyle@indentnotnumberedfalse
+ \else
+ \PackageError{tocstyle}{unknown option `#1'}{%
+ You've told me to select toc style option
+ `#1',\MessageBreak
+ but tocstyle doesn't know an option named `#1'}%
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \fi
+ \endgroup
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{option}{tocbreaksstrict}
+% \begin{option}{tocbreakscareless}
+% Switch on extended pernalties.
+% \begin{macrocode}
+\DeclareOption{tocbreaksstrict}{\selecttocstyleoption\CurrentOption}
+\DeclareOption{tocbreakscareless}{\selecttocstyleoption\CurrentOption}
+% \end{macrocode}
+% \end{option}
+% \end{option}
+%
+% \begin{option}{tocindentauto}
+% \begin{option}{tocindentmanual}
+% \begin{macrocode}
+\DeclareOption{tocindentauto}{\selecttocstyleoption\CurrentOption}
+\DeclareOption{tocindentmanual}{\selecttocstyleoption\CurrentOption}
+% \end{macrocode}
+% \end{option}
+% \end{option}
+%
+% \begin{option}{toctextentriesindented}
+% \begin{option}{toctextentriesleft}
+% \begin{macrocode}
+\DeclareOption{toctextentriesindented}{\selecttocstyleoption\CurrentOption}
+\DeclareOption{toctextentriesleft}{\selecttocstyleoption\CurrentOption}
+% \end{macrocode}
+% \end{option}
+% \end{option}
+%
+% \begin{option}{tocgraduated}
+% \begin{option}{tocflat}
+% \begin{option}{tocfullflat}
+% \begin{macrocode}
+\DeclareOption{tocgraduated}{\selecttocstyleoption\CurrentOption}
+\DeclareOption{tocflat}{\selecttocstyleoption\CurrentOption}
+\DeclareOption{tocfullflat}{\selecttocstyleoption\CurrentOption}
+% \end{macrocode}
+% \end{option}
+% \end{option}
+% \end{option}
+%
+% Defaults and others:
+% \begin{macrocode}
+\ExecuteOptions{tocbreaksstrict,tocindentauto,tocgraduated,%
+ toctextentriesleft}
+\ProcessOptions\relax
+% \end{macrocode}
+%
+% \begin{macrocode}
+\ifcsname if@tocleft\endcsname
+ \if@tocleft
+ \PackageWarningNoLine{tocstyle}{%
+ You should not use class option `tocleft'!\MessageBreak
+ This may result in errors or unexpected results.\MessageBreak
+ I'll try to deactivate `tocleft', now.\MessageBreak
+ You may use options `tocflat' and\MessageBreak
+ `tocindentauto' instead of `tocleft'}%
+ \csname @tocleftfalse\endcsname
+ \fi
+\fi
+% \end{macrocode}
+%
+%
+% \subsection{Body}
+%
+% There are two parts at \Package{tocstyle}:
+% \begin{itemize}
+% \item redefining internal \LaTeX{} kernel macros,
+% \item defining new macros and redefining class macros.
+% \end{itemize}
+% Redefining \LaTeX{} kernel macros may not be switched of. But redefining
+% class macros will only be on demand.
+%
+% \subsubsection{Redefining \LaTeX{} Kernel Macros}
+%
+% Some \LaTeX{} kernel macros must be redefined to add the new
+% functionality. Before redefining them, we test against the definition at
+% kernel 2005/12/01
+%
+% \begin{macro}{\@starttoc}
+% \begin{macro}{\tocstyle@saved@@starttoc}
+% The original definition will be extended by defaults for \cs{parskip},
+% \cs{parindent} and % \cs{parfillskip} and storage of the shortcut of the
+% current TOC.
+% \begin{macrocode}
+\newcommand*\tocstyle@saved@starttoc{}
+\let\tocstyle@saved@starttoc\@starttoc
+\renewcommand*{\@starttoc}[1]{%
+ \tocstyle@pre@starttoc{#1}%
+ \tocstyle@saved@starttoc{#1}%
+ \tocstyle@post@starttoc{#1}%
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@saved@dottedtocline}
+% For saving the unchanged definition (at \cs{begin{document}}):
+% \begin{macrocode}
+\newcommand*{\tocstyle@saved@dottedtocline}{}
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\tocstyle@dottedtocline}
+% Implement new definition and redefine:
+%^^A ------ Help me to find the \renecommand*{\@dottedtocline} ----------------
+% \begin{macrocode}
+\newcommand*{\tocstyle@dottedtocline}[5]{%
+ \let\numberline\tocstyle@numberline
+ \ifnum #1>\c@tocdepth \else
+% \end{macrocode}
+% Penalty feature: no page break between higher and lower depths.
+% \begin{macrocode}
+ \if@tocstyle@penalties
+ \begingroup
+ \@tempcnta 20010
+ \advance \@tempcnta by -#1
+ \ifnum \@tempcnta>\lastpenalty
+ \aftergroup\penalty\aftergroup\@lowpenalty
+ \fi
+ \endgroup
+ \fi
+% \end{macrocode}
+% Activation of all features for this TOC and depth:
+% \begin{macrocode}
+ \edef\tocstyledepth{#1}%
+ \tocstyle@activate@features
+% \end{macrocode}
+% Similar to kernel command but if feature \texttt{entryvskip} was set use
+% \cs{addvspace}:
+% \begin{macrocode}
+ \ifx\tocstyle@feature@entryvskip\relax
+ \vskip \z@ \@plus.2\p@
+ \else
+ \addvspace{\tocstyle@feature@entryvskip}%
+ \fi
+ {%
+% \end{macrocode}
+% Preinitialization of lengths and skips and then call a hook
+% \begin{macrocode}
+ \parskip \z@ \parindent \z@ \leftskip \z@ \rightskip \z@
+ \tocstyle@feature@raggedhook
+% \end{macrocode}
+% Set number indent to \cs{@tempdimb} and text indent to \cs{@tempdima}.
+% \begin{macrocode}
+ \@tempdima #3\relax
+ \@tempdimb #2\relax
+%<trace> \typeout{m (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
+% \end{macrocode}
+% Calc auto lengths
+% \begin{macrocode}
+ \ifnum #1>\z@\relax
+ \@tempcnta #1\relax \advance\@tempcnta \m@ne
+ \ifcsname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \ifcsname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \@tempdimb
+ \csname tocstyle@skipwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \advance\@tempdimb
+ \csname tocstyle@numwidth@\tocstyleTOC @\the\@tempcnta\endcsname
+ \fi
+ \fi
+ \fi
+%<trace> \typeout{C (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \ifcsname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname
+ \ifdim \@tempdimb>
+ \csname tocstyle@skipwidth@\tocstyleTOC @#1\endcsname\relax
+ \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
+ @#1\endcsname{\the\@tempdimb}%
+ \fi
+ \else
+ \expandafter\xdef\csname tocstyle@skipwidth@\tocstyleTOC
+ @#1\endcsname{\the\@tempdimb}%
+ \fi
+ \iftocstyle@autolength
+ \ifcsname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
+ \@tempdimb \csname tocstyle@maxskipwidth@\tocstyleTOC @#1\endcsname
+ \relax
+ \fi
+ \ifcsname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
+ \@tempdima \csname tocstyle@maxnumwidth@\tocstyleTOC @#1\endcsname
+ \relax
+ \fi
+%<trace> \typeout{a (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
+%<trace> \typeout{A (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \else
+ \@tempdimb #2\relax
+%<trace> \typeout{M (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \fi
+ \ifcsname tocstyle@unumwidth@\tocstyleTOC @\endcsname
+ \ifdim \@tempdima>
+ \csname tocstyle@unumwidth@\tocstyleTOC @\endcsname\relax
+ \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
+ @\endcsname{\the\@tempdima}%
+ \fi
+ \else
+ \expandafter\xdef\csname tocstyle@unumwidth@\tocstyleTOC
+ @\endcsname{\the\@tempdima}%
+ \fi
+ \ifcase\tocstyle@indentstyle\relax\else
+ \@tempdimb \z@
+ \ifcsname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
+ \@tempdima \csname tocstyle@maxunumwidth@\tocstyleTOC @\endcsname
+ \relax
+ \fi
+%<trace> \typeout{s (\tocstyleTOC, \tocstyledepth): \the\@tempdima}%
+%<trace> \typeout{S (\tocstyleTOC, \tocstyledepth): \the\@tempdimb}%
+ \fi
+% \end{macrocode}
+% Advance instead of set, because of the hook above:
+% \begin{macrocode}
+ \advance\parindent \@tempdimb\@afterindenttrue
+ \advance\leftskip \parindent
+ \advance\rightskip \@tocrmarg
+ \parfillskip -\rightskip
+ \ifx\tocstyle@feature@parfillskip\relax\else
+ \advance\parfillskip \tocstyle@feature@parfillskip\relax
+ \fi
+ \interlinepenalty\@M
+ \leavevmode
+ \advance\leftskip \@tempdima
+ \null\nobreak
+% \end{macrocode}
+% \cs{hskip}\cs{-leftskip} optional moved to \cs{numberline}
+% \begin{macrocode}
+ \iftocstyle@indentnotnumbered\else
+ \hskip -\leftskip
+ \fi
+% \end{macrocode}
+% Change at start of the entry
+% \begin{macrocode}
+ \tocstyle@feature@entryhook
+% \end{macrocode}
+% Similar to kernel command but if feature \texttt{leaders} was set use
+% this instead of the default leaders. And if feature \texttt{dothook} was set
+% (default is \cs{normalfont}) use this at the default leaders.
+% \begin{macrocode}
+ {#4}\nobreak
+ \ifx\tocstyle@feature@leaders\relax
+ \leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{\tocstyle@feature@dothook .}%
+ \mkern \@dotsep mu$}\hfill
+ \else
+ \tocstyle@feature@leaders
+ \fi
+ \nobreak
+ \ifx\tocstyle@feature@pagenumberbox\relax
+ \hb@xt@\@pnumwidth{\hfil\tocstyle@feature@pagenumberhook #5}%
+ \else
+ \tocstyle@feature@pagenumberbox{\tocstyle@feature@pagenumberhook #5}%
+ \fi
+ \par
+ }%
+% \end{macrocode}
+% Last change is, another penalty change:
+% \begin{macrocode}
+ \if@tocstyle@penalties
+ \bgroup
+ \@tempcnta 20009
+ \advance\@tempcnta by -#1
+ \edef\reserved@a{\egroup\penalty\the\@tempcnta\relax}%
+ \reserved@a
+ \fi
+ \fi}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@saved@numberline}
+% \begin{macro}{\tocstyle@numberline}
+% Define a new \cs{numberline}, that will do all the job after
+% \cs{begin{document}} and one to save the original definition.
+%^^A----------------------- \renewcommand*\numberline ------------------------
+% \begin{macrocode}
+\newcommand*{\tocstyle@saved@numberline}{}
+\newcommand*{\tocstyle@numberline}[1]{%
+ \begingroup
+ \ifx\tocstyle@feature@spaceafternumber\relax
+ \settowidth\@tempdima{\tocstyle@@numberline{#1}\enskip}%
+ \else
+ \settowidth\@tempdima{\tocstyle@@numberline{#1}}%
+ \advance \@tempdima \tocstyle@feature@spaceafternumber\relax
+ \fi
+ \ifcsname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname
+ \ifdim \@tempdima >
+ \csname tocstyle@numwidth@\tocstyleTOC @\tocstyledepth\endcsname\relax
+ \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
+ @\tocstyledepth\endcsname{\the\@tempdima}%
+ \fi
+ \else
+ \expandafter\xdef\csname tocstyle@numwidth@\tocstyleTOC
+ @\tocstyledepth\endcsname{\the\@tempdima}%
+ \fi
+ \endgroup
+ \iftocstyle@indentnotnumbered
+ \hskip -\leftskip
+ \fi
+ \ifcase \tocstyle@indentstyle
+ \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
+ \or
+ \hb@xt@\@tempdima{\tocstyle@@numberline{#1}\hfil}%
+ \else
+ \ifx\tocstyle@feature@spaceafternumber\relax
+ \hbox{\tocstyle@@numberline{#1}\enskip}%
+ \else
+ \hbox{\tocstyle@@numberline{#1}\hskip
+ \tocstyle@feature@spaceafternumber\relax}%
+ \fi
+ \fi
+}
+% \end{macrocode}
+% \begin{macro}{\tocstyle@@numberline}
+% Do the main work!
+% \begin{macrocode}
+\newcommand*{\tocstyle@@numberline}[1]{%
+ #1\csname autodot\endcsname
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \subsubsection{Redefining Class Macros}
+%
+% \begin{macro}{\l@part}
+% \begin{macro}{\l@chapter}
+% \begin{macro}{\l@section}
+% \begin{macro}{\l@subsection}
+% \begin{macro}{\l@subsubsection}
+% \begin{macro}{\l@paragraph}
+% \begin{macro}{\l@subparagraph}
+% \begin{macro}{\l@table}
+% \begin{macro}{\l@figure}
+% Try to redefine the toc commands at startup.
+% \begin{macrocode}
+\AtBeginDocument{%
+ \ifcsname l@part\endcsname
+ \ifcsname l@chapter\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@part{\tocstyle@l@define{part}{-1}}{}}%
+ \else
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@part{\tocstyle@l@define{part}{0}}{}}%
+ \fi
+ \fi
+ \ifcsname l@chapter\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@chapter{\tocstyle@l@define{chapter}{0}}{}}%
+ \fi
+ \ifcsname l@section\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@section{\tocstyle@l@define{section}{1}}{}}%
+ \fi
+ \ifcsname l@subsection\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@subsection{\tocstyle@l@define{subsection}{2}}{}}%
+ \fi
+ \ifcsname l@subsubsection\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@subsubsection{\tocstyle@l@define{subsubsection}{3}}{}}%
+ \fi
+ \ifcsname l@paragraph\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@paragraph{\tocstyle@l@define{paragraph}{4}}{}}%
+ \fi
+ \ifcsname l@subparagraph\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@subparagraph{\tocstyle@l@define{subparagraph}{5}}{}}%
+ \fi
+ \ifcsname l@table\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@table{\tocstyle@l@define{table}{1}}{}}%
+ \fi
+ \ifcsname l@figure\endcsname
+ \setbox\@tempboxa\vbox{\hsize\maxdimen
+ \l@figure{\tocstyle@l@define{figure}{1}}{}}%
+ \fi
+% \end{macrocode}
+% \begin{macro}{\@dottedtocline}
+% This will be used even for undotted toc lines. First check the definition,
+% then redefine.
+% \begin{macrocode}
+ \def\@tempa#1#2#3#4#5{%
+ \ifnum #1>\c@tocdepth \else
+ \vskip \z@ \@plus.2\p@
+ {\leftskip #2\relax \rightskip \@tocrmarg \parfillskip -\rightskip
+ \parindent #2\relax\@afterindenttrue
+ \interlinepenalty\@M
+ \leavevmode
+ \@tempdima #3\relax
+ \advance\leftskip \@tempdima \null\nobreak\hskip -\leftskip
+ {#4}\nobreak
+ \leaders\hbox{$\m@th
+ \mkern \@dotsep mu\hbox{.}\mkern \@dotsep
+ mu$}\hfill
+ \nobreak
+ \hb@xt@\@pnumwidth{\hfil \normalfont \normalcolor #5}%
+ \par}%
+ \fi}%
+ \ifx\@dottedtocline\@tempa\else
+ \tocstyle@macrochangewarning\@dottedtocline
+ \fi
+ \let\tocstyle@saved@dottedtocline\@dottedtocline
+% \end{macrocode}
+% \end{macro}
+% \begin{macro}{\numberline}
+% This macro needed to be redefined to calculate the with of the numbers.
+% First of all: check the definition. This is a bit more difficult, because
+% of respecting \KOMAScript:
+% \begin{macrocode}
+ \def\@tempa#1{\hb@xt@\@tempdima{#1\autodot\hfil}}%
+ \ifx\numberline\@tempa\else
+ \def\@tempa#1{\hb@xt@\@tempdima{#1\hfil}}%
+ \ifx\numberline@tempa\else
+ \tocstyle@macrochangewarning\numberline
+ \fi
+ \fi
+ \let\tocstyle@saved@numberline\numberline
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@macrochangewarning}
+% \begin{macrocode}
+\newcommand*{\tocstyle@macrochangewarning}[1]{%
+ \PackageWarningNoLine{tocstyle}{%
+ unexpected \string#1\space definition!\MessageBreak
+ You are either using an unknown LaTeX kernel\MessageBreak
+ version, an unknown class or package, that redefines\MessageBreak
+ \string#1, or a \string#1\space
+ redefinition\MessageBreak
+ at the document preamble.\MessageBreak
+ Because of this you may get unexpected results!\MessageBreak
+ Maybe it would be better not to use package tocstyle}%
+ \PackageInfo{tocstyle}{Unexpected definition is:\MessageBreak
+ \meaning#1}%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@l@define}
+% \begin{macro}{\tocstyle@activate@all@l}
+% \begin{macrocode}
+\newcommand*{\tocstyle@activate@all@l}{}
+\newcommand*{\tocstyle@l@define}[2]{%
+ \advance\leftskip-\@tempdima
+ \edef\@tempa{%
+ \noexpand\global\noexpand\let
+ \expandafter\noexpand\csname tocstyle@saved@l@#1\endcsname
+ \expandafter\noexpand\csname l@#1\endcsname
+ \noexpand\gdef
+ \expandafter\noexpand\csname tocstyle@l@#1\endcsname{%
+ \noexpand\@dottedtocline{#2}{\the\leftskip}{\the\@tempdima}}%
+ \noexpand\g@addto@macro\noexpand\tocstyle@activate@all@l{%
+ \noexpand\let\expandafter\noexpand\csname l@#1\endcsname
+ \expandafter\noexpand\csname tocstyle@l@#1\endcsname
+ }%
+ }%
+ \PackageInfo{tocstyle}{prepare \expandafter\string
+ \csname l@#1\endcsname\space for redefinition}%
+ \@tempa
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \subsubsection{New Macros}
+%
+% \begin{macro}{\showtoc}
+% \begin{macrocode}
+\newcommand*{\showtoc}[2][\aliastoc\tocstyleTOC\tocstyleAliasTOC]{%
+ \ifcsname tocstyle@copyname@#2\endcsname
+ \@tempcnta \csname tocstyle@copyname@#2\endcsname\relax
+ \advance\@tempcnta \@ne
+ \expandafter\xdef\csname tocstyle@copyname@#2\endcsname{\the\@tempcnta}%
+ \else
+ \expandafter\xdef\csname tocstyle@copyname@#2\endcsname{1}%
+ \fi
+ \ifx\@dofilelist\relax\let\@dofilelist\@empty\fi
+ \edef\@tempa{\noexpand\g@addto@macro\noexpand\@dofilelist{%
+ \noexpand\tocstyle@copy@toc{#2}{\csname
+ tocstyle@copyname@#2\endcsname}}%
+ }\@tempa%
+ \begingroup
+ \edef\tocstyleAliasTOC{#2}%
+ \edef\tocstyleTOC{#2\csname tocstyle@copyname@#2\endcsname}%
+ #1
+ \tocstyle@pre@starttoc{#2\csname tocstyle@copyname@#2\endcsname}%
+ \makeatletter
+ \@input{\jobname.#2\csname tocstyle@copyname@#2\endcsname}%
+ \@nobreakfalse
+ \tocstyle@post@starttoc{#2\csname tocstyle@copyname@#2\endcsname}%
+ \endgroup
+}
+% \end{macrocode}
+% \begin{macro}{\tocstyle@copy@toc}
+% \begin{macrocode}
+\newcommand*{\tocstyle@copy@toc}[2]{%
+ \if@filesw
+ \begingroup
+ \endlinechar=\m@ne
+% While \LaTeX{} does not close the files, we have to do it know.
+ \immediate\closeout\csname tf@#1\endcsname
+ \immediate\openin\@inputcheck \jobname.#1
+ \immediate\openout\@partaux \jobname.#1#2
+ \loop\unless\ifeof\@inputcheck
+ \immediate\readline\@inputcheck to \@tempa
+ \immediate\write\@partaux{\@tempa}%
+ \repeat
+ \immediate\closeout\@partaux
+ \immediate\closein\@inputcheck
+ \endgroup
+ \fi
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\aliastoc}
+% Internal use not the real TOC shortcut but another one.
+% \begin{macrocode}
+\newcommand*{\aliastoc}[2]{%
+ \expandafter\edef\csname tocstyle@alias@TOC@#1\endcsname{#2}%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@pre@starttoc}
+% \begin{macro}{\tocstyle@post@starttoc}
+% Commands before and after the original \cs{@starttoc}.
+% \begin{macrocode}
+\newcommand*{\tocstyle@pre@starttoc}[1]{%
+ \begingroup
+ \expandafter\ifx\csname tocstyle@deactivated@\endcsname\relax
+ \expandafter\ifx\csname tocstyle@deactivated@#1\endcsname\relax\relax
+ \tocstyle@activetrue
+ \else
+ \tocstyle@activefalse
+ \fi
+ \else
+ \tocstyle@activefalse
+ \fi
+ \iftocstyle@active
+ \let\@dottedtocline\tocstyle@dottedtocline
+ \parskip \z@
+ \parindent \z@
+ \parfillskip \z@\@plus 1fil
+ \ifcsname tocstyle@alias@TOC@#1\endcsname
+ \edef\tocstyleAliasTOC{\csname tocstyle@alias@TOC@#1\endcsname}%
+ \else
+ \edef\tocstyleAliasTOC{#1}%
+ \fi
+ \edef\tocstyleTOC{#1}%
+ \tocstyle@activate@all@l
+ \fi
+}
+\newcommand*{\tocstyle@post@starttoc}[1]{%
+ \iftocstyle@active
+ \if@filesw
+ \ifcsname tocstyle@unumwidth@#1@\endcsname
+ \protected@write\@auxout{}{%
+ \protect\tocstyle@set@width{unum}{#1}{}{%
+ \csname tocstyle@unumwidth@#1@\endcsname}%
+ }%
+ \fi
+ \expandafter\let\expandafter\@tempa
+ \csname tocstyle@depthlist@#1\endcsname
+ \ifx\@tempa\relax\else
+ \expandafter\@for \expandafter\@tempa\expandafter:\expandafter=\@tempa
+ \do {%
+ \ifcsname tocstyle@numwidth@#1@\@tempa\endcsname
+ \protected@write\@auxout{}{%
+ \protect\tocstyle@set@width{num}{#1}{\@tempa}{%
+ \csname tocstyle@numwidth@#1@\@tempa\endcsname}%
+ }%
+ \fi
+ \ifcsname tocstyle@skipwidth@#1@\@tempa\endcsname
+ \protected@write\@auxout{}{%
+ \protect\tocstyle@set@width{skip}{#1}{\@tempa}{%
+ \csname tocstyle@skipwidth@#1@\@tempa\endcsname}%
+ }%
+ \fi
+ }%
+ \fi
+ \fi
+ \fi
+ \endgroup
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{tocstyle@set@width}
+% \begin{macrocode}
+\newcommand*{\tocstyle@set@width}[4]{%
+ \expandafter\gdef\csname tocstyle@max#1width@#2@#3\endcsname{#4}%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\tocstyleTOC}
+% \begin{macro}{\tocstyleAliasTOC}
+% Shortcut of the current processed TOC. Empty outside of TOCs.
+% \begin{macrocode}
+\newcommand*{\tocstyleTOC}{}
+\newcommand*{\tocstyleAliasTOC}{}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\tocstyledepth}
+% Current depth of the current processed TOC entry.
+% \begin{macrocode}
+\newcommand*{\tocstyledepth}{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\deactivatetocstyle}%
+% \begin{macro}{\reactivatetocstyle}%
+% You may (de)activate all influence of tocstyle either for one or all TOCs.
+% \begin{macrocode}
+\newif\iftocstyle@active
+\newcommand*{\deactivatetocstyle}[1][]{%
+ \expandafter\let\csname tocstyle@deactivated@#1\endcsname\@empty}
+\newcommand*{\reactivatetocstyle}[1][]{%
+ \expandafter\let\csname tocstyle@deactivated@#1\endcsname\relax}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\settocfeature}
+% \begin{macro}{\@settocfeature}
+% \begin{macro}{\@@@settocfeature}
+% The primary command to set the features of a depth of a TOC.
+% \begin{macrocode}
+\newcommand*{\@settocfeature}[1][]{%
+ \@ifnextchar[ {\@@settocfeature[{#1}]}{\@@settocfeature[{#1}][]}
+}
+\def\@@settocfeature[#1][#2]#3#4{%
+%<trace> \typeout{exclude: \tocstyle@feature@excludelist}%
+ \@expandtwoargs\in@{,#3,}{,\tocstyle@feature@excludelist,}%
+ \ifin@\else
+ \expandafter\ifcsname tocstyle@feature@#3\endcsname
+ \@namedef{tocstyle@feature@#3@#1@#2}{#4}%
+ \begingroup
+ \expandafter\let\expandafter\@tempa
+ \csname tocstyle@commandlist@#1\endcsname
+ \@expandtwoargs\in@{,tocstyle@feature@#3@#1@#2,}{,\@tempa,}%
+ \ifin@\let\@tempa\endgroup\else
+ \edef\@tempa{\endgroup
+ \noexpand\expandafter\noexpand\ifx
+ \noexpand\csname tocstyle@commandlist@#1\noexpand\endcsname\relax
+ \noexpand\expandafter\noexpand\expandafter\noexpand\expandafter
+ \noexpand\def
+ \noexpand\else
+ \noexpand\expandafter\noexpand\expandafter\noexpand\expandafter
+ \noexpand\l@addto@macro
+ \noexpand\fi
+ \noexpand\csname tocstyle@commandlist@#1\noexpand\endcsname%
+ {tocstyle@feature@#3@#1@#2,}}%
+ \fi
+ \@tempa
+ \else
+ \PackageError{tocstyle}{unkown feature `#3'}{%
+ You've told me to set up toc style feature `#3',\MessageBreak
+ but I don't know this feature.\MessageBreak
+ See the tocstyle manual for all known feature.\MessageBreak
+ }%
+ \fi
+ \fi
+}
+\newcommand*{\settocfeature}{}
+\let\settocfeature\@settocfeature
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\l@addto@macro}
+% Something like \cs{g@addto@macro} but only with local effect. While other
+% packages or classes may also define this, \cs{providecommand} will be used.
+% \begin{macrocode}
+\providecommand{\l@addto@macro}[2]{%
+ \edef#1{\unexpanded\expandafter{#1#2}}%
+}%
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\settocstylefeature}
+% \begin{macro}{\@settocstylefeature}
+% Same as above without TOC argument.
+% \begin{macrocode}
+\newcommand*{\@settocstylefeature}{%
+ \@ifnextchar[ {\@settocfeature[]}{\@settocfeature[][]}%
+}
+\newcommand*{\settocstylefeature}{}
+\let\settocstylefeature\@settocstylefeature
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% Different commands will be defined:
+% \begin{macro}{\tocstyle@feature@<feature>@@}
+% Global feature (all TOCs all depths).
+% \end{macro}
+% \begin{macro}{\tocstyle@feature@<feature>@<TOC>@}
+% All depth feature for one TOC.
+% \end{macro}
+% \begin{macro}{\tocstyle@feature@<feature>@@<depth>}
+% All TOCs feature for one depth.
+% \end{macro}
+% \begin{macro}{\tocstyle@feature@<feature>@<TOC>@<depth>}
+% One depth of one TOC feature.
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@activate@features}
+% Activates the features
+% \begin{macrocode}
+\newcommand*{\tocstyle@activate@features}{%
+ \expandafter\ifx\csname tocstyle@depthlist@\tocstyleTOC\endcsname\relax
+ \expandafter\xdef\csname tocstyle@depthlist@\tocstyleTOC\endcsname{%
+ \tocstyledepth}%
+ \else
+ \expandafter\let\expandafter\@tempa
+ \csname tocstyle@depthlist@\tocstyleTOC\endcsname
+ \@expandtwoargs\in@{,\tocstyledepth,}{,\@tempa,}%
+ \ifin@\else
+ \expandafter\xdef\csname tocstyle@depthlist@\tocstyleTOC\endcsname{%
+ \csname tocstyle@depthlist@\tocstyleTOC\endcsname,\tocstyledepth}%
+ \fi
+ \fi
+ \expandafter\@for \expandafter\@tempa
+ \expandafter:\expandafter=\tocstyle@featurelist \do
+ {%
+ \@ifundefined{tocstyle@feature@\@tempa @\tocstyleAliasTOC @\tocstyledepth}{%
+ \@ifundefined{tocstyle@feature@\@tempa @@\tocstyledepth}{%
+ \@ifundefined{tocstyle@feature@\@tempa @\tocstyleAliasTOC @}{%
+ \@ifundefined{tocstyle@feature@\@tempa @@}{%
+ \expandafter\let\csname tocstyle@feature@\@tempa\endcsname\relax
+ }{%
+ \expandafter\let\csname tocstyle@feature@\@tempa
+ \expandafter\endcsname
+ \csname tocstyle@feature@\@tempa @@\endcsname
+ }%
+ }{%
+ \expandafter\let\csname tocstyle@feature@\@tempa
+ \expandafter\endcsname
+ \csname tocstyle@feature@\@tempa @\tocstyleAliasTOC @\endcsname
+ }%
+ }{%
+ \expandafter\let\csname tocstyle@feature@\@tempa
+ \expandafter\endcsname
+ \csname tocstyle@feature@\@tempa @@\tocstyledepth\endcsname
+ }%
+ }{%
+ \expandafter\let\csname tocstyle@feature@\@tempa
+ \expandafter\endcsname
+ \csname tocstyle@feature@\@tempa @\tocstyleAliasTOC @\tocstyledepth\endcsname
+ }%
+ }%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\newtocstyle}
+% Defining a new TOC style. First optional argument is a TOC style, that
+% will be activated before the new definitions. Note that all new
+% definitions will overwirte the parent's definitions. So a new TOC style,
+% that defines all features doesn't need a parent.
+% \begin{macrocode}
+\newcommand*{\newtocstyle}{%
+ \@ifnextchar [{\@newtocstyle}{\@newtocstyle[]}}
+\newcommand*{\@newtocstyle}{}
+\def\@newtocstyle[#1]{%
+ \@ifnextchar [{\@@newtocstyle[{#1}]}{\@newtocstyle[{#1}][]}}
+\newcommand*{\@@newtocstyle}{}
+\def\@@newtocstyle[#1][#2]#3#4{%
+ \@ifundefined{tocstyle@style@#3}{%
+ \@ifundefined{tocstyle@style@#1}{%
+ \ifx \relax#1\relax\else
+ \PackageError{tocstyle}{unknown parent TOC style `#1'}{%
+ You've told me to inheritate parent TOC style `#1',\MessageBreak
+ but there's no TOC style `#1' defined.}%
+ \fi
+ \expandafter\def\csname tocstyle@style@#3\endcsname{#4}%
+ }{%
+ \expandafter\def\csname tocstyle@style@#3\endcsname{%
+ \edef\reserved@a{%
+ \noexpand\l@addto@macro\noexpand\tocstyle@feature@excludelist{#2}%
+ \noexpand\@usetocstyle{#1}%
+ \noexpand\def\noexpand\tocstyle@feature@excludelist{%
+ \tocstyle@feature@excludelist}%
+ }\reserved@a
+ #4%
+ }%
+ }%
+ }{%
+ \PackageError{tocstyle}{TOC style `#3' already defined}{%
+ You've tried to define a new TOC style `#3',\MessageBreak
+ but there's already a TOC style named `#3'.}%
+ }%
+}
+\newcommand*{\tocstyle@feature@excludelist}{}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\usetocstyle}
+% \begin{macro}{\@usetocstyle}
+% Use the predefined TOC style.
+% \begin{macrocode}
+\newcommand*{\usetocstyle}[2][]{%
+ \@ifundefined{tocstyle@style@#2}{%
+ \PackageError{tocstyle}{unknown TOC style `#2'}{%
+ You've told me to use TOC style `#2',\MessageBreak
+ but there's no TOC style `#2' defined.}%
+ }{%
+ \def\settocfeature{%
+ \@ifnextchar[ {\@@settocfeature[{#1}]}{\@@settocfeature[{#1}][]}%
+ }%
+ \let\settocstylefeature\settocfeature
+% \end{macrocode}
+% Deactivate all known features for this TOC
+% \begin{macrocode}
+ \expandafter\ifx\csname tocstyle@commandlist@#1\endcsname\relax
+ \else
+ \expandafter\expandafter\expandafter\@for
+ \expandafter\expandafter\expandafter\@tempa
+ \expandafter\expandafter\expandafter:%
+ \expandafter\expandafter\expandafter=%
+ \csname tocstyle@commandlist@#1\endcsname
+ \do{%
+ \expandafter\let\csname \@tempa\endcsname\relax
+ }%
+% \end{macrocode}
+% So there are no more known features for this TOC.
+% \begin{macrocode}
+ \expandafter\let\csname tocstyle@commandlist@#1\endcsname\relax
+ \fi
+% \end{macrocode}
+% Activate all known features for this style and TOC
+% \begin{macrocode}
+ \@usetocstyle{#2}%
+ \let\settocfeature\@settocfeature
+ \let\settocstylefeature\@settocstylefeature
+ }%
+}
+\newcommand*{\@usetocstyle}[1]{%
+ \csname tocstyle@style@#1\endcsname
+}
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@featurelist}
+% Comma seperated list of all known features
+% \begin{macrocode}
+\newcommand*{\tocstyle@featurelist}{%
+ pagenumberhook,entryhook,dothook,entryvskip,leaders,raggedhook,%
+ spaceafternumber,parfillskip,pagenumberbox,%
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \begin{macro}{\tocstyle@feature@pagenumberhook}
+% \begin{macro}{\tocstyle@feature@pagenumberhook}
+% \begin{macro}{\tocstyle@feature@entryhook}
+% \begin{macro}{\tocstyle@feature@dothook}
+% \begin{macro}{\tocstyle@feature@entryvskip}
+% \begin{macro}{\tocstyle@feature@leaders}
+% \begin{macro}{\tocstyle@feature@parfillskip}
+% \begin{macro}{\tocstyle@feature@raggedhook}
+% \begin{macro}{\tocstyle@feature@spaceafternumber}
+% \begin{macrocode}
+\newcommand*{\tocstyle@feature@pagenumberhook}{}
+\let\tocstyle@feature@pagenumberhook\relax
+\newcommand*{\tocstyle@feature@pagenumberbox}{}
+\let\tocstyle@feature@pagenumberbox\relax
+\newcommand*{\tocstye@feature@entryhook}{}
+\let\tocstyle@feature@entryhook\relax
+\newcommand*{\tocstye@feature@dothook}{}
+\let\tocstyle@feature@dothook\relax
+\newcommand*{\tocstye@feature@entryvskip}{}
+\let\tocstyle@feature@entryvskip\relax
+\newcommand*{\tocstye@feature@leaders}{}
+\let\tocstyle@feature@leaders\relax
+\newcommand*{\tocstye@feature@parfillskip}{}
+\let\tocstyle@feature@parfillskip\relax
+\newcommand*{\tocstye@feature@raggedhook}{}
+\let\tocstyle@feature@raggedhook\relax
+\newcommand*{\tocstye@feature@spaceafternumber}{}
+\let\tocstyle@feature@spaceafternumber\relax
+% \end{macrocode}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+% \end{macro}
+%
+% \begin{macro}{\iftochasdepth}
+% Uses \Macro{tocstyle@depthlist@}\meta{TOC} to test, if the TOC has the depth
+% already.
+% \begin{macrocode}
+\newcommand*{\iftochasdepth}[2]{%
+ \begingroup
+ \expandafter\let\expandafter\@tempa\csname tocstyle@depthlist@#1\endcsname
+ \ifx\@tempa\relax
+ \aftergroup\@secondoftwo
+ \else
+ \@expandtwoargs\in@{,#2,}{,\@tempa}%
+ \expandafter\aftergroup\ifin@
+ \@firstoftwo
+ \else
+ \@secondoftwo
+ \fi
+ \fi
+ \endgroup
+}
+% \end{macrocode}
+% \end{macro}
+%
+% \subsubsection{Defining Some TOC Styles}
+%
+% \begin{macrocode}
+\newtocstyle{standard}{%
+ \settocfeature{dothook}{\normalfont}%
+ \settocfeature[-1]{entryhook}{\bfseries}%
+ \settocfeature[-1]{entryvskip}{2.25em\@plus\p@}%
+ \settocfeature[-1]{leaders}{\hfill}%
+ \settocfeature[0]{entryvskip}{1em\@plus\p@}%
+ \settocfeature[0]{leaders}{\hfill}%
+ \settocfeature[0]{entryhook}{%
+ \begingroup
+ \edef\@tempa{toc}%
+ \ifx\tocstyleAliasTOC\@tempa\aftergroup\bfseries\fi
+ \endgroup
+ }%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname l@chapter\endcsname\relax
+ \settocfeature[1]{entryvskip}{1em\@plus\p@}%
+ \settocfeature[1]{leaders}{\hfill}%
+ \settocfeature[1]{entryhook}{%
+ \begingroup
+ \edef\@tempa{toc}%
+ \ifx\tocstyleAliasTOC\@tempa\aftergroup\bfseries\fi
+ \endgroup
+ }%
+ \fi
+}
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname sectfont\endcsname\relax
+ \newtocstyle{KOMAScript}{%
+ \settocfeature{dothook}{\normalfont}%
+ \settocfeature[-1]{entryhook}{\sffamily\bfseries}%
+ \settocfeature[-1]{entryvskip}{2.25em\@plus\p@}%
+ \settocfeature[0]{entryvskip}{1em\@plus\p@}%
+ \settocfeature[0]{leaders}{\hfill}%
+ \settocfeature[0]{entryhook}{%
+ \begingroup
+ \edef\@tempa{toc}%
+ \ifx\tocstyleAliasTOC\@tempa\aftergroup\sffamily\bfseries\fi
+ \endgroup
+ }%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname l@chapter\endcsname\relax
+ \settocfeature[1]{entryvskip}{1em\@plus\p@}%
+ \settocfeature[1]{leaders}{\hfill}%
+ \settocfeature[1]{entryhook}{%
+ \begingroup
+ \edef\@tempa{toc}%
+ \ifx\tocstyleAliasTOC\@tempa\aftergroup\sffamily\bfseries\fi
+ \endgroup
+ }%
+ \fi
+ }
+\else
+ \newtocstyle{KOMAScript}{%
+ \settocfeature{dothook}{\normalfont}%
+ \settocfeature[-1]{entryhook}{\sectfont}%
+ \settocfeature[-1]{entryvskip}{2.25em\@plus\p@}%
+ \settocfeature[0]{entryvskip}{1em\@plus\p@}%
+ \settocfeature[0]{leaders}{\hfill}%
+ \settocfeature[0]{entryhook}{%
+ \begingroup
+ \edef\@tempa{toc}%
+ \ifx\tocstyleAliasTOC\@tempa\aftergroup\sectfont\fi
+ \endgroup
+ }%
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname l@chapter\endcsname\relax
+ \settocfeature[1]{entryvskip}{1em\@plus\p@}%
+ \settocfeature[1]{leaders}{\hfill}%
+ \settocfeature[1]{entryhook}{%
+ \begingroup
+ \edef\@tempa{toc}%
+ \ifx\tocstyleAliasTOC\@tempa\aftergroup\sectfont\fi
+ \endgroup
+ }%
+ \fi
+ }
+\fi
+\newtocstyle[KOMAScript]{classic}{%
+ \settocfeature{pagenumberhook}{\normalfont\normalcolor}%
+ \settocfeature{raggedhook}{\raggedright}%
+}
+\newtocstyle[classic][leaders]{allwithdot}{}
+\newtocstyle[allwithdot]{noonewithdot}{%
+ \settocfeature{leaders}{\hfill}%
+}
+\newtocstyle[classic][leaders]{nopagecolumn}{%
+ \settocfeature{leaders}{\quad}%
+ \settocfeature{parfillskip}{\z@ plus 1fil}%
+ \settocfeature{pagenumberbox}{\hbox}%
+}
+% \end{macrocode}
+%
+% \subsubsection{Defining Some TOC Styles}
+%
+% Loading a optional configuration file.
+% \begin{macrocode}
+\InputIfFileExists{tocstyle.cfg}{%
+ \PackageInfo{tocstyle}{using tocstyle.cfg}%
+}{%
+ \PackageInfo{tocstyle}{no tocstyle.cfg found}%
+}
+% \end{macrocode}
+%
+% \iffalse
+%</package>
+% \fi
+%
+% \Finale
+%
+\endinput
+%
+% end of file `tocstyle.dtx'
+%%% Local Variables:
+%%% mode: doctex
+%%% TeX-master: t
+%%% End: