summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/koma-script/scrguide/scrguide2.tex
blob: 3c65a16c78c8afdc9e4e6d8d34030a4fd2510201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
\ProvidesFile{scrguide2.tex}[2004/09/22 KOMA-Script Anleitung/Manual]
\newcommand*{\mainfilename}{scrguide2.tex}
% ============================================================================
% scrguide2.tex 
% Copyright (c) 2001-2002 Markus Kohm and the authors.
%
% This file is part of the LaTeX2e KOMA-Script-Bundle
%
% This file can be redistributed and/or modified under the terms of the LaTeX
% Project Public License Version 1.0 distributed together with this file. See
% LEGAL.TXT or LEGALDE.TXT.
%
% This bundle is written specialy for use at german-language. So the main
% documentation is german. There may also be an english documentation. See
% readme.txt, if you search for it.
% ----------------------------------------------------------------------------
% scrclass2.tex
% Copyright (c) 2001-2002 Markus Kohm und bei den weiteren Autoren.
%
% Diese Datei ist Teil des LaTeX2e KOMA-Script-Pakets.
%
% Diese Datei kann nach den Regeln der LaTeX Project Public Licence 
% Version 1.0, wie sie zusammen mit dieser Datei verteilt wird,
% weiterverbreitet und/oder modifiziert werden. Siehe dazu auch LEGAL.TXT oder
% LEGALDE.TXT.
%
% Dieses Paket ist fuer den deutschen Sprachraum konzipiert. Daher ist auch
% diese Anleitung komplett in Deutsch. Moeglicherweise existiert auch eine
% englische Version der Anleitung. Falls Sie eine solche benoetigen, schauen
% Sie bitte in liesmich.txt nach, ob eine solche vorhanden ist.
% ============================================================================
%
% Module:    Hauptdokument
% Authors:   Markus Kohm (MJK) <markus.kohm@gmx.de>
% Contents:  Alle Definitionen sowie das Grundgeruest des Dokuments.
% Languages: English, Deutsch
% Characterset of comments:
%            US-ASCII
%

% ----------------------------------------------------------------------------
% Predefinition
% Vorabdefinition
% ----------------------------------------------------------------------------
\newcommand*{\thisfilename}{\mainfilename}

% Date of the newest file will become docdate.
\newcommand{\OrigProvidesFile}{}
\let\OrigProvidesFile\ProvidesFile
\makeatletter
\newcommand*{\@SplitDate}{}
\def\@SplitDate#1/#2/#3 #4\eol{%
  \def\thisisodate{#1-#2-#3}%
  \count0=#1#2#3\relax
  \ifnum \count0>\maxdate\relax
    \xdef\maxdate{\the\count0}%
    \xdef\docdate{\thisisodate}
  \fi
  \immediate\write\@auxout{%
    \string\gdef\string\maxdate{\maxdate}%
    \string\gdef\string\docdate{\docdate}
  }%
}
\renewcommand*{\ProvidesFile}[1]{%
  \renewcommand*{\thisfilename}{#1}%
  \OrigProvidesFile{#1}%
}
\newcommand*{\SplitFileName}{}
\def\SplitFileName#1.#2\eol{\def\@tempa{#1}\def\@tempb{#2}}%
\def\@providesfile#1[#2]{%
  \wlog{File: #1 #2}%
  \edef\@tempa{#1}%
  \expandafter\xdef\csname ver@\@tempa\endcsname{#2}%
  \expandafter\SplitFileName\@tempa\eol
  \def\@tempa{tex}\ifx\@tempa\@tempb
    \edef\@tempa{\csname ver@\thisfilename\endcsname}%
    \expandafter\@SplitDate\@tempa\eol
  \fi
  \endgroup
}
\AtBeginDocument{%
  \renewcommand*{\thisfilename}{\mainfilename}%
   {%
    \edef\@tempa{\csname ver@\thisfilename\endcsname}%
    \expandafter\@SplitDate\@tempa\eol
  }%
}
\makeatother
\newcommand*{\docdate}{\AtEndDocument{%
    \typeout{Document Warning: Rerun to get \string\docdate\space right!}}}
\newcommand*{\maxdate}{0}

% ----------------------------------------------------------------------------
% Language dependencies
% Sprachabhaengigkeiten

% The LaTeX names of the supported languages
% Die LaTeX namen der unterstuetzen Sprachen
\providecommand{\NameGerman}{ngerman}% Neue Deutsche Rechtschreibung
\providecommand{\NameEnglish}{english}

% Primary language is german
% Die Primaere Dokumentation wird auf deutsch erstellt
\ifx\UseLanguage\undefined\let\UseLanguage\NameGerman\fi

% Some names, if not already defined
\providecommand*{\LanguageShortcut}{}
\providecommand{\AutoRefTextFarAway}{auf }
\providecommand{\MyPrelimText}{%
  Diese Dokumentation ist im Entwurfsstadium (\thisfilename:
  \docdate).}  
\providecommand{\SubTitleName}{ein wandelbares \LaTeXe{}-Paket}
\providecommand{\ExampleName}{Beispiel}
\providecommand{\ClassName}{Klasse}
\providecommand{\PackageName}{Paket}
\providecommand{\EnvironmentName}{Umgebung}
\providecommand{\OptionName}{Option}
\providecommand{\MacroName}{Befehl}
\providecommand{\CounterName}{Z\"ahler}
\providecommand{\LengthName}{L\"ange}
\providecommand{\PseudoPrefix}{Pseudo-}
\providecommand{\PLengthName}{\PseudoPrefix\LengthName}
\providecommand{\VariableName}{Variable}
\providecommand{\PagestyleName}{Seitenstil}
\providecommand{\StyleName}{Stil}
\providecommand{\FloatstyleName}{float-\StyleName}
\providecommand{\FileName}{Datei}
\providecommand{\TitleText}{Das\ \KOMAScript-Paket}
\providecommand{\ManualName}{Anleitung}
\providecommand{\ManualFromText}{Autoren der Anleitung:}
\providecommand{\NoteName}{Notizen}
\providecommand{\FontElementName}{Element}
\providecommand{\genIndexName}{Allgemeiner Index}
\providecommand{\cmdIndexName}{Index der Befehle, Umgebungen und
  Variablen}
\providecommand{\cmdIndexShortName}{Index der Befehle etc.}
\providecommand{\lenIndexName}{Index der L\"angen und Z\"ahler}
\providecommand{\lenIndexShortName}{Index der L\"angen etc.}
\providecommand{\elmIndexName}{Index der Elemente mit
  M\"oglichkeit zur Schriftumschaltung}
\providecommand{\elmIndexShortName}{Index der Elemente}
\providecommand{\filIndexName}{Index der Dateien, Klassen und Pakete}
\providecommand{\filIndexShortName}{Index der Dateien etc.}
\providecommand{\optIndexName}{Index der Klassen- und
  Paketoptionen}
\providecommand{\optIndexShortName}{Index der Optionen}
\providecommand{\ChangeListName}{\"Anderungsliste}
\providecommand{\LegalText}{%
  Haftungsauschluss:\\
  Es wird keinerlei Haftung \"ubernommen f\"ur irgendwelche Sch\"aden,
  die aus der Benutzung der Bestandteile des hier beschriebenen
  Paketes resultieren. Siehe hierzu auch den Text der Datei
  \File{LEGALDE.TXT}, die zwingender Bestandteil des Paketes ist.}
\providecommand{\LegalTextB}{%
  Vorabversion ohne Optimierung des Seitenumbruchs\par
  \vspace{\baselineskip}
  Diese Anleitung ist als Bestandteil von \KOMAScript{} frei
  im Sinne der \LaTeX{} Project Public License Version 1.0. Eine f\"ur
  \KOMAScript{} g\"ultige deutsche \"Ubersetzung liegt \KOMAScript{} in
  der Datei \File{LEGALDE.TXT} bei. Diese Anleitung -- auch in
  gedruckter Form -- darf nur zusammen mit den \"ubrigen Bestandteilen
  von \KOMAScript{} weitergegeben und verteilt werden. Eine Verteilung
  der Anleitung unabh\"angig von den \"ubrigen Bestandteilen von
  \KOMAScript{} bedarf der ausdr\"ucklichen Genehmigung der Autoren.}
\providecommand{\WhoIsWho}{%
  Die folgenden Personen waren an \KOMAScript{} auf die eine oder
  andere Art beteiligt: \textbf{Stefan Brill} (Korrektur),
  \textbf{Christian Buss} (Korrektur), \textbf{Dr.~Engelbert Buxbaum}
  (\"Ubersetzung), \textbf{Jo\~ao Canas Ferreira} (\"Ubersetzung),
  \textbf{Michael Dewey} (Sprachanpassung), \textbf{Luzia Dietsche}
  (Beta-Test), \textbf{Georg Grandke} (\"Ubersetzung, Korrektur),
  \textbf{Ralph J.  Hangleiter} (Sprachanpassung), \textbf{Henk
    Jongbloets} (Sprachanpassung), \textbf{Axel Kielhorn}
  (\Class{scrlettr}, \Package{addrconv}, Ideen), \textbf{Markus Kohm}
  (Entwicklung, Dokumentation, Übersetzung, Support, Release),
  \textbf{Torsten Kr\"uger} (Beta-Test, Korrektur, kritische Fragen,
  Ideen, Motor), \textbf{Enrico Kunz} (Dokumentation, Korrektur),
  \textbf{Werner Lemberg} (\"Ubersetzung), \textbf{Branka
    Lon\v{c}arevi\'c} (Sprachanpassung), \textbf{Alejandro
    L\'opez-Valencia} (Sprachanpassung), \textbf{Colin Marquardt}
  (\"Ubersetzung), \textbf{Peter Marx} (Release), \textbf{Jens-Uwe
    Morawski} (Dokumentation, \"Ubersetzung, Koordination, Korrektur,
  Ideen, Motor), \textbf{Simone Naldi} (Sprachanpassung),
  \textbf{Frank Neukam} (\textsc{Script} und \textsc{Script2.0}),
  \textbf{Thomas Neumann} (Dokumentation, Korrektur), \textbf{Rolf
    Niepraschk} (Korrektur), \textbf{Carsten Schurig} (Beta-Test),
  \textbf{Axel Sommerfeldt} (Dokumentation) sowie diverse nette
  Menschen, die Bugreports oder aufmunternde Mails geschrieben,
  Verbesserungen und Erweiterungen gew\"unscht, beschrieben und
  teilweise auch angeboten haben. Wer auch immer meint, ich habe ihn
  oder sie vergessen, m\"oge sich auf der Stelle bei mir melden.}
\providecommand{\IndexPreambleText}{%
  Fett hervorgehobene Zahlen geben die Seiten der Erkl\"arung zu einem
  Stichwort wieder. Normal gedruckte Zahlen verweisen hingegen auf
  Seiten mit zus\"atzlichen Informationen zum jeweiligen Stichwort.}
\providecommand{\ChangeListPreambleText}{%
  Sie finden im Folgenden eine Auf\/listung aller wesentlichen
  \"Anderungen der Benutzerschnittstelle im \KOMAScript-Paket der
  neueren Zeit. Die Liste ist sortiert nach Klassen beziehungsweise
  Paketen und Versionen. Zu jeder Version ist dann jeweils angegeben,
  auf welchen Seiten dieser Dokumentation die \"Anderungen zu finden
  sind. Auf den entsprechenden Seiten finden Sie dazu passende
  Randmarkierungen.}  
\providecommand{\CTANserver}{ftp.dante.de}
\providecommand{\BibPreambleText}{%
  Sie finden im Folgenden eine ganze Reihe von Literaturangaben. Auf
  all diese wird im Text verwiesen. In vielen F\"allen handelt es sich
  um Dokumente oder ganze Verzeichnisse, die im Internet verf\"ugbar
  sind. In diesen F\"allen ist statt eines Verlages eine URL angegeben.
  Wird auf ein \LaTeX-Paket verwiesen, so findet der Verweis in der
  Regel in der Form \glqq \url{CTAN://}\emph{Verweis}\grqq{} statt.
  Der Pr\"afix \glqq \url{CTAN://}\grqq{} steht dabei f\"ur das
  \TeX-Archiv eines jeden CTAN-Servers oder -Spiegels. Sie k\"onnen
  den Pr\"afix beispielsweise durch 
  \url{ftp://\CTANserver/tex-archive/} ersetzen.  Bei
  \LaTeX-Paketen ist au\ss erdem zu beachten, dass versucht wurde,
  die Version anzugeben, auf die im Text Bezug genommen wurde. Bei
  einigen Paketen war es mehr ein Ratespiel, eine einheitliche
  Versionsnummer und ein Erscheinungsdatum zu finden. Auch muss die
  angegebene Version nicht immer die neueste verf\"ugbare Version sein.
  Wenn Sie sich ein Paket neu besorgen und installieren, sollten Sie
  jedoch zun\"achst immer die aktuelle Version ausprobieren. Bevor Sie
  ein Dokument oder Paket von einem Server herunterladen, sollten Sie
  au\ss erdem \"uberpr\"ufen, ob es sich nicht bereits auf Ihrem
  Rechner befindet.}
% >>> BEGIN layout.tex TEXT-SAMPLES, german
%  CHANGES ONLY BY THE AUTHOR OF layout.tex
%  (1) example text command; the default definition (50) returns
%  the whole text.
\providecommand{\XmpText}[1][50]{%
  \ifnum #1<51
    Dieser Blindtext wird gerade von 130 Millionen Rezeptoren
    Ihrer Netzhaut erfasst.
    \ifnum #1>1
      Die Zellen werden dadurch in einen Erregungszustand versetzt,
      \ifnum #1>2
        der sich vom Sehnerv in den hinteren Teil Ihres
        \ifnum #1>3
          Gehirns ausbreitet.
          Von dort aus \"ubertr\"agt sich die Erregung in
          Sekundenbruchteilen auch in andere Bereiche Ihres
          Gro\ss hirns.
          Ihr Stirnlappen wird stimuliert.
          Von dort aus gehen jetzt Willensimpulse aus, die
    \fi\fi\fi
  \fi
  \ifnum #1>49
    Ihr zentrales Nervensystem in konkrete Handlungen umsetzt.
    Kopf und Augen reagieren bereits.
    Sie folgen dem Text, nehmen die darin enthaltenen Informationen
    auf und leiten diese \"uber den Sehnerv weiter.
  \fi}
%
% (2) the next two commands are language-dependent, since
% in some languages additional commands may required
\providecommand{\XmpTopText}{\XmpText[3]}
\providecommand{\XmpBotText}{\XmpText[2]}
% (3) Randnotizen/margin notes
\providecommand{\XmpMarginTextA}{Netzhaut}
\providecommand{\XmpMarginTextB}{(\textit{Retina})}
% (4) scrpage Markierungen/marks
\providecommand{\ScrpageMark}{\marginline{\small\sffamily\slshape scrpage}}
\providecommand{\ScrpageNote}{\marginline{\small\sffamily\slshape scrpage!}}
%
% <<< END layout.tex TEXT-SAMPLES

% Laden der Kapitel
% Load chapters
\providecommand*{\LoadChapters}{%
  \include{einleit}  % Einleitung 
  \include{satzspgl} % Der Satzspiegel mit typearea
  \include{hauptcls} % Die Hauptklassen scrbook, scrreprt, scrartcl
  \include{layout}   % Kopf- und Fusszeilen mit scrpage(2)
  \include{datmzeit} % scrdate und scrtime
  \include{brief}    % Die scrlettr Klasse
  \include{adressen} % scraddr
  \include{adrkonv}  % Adresskonvertierung mit addrconv
  \include{datladen} % Paketabh"angigkeiten mit scrlfile beherrschen
}

% End of language dependencies
% Ende der Sprachabhaengigkeiten
% ----------------------------------------------------------------------------

% ----------------------------------------------------------------------------
% Class and packages / Klasse und Pakete
% You should only use classes and packages from KOMA-Script or base or tools.
% Everything else should be done writing your own macros (see below).
% Nach Moeglichkeit sollten nur solche Klassen und Pakete verwendet werden,
% die entweder zu KOMA-Script oder zu base oder tools gehoeren. Alles andere
% sollte notfalls durch eigene Makrodefinitionen (s. u.) abgedeckt werden.

\documentclass[%
  \UseLanguage,%     language setting, used by many packages
  pagesize,%         write pagesize to DVI or PDF
  10pt,%             use this font size
  a5paper,%          use ISO A5
  headinclude,%      head is par of type area
  1headlines,%       need only one line for the head
  DIV15,%            same value as with headexclude
%  DIVcalc,%          typearea has to calculate DIV for good linewidth
  bibtotoc,%         write bibliography-chapter to table of contents
  idxtotoc,%         write index-chapter to table of contents
  cleardoubleplain,% \cleardoublepage generates pages with pagestyle plain
  smallheadings,%    use small version of headings (better at A5)
  listsleft,%        improved list of tables
  final%             final version
%  draft%             draft version
]{scrbook}

\usepackage[latin1]{inputenc}
\usepackage{%
  scrdate,scrtime,%  need by the chapter about them
  varioref,%         posibility of better references
  ae,%               hope we can change this soon
  babel,%            we use different languages
  graphicx,%
%  array,%
%  longtable,%
  makeidx%           must be to create the index
}

\begingroup
  \def\KOMAScript{KOMA-Script}
  \xdef\PDFTitleText{\TitleText}
\endgroup
\ifx\BUCH\undefined\else\InputIfFileExists{scrbook}{}{}\fi
\ifpdfoutput{%
  \usepackage[pdftex,bookmarks,%
              pdfcreator={LaTeX2e, KOMA-Script (scrbook), hyperref},%
              pdfkeywords={TeX LaTeX KOMA-Script scrbook scrreprt
                           scrartcl scrlttr2 typearea scrtime scrdate
                           scraddr scrpage scrpage2 scrlfile},%
              pdftitle=\PDFTitleText]{hyperref}
}{% Make shure, we're using hypertex not dvips
  \usepackage[hypertex,bookmarks]{hyperref}
}

\providecommand*{\eTeX}{\ensuremath{\varepsilon}-\TeX}

% Add \autopageref to hyperref:
\makeatletter
\DeclareRobustCommand{\autopageref}[1]{%
  \expandafter\auto@setpageref\csname r@#1\endcsname
  \@secondoffive
  {#1}%
}

\newcommand*{\auto@setpageref}[3]{%
  \@safe@activestrue
  \ifx#1\relax
    \protect\G@refundefinedtrue
    \nfss@text{\reset@font\bfseries ??}%
    \@latex@warning{%
      Reference `#3' on page \thepage \space undefined%
    }%
  \else
    \def\@currentHtag{\pageautorefname~}%
    \hyper@@link
      {\expandafter\@fifthoffive#1}%
      {\expandafter\@fourthoffive#1\@empty\@empty}%
%      {\@currentHtag\expandafter#2#1\@empty\@empty\null}%
%      {\expandafter\@fifthoffive#1}%
%      {page.\expandafter\@secondoffive#1\@empty\@empty}%
      {\@currentHtag\expandafter#2#1\@empty\@empty\null}%
  \fi
  \@safe@activesfalse
}

\AtBeginDocument{\providecommand*{\pageautorefname}{\pagename}}

\def\test@reftype#1.#2\\{%
  \test@@reftype#1*\\%
}
\def\test@@reftype#1*#2\\{%
  \@ifundefined{#1autorefname}{%
    \@ifundefined{#1name}{%
      \def\@currentHtag{}%
      \@latex@warning{no tag name for #1 at \the\inputlineno}%
    }{%
      \def\@currentHtag{\csname#1name\endcsname~}%
    }%
  }{%
    \def\@currentHtag{\csname#1autorefname\endcsname~}%
  }%
}
\makeatother

% autoname \subsection, \subsubsection ... same like \section
\providecommand*{\autorefnametillsection}{%
  \let\subsectionautorefname=\sectionautorefname
  \let\subsubsectionautorefname=\sectionautorefname
  \let\paragraphautorefname=\sectionrefname
  \let\subparagraphautorefname=\sectionrefname
  % shouldn't be here, but it is easy this way:
  \def\autoreftextfaraway##1{\AutoRefTextFarAway~\autopageref{##1}}%
}
\makeatletter
\addto\captionsenglish{\autorefnametillsection}
\addto\captionsngerman{\autorefnametillsection}
\AtBeginDocument{\autorefnametillsection}
\makeatother

% Add \autovref to varioref:
\makeatletter
\DeclareRobustCommand\autovref{\@ifstar
   {\let\vref@space\relax\autovr@f}%
   {\let\vref@space\nobreakspace\autovr@f}}
\def\autovr@f#1{{%
  \let\reftextfaraway\autoreftextfaraway
  \leavevmode\unskip\vref@space
  \autoref{#1}%
  \@vpageref[\unskip]{#1}%
}}
\makeatother

% Make CTAN:// be an alias of ftp://\CTANserver/tex-archive/
\makeatletter
\def\url@#1{\expandafter\url@@#1\@nil}
\def\url@@#1://#2\@nil{%
  \def\@tempa{#1}\def\@tempb{CTAN}\ifx\@tempa\@tempb
    \hyper@linkurl{\Hurl{#1://#2}}{ftp://\CTANserver/tex-archive/#2}%
  \else
    \hyper@linkurl{\Hurl{#1://#2}}{#1://#2}%
  \fi
}
\makeatother

\ifx\UseLanguage\NameGerman
% hyphenation
% Trennung
  \hyphenation{%
    Stan-dard-an-wei-sung Stan-dard-an-wei-sung-en 
    Da-tei-na-me Da-tei-na-men Da-tei-na-mens
    Pa-pier-rand Pa-pier-ran-des
  }
\fi

\ifdim\overfullrule>0pt
  \usepackage{showkeys,prelim2e}% Draft only / nur im Entwurfsstadium
                                % Hinweis: Mit showkeys funktioniert
                                %          der haengende Einzug (z. B.
                                %          in Bildunterschriften) nicht!

  \renewcommand{\PrelimText}{%
    \textnormal{%
      \footnotesize%
      \PrelimTextStyle%
      \PrelimWords{}}%
    } 
  \renewcommand{\PrelimTextStyle}{\sffamily\itshape}
  \renewcommand{\PrelimWords}{\MyPrelimText}
%
\fi

\usepackage{mparhack}
% End of class and packages.
% Ende der Klasse und Pakete.
% ----------------------------------------------------------------------------

% ----------------------------------------------------------------------------
% The markup commands of the hole document.
% Die im Gesamtdokument verwendeten Markup-Anweisungen.
%
% REMARK:  Normaly you should not pack as much markup commands and
%          definitions into the preamble. And you never should
%          redefine or use internal macros of LaTeX kernel, classes or
%          packages. It would be better to write your own package or
%          class instead of.
%          There is only one reason not to do so at this manual: We
%          wanted to avoid disappointment of the usual user, having
%          one more class or package at the bundle only used by this
%          manual.
%          Many of the following macros are stolen from other
%          packages or classes, which where made to document packages
%          and classes
%
% HINWEIS: Normalerweise sollte man die Preambel eines Dokuments nicht derart
%          Markup-Anweisungen und Definitionen vollstopfen. Schon gar nicht
%          sollte man interne Makros definieren oder verwenden. Stattdessen
%          ist es sinnvoller, ein eigenes Paket (engl. package) oder eine
%          eigene Klasse (engl. class) hierfuer zu erstellen.
%          Im Falle dieser Anleitung wurde dies nur aus einem einzigen Grund
%          nicht getan: Der reine Anwender sollte nicht dadurch verwirrt
%          werden, dass eine weitere Klasse oder ein weiteres Paket existiert,
%          das jedoch nicht dokumentiert ist.
%          Diverse Makros, die im folgenden definiert sind, entstammen anderen
%          Paketen und Klassen, die speziell fuer die Dokumentation von
%          Paketen und Klassen erstellt wurden.

% New, only defined for scrguide:
% Neu, fuer den scrguide:

\newcommand*{\textsfrm}[1]{%
  \begingroup
    \edef\@tempa{\sfdefault}%
    \ifx\@tempa\f@family\textrm{#1}\else\textsf{#1}\fi
  \endgroup
}

\DeclareRobustCommand*{\Class}[1]{\textsfrm{#1}}
\DeclareRobustCommand*{\Package}[1]{\textsfrm{#1}}
\DeclareRobustCommand*{\File}[1]{\texttt{#1}}

\DeclareRobustCommand{\Script}{\textsc{Script}}
\DeclareRobustCommand{\ScriptII}{\textsc{Script-2}}
\ifx\KOMAScript\undefined%
  \DeclareRobustCommand{\KOMAScript}{\textsf{K\kern.05em O\kern.05em%
      M\kern.05em A\kern.1em-\kern.1em Script}}
\fi

\makeatletter
\DeclareRobustCommand{\BibTeX}{B\kern-.05em%
  % Der folgende Hack stammt aus der Definition des
  % Makros \LaTeX, siehe Datei `ltlogos.dtx' der
  % LaTeX2e-Verteilung.
  \hbox{$\m@th$% %% force math size calculations
    \csname S@\f@size\endcsname \fontsize\sf@size\z@
    \math@fontsfalse\selectfont
    I\kern-.025emB}%
  \kern-.08em%
  \-\TeX%
}
\makeatother

\newcommand*{\Var}[1]{\ensuremath{\textit{#1}}}
\newcommand*{\Const}[1]{\ensuremath{\textrm{#1}}}
\newcommand*{\Unit}[1]{\ensuremath{\,\textrm{#1}}}

\DeclareRobustCommand*{\Macro}[1]{\mbox{\texttt{\char`\\#1}}}
\DeclareRobustCommand*{\Option}[1]{\mbox{\texttt{#1}}}
\DeclareRobustCommand*{\Environment}[1]{\mbox{\texttt{#1}}}
\DeclareRobustCommand*{\Counter}[1]{\mbox{\texttt{#1}}}
\DeclareRobustCommand*{\Length}[1]{\mbox{\texttt{\char`\\#1}}}
\DeclareRobustCommand*{\PLength}[1]{\mbox{\PValue{#1}}}
\DeclareRobustCommand*{\Variable}[1]{\mbox{\PValue{#1}}}
\DeclareRobustCommand*{\FontElement}[1]{\PValue{#1}}% use \mbox?

\DeclareRobustCommand*{\EMail}[1]{\textless #1\textgreater}
\DeclareRobustCommand*{\TextEMail}[1]{{\small\EMail{#1}}}

% - parameter and argument in different cases:
% - Verschiedene Auftreten von Parametern/Argumenten:
\DeclareRobustCommand*{\PName}[1]{\mbox{\textit{#1}}}% Parametername
\DeclareRobustCommand*{\PValue}[1]{\texttt{#1}}% Parameterwert

\DeclareRobustCommand*{\Parameter}[1]{% Parameter/Argument
  \texttt{\{}\PName{#1}\texttt{\}}}
\DeclareRobustCommand*{\OParameter}[1]{% Parameter/Argument optional
  \texttt{[%]
  }\PName{#1}\texttt{%[
    ]}}
\DeclareRobustCommand*{\AParameter}[1]{% Parameter/Argument alternative
  \texttt{(%)
  }\PName{#1}\texttt{%(
    )}}
\DeclareRobustCommand*{\PParameter}[1]{% Parameter/Argument as/als
                                        % part of commands / Befehlsbestandteil
    \texttt{\{#1\}}}

\newenvironment{Example}{%
  \begin{labeling}{{\sectfont\ExampleName:\ }}
  \item[{\sectfont\ExampleName:\ }]}
  {\end{labeling}}

\makeatletter
\newsavebox\ShowOutputBox
\newenvironment{ShowOutput}[1][0pt]{\par
  \begin{lrbox}{\ShowOutputBox}%
    \begin{minipage}{.9\linewidth}%
      \vspace*{\baselineskip}\vspace{-#1}%
}{%
    \end{minipage}
  \end{lrbox}%
  \setlength{\unitlength}{1pt}%
  \setlength{\@tempdima}{\ht\ShowOutputBox}%
  \addtolength{\@tempdima}{\dp\ShowOutputBox}%
  \setlength{\@tempdima}{.75\@tempdima}%
  \edef\MidY{\strip@pt\@tempdima}%
  \addtolength{\@tempdima}{5pt}%
  \edef\HighY{\strip@pt\@tempdima}%
  \addtolength{\@tempdima}{-10pt}%
  \edef\LowY{\strip@pt\@tempdima}%
  \addtolength{\@tempdima}{5pt}%
  \setlength{\@tempdima}{.9\linewidth}\edef\QuadIV{\strip@pt\@tempdima}%
  \setlength{\@tempdima}{.675\linewidth}\edef\QuadIII{\strip@pt\@tempdima}%
  \setlength{\@tempdima}{.45\linewidth}\edef\QuadII{\strip@pt\@tempdima}%
  \setlength{\@tempdima}{.225\linewidth}\edef\QuadI{\strip@pt\@tempdima}%
  \centering
  \begin{picture}(\QuadIV,\MidY)
     \qbezier(0,\MidY)(\QuadI,\HighY)(\QuadII,\MidY)%
     \qbezier(\QuadII,\MidY)(\QuadIII,\LowY)(\QuadIV,\MidY)
     \put(0,0){\makebox(\QuadIV,\MidY)[c]{%
         \scalebox{.75}{\usebox{\ShowOutputBox}}%
       }%
     }%
     \put(0,-5){\line(0,1){\HighY}}%
     \put(\QuadIV,-5){\line(0,1){\HighY}}%
     \qbezier(0,-5)(\QuadI,0)(\QuadII,-5)%
     \qbezier(\QuadII,-5)(\QuadIII,-10)(\QuadIV,-5)
  \end{picture}\par  
  \vspace{1ex plus 1ex minus .5ex}%
}
\makeatother

\newenvironment{Explain}{%
  \small\sffamily
}{\normalcolor\par}


% Aenderungsmarkierungen f"ur Dinge, die ab einer bestimmten Version
% neu sind oder geaendert wurden. Rein textuelle "Anderungen werden
% hier nicht erfasst.
\providecommand*{\ChangedAt}[2]{%
  \marginline{\footnotesize\fbox{\strut#1}}%
  \glossary{#2>#1|indexrm}%
}
\newcommand*{\OnlyAt}[1]{%
  \marginline{\def\and{,\\}\footnotesize #1}%
}
\makeglossary
\makeatletter
\newcommand\printchangelist{\@input@{\jobname.chn}}
\newenvironment{thechangelist}
  {\setchapterpreamble{\ChangeListPreambleText\par\bigskip}
   \addchap{\ChangeListName}
   \markboth{\ChangeListName}{\ChangeListName}
   \setlength{\parindent}{0pt}
   \setlength{\parskip}{0pt plus .3pt}
   \def\and{,\ }
   \let\item\@idxitem}
  {\clearpage}
\makeatother

% >>> BEGIN layout.tex EXAMPLE-COMMANDS
%  The commands can also be used in other parts of the guide,
%  in order make some examples better readable.
%  CHANGES ONLY BY THE AUTHOR OF layout.tex
%
\newenvironment{XmpTopPage}
 {\begin{center}\setlength{\unitlength}{1mm}\begin{picture}(100,35)%
   \thinlines
     \qbezier(0,5)(25,7)(50,5)\qbezier(50,5)(75,3)(100,5)
        \put(0,5){\line(0,1){30}}
   \thicklines
        \put(100,5){\line(0,1){30}}\put(0,35){\line(1,0){100}}
   \small}{\end{picture}\end{center}\vspace{-1.5\baselineskip}}
%
\newenvironment{XmpBotPage}
 {\begin{center}\setlength{\unitlength}{1mm}\begin{picture}(100,37)%
   \thinlines
     \qbezier(0,35)(25,37)(50,35)\qbezier(50,35)(75,33)(100,35)
        \put(0,5){\line(0,1){30}}
   \thicklines
        \put(100,5){\line(0,1){30}}\put(0,5){\line(1,0){100}}
   \small}{\end{picture}\end{center}\vspace{-1.5\baselineskip}}
%
\newcommand{\XmpSetText}[2][\XmpText]{%
        \put(#2){\makebox(0,0)[tl]{\parbox{70mm}{#1}}}}
%
\newcommand{\XmpMarginNote}[1]{%
        \put(#1){\makebox(0,5)[tl]{\scriptsize\XmpMarginTextA}}
        \put(#1){\makebox(0,5)[bl]{\scriptsize\XmpMarginTextB}}}
%
\newcommand{\XmpRule}[2]{\put(#1){\line(1,0){#2}}}
%
\newcommand{\XmpHeading}[3][\KOMAScript\hfill 3]{%
        \put(#2){\makebox(#3,0)[l]{#1}}}
%
% <<< END layout.tex EXAMPLE-COMMANDS


% Change defaults of KOMA-Script
% Voreinstellungen von KOMA-Script aendern:
\renewcommand*{\sectfont}{\normalfont\normalcolor\sffamily\bfseries}
\renewcommand*{\capfont}{\normalfont\normalcolor\small}
\renewcommand*{\caplabelfont}{\normalfont\normalcolor\sffamily\bfseries}

% Bibliography
\newcommand*{\urlprefix}{}

% From ltxguide.cls with some modifications:
% - Load config file, if found. This is some early, but must be to
%   avoid problems with redefinitions at ltxguide.cfg.
% Aus ltxguide.cls uebernommen und teilweise modifiziert:
% - Konfigurationsdatei laden, falls vorhanden. Dies geschieht genaugenommen
%   wesentlich zu frueh. Allerdings koennte es sonst zu erheblichen Problemen
%   kommen, falls in ltxguide.cfg kritische Redefinitionen vorgenommen werden.
\InputIfFileExists{ltxguide.cfg}{\typeout{``ltxguide.cfg'' loaded.}}{}

% - macros to declare macros, environments and options.
% - Makros zur Deklaration von Makros, Umgebungen, Optionen.
\newenvironment{Declaration}%
    {\par\small\addvspace{2\baselineskip plus .5\baselineskip}%
     \vspace{-\baselineskip}%
     \noindent\hspace{-1em}%
     \begin{tabular}{|l|}\hline\ignorespaces}%
    {\\\hline\end{tabular}\nobreak\par\nobreak
     \vspace{1.5\baselineskip}\vspace{-\baselineskip}%
     \noindent\ignorespacesafterend}

\iffalse% experimental (needs array-package)
\renewenvironment{Declaration}%
  {\par\small\addvspace{2\baselineskip plus .5\baselineskip}%
    \vspace{-\baselineskip}%
    \noindent
%    \ifthispageodd{%
%      \hspace*{\fill}%
%      \begin{tabular}{@{}r!{\vrule width 1.2pt}}
%      \multicolumn{1}{@{}r@{\vrule width 1.2pt}}
%      {\rule[2ex]{1em}{1.2pt}}\\[-2ex]\ignorespaces%
%    }{%
      \hspace{-1em}%
      \begin{tabular}{!{\vrule width 1.2pt}l@{}}
      \multicolumn{1}{@{\vrule width 1.2pt}l@{}}
      {\rule[2ex]{1em}{1.2pt}}\\[-2ex]\ignorespaces%
%    }%
  }
  {\\\end{tabular}%
%    \ifthispageodd{\hspace{-1em}}{}%
    \nobreak\par\nobreak
    \vspace{1.5\baselineskip}\vspace{-\baselineskip}%
    \noindent\ignorespacesafterend}
\fi

% - Index:
\makeindex % Oh, yes, we want one ...
% ... or maybe more
\newif\ifusemultiindex
\IfFileExists{\jobname-gen.ind}{\usemultiindextrue}{\usemultiindexfalse}
\ifusemultiindex
\makeatletter
\usepackage{multicol}

\newcommand*{\printmultiindex}[3][]{%
  \def\indexname{#2}%
  \ifx\relax#1\relax\let\index@preamble=\relax
  \else\def\index@preamble{#1}%
  \fi
  \label{idx:#3}%
  \@input@{\jobname-#3.ind}%
}
\renewenvironment{theindex}{%
  \setchapterpreamble{\index@preamble}
  \begin{multicols}{2}[\idx@heading\vspace{-1\baselineskip}]%
  \parindent\z@
  \setlength{\parskip}{\z@ \@plus .3\p@}%
  \setlength{\parfillskip}{\z@ \@plus 1fil}%
  \let\item\@idxitem
}{%
  \end{multicols}%
}

\newcommand*{\CrossIndex}[3]{%
  \Index{#1=\UseIndex{#2}\protect#1>#3=\UseIndex{#2}\SeeSign\protect#3}%
}

\renewcommand*{\printindex}{%
  \setchapterpreamble{\index@preamble}%
  \addchap{\indexname}%
  \let\index@preamble=\relax
  \renewcommand*\idx@heading{%
    \addsec{\indexname}%
    \markright{\indexname}%
    \ifx\index@preamble\relax
    \else\index@preamble\let\index@preamble=\relax\fi
  }%
  \printmultiindex{\genIndexName}{gen}%
  \printmultiindex[%
    \CrossIndex{\MacroName}{gen}{\cmdIndexShortName}%
    \CrossIndex{\EnvironmentName}{gen}{\cmdIndexShortName}%
    \CrossIndex{\CounterName}{gen}{\cmdIndexShortName}%
    \CrossIndex{\LengthName}{gen}{\cmdIndexShortName}%
  ]{\cmdIndexName}{cmd}%
  \printmultiindex[%
    \CrossIndex{\LengthName}{gen}{\lenIndexShortName}%
    \CrossIndex{\PLengthName}{gen}{\lenIndexShortName}%
    \CrossIndex{\CounterName}{gen}{\lenIndexShortName}%
  ]{\lenIndexName}{len}%
  \printmultiindex[%
    \CrossIndex{\FontElementName}{gen}{\elmIndexShortName}%
  ]{\elmIndexName}{elm}%
  \printmultiindex[%
    \CrossIndex{\FileName}{gen}{\filIndexShortName}%
    \CrossIndex{\PackageName}{gen}{\filIndexShortName}%
    \CrossIndex{\ClassName}{gen}{\filIndexShortName}%
  ]{\filIndexName}{fil}%
  \printmultiindex[%
    \CrossIndex{\OptionName}{gen}{\optIndexShortName}%
  ]{\optIndexName}{opt}%
}
\makeatother
\fi

\DeclareRobustCommand*{\SeeSign}{\ensuremath{\protect\rightarrow}~}
\newcommand*{\seeindex}[2]{\pageref{idx:#1}}

\newcommand*{\AddSeeIndex}[4]{%
\ifusemultiindex
  \Index[seeindex{#4}]{#1=\UseIndex{#2}#1>#3=\UseIndex{#2}\SeeSign#3}%
\fi
}

\newcommand*{\indexsection}[1]{%
  \ifx\empty#1\empty\else
  \hspace{0pt plus 2fil}{{\sectfont #1}}\hspace{0pt plus
    1fil}\nopagebreak
  \fi
}

\makeatletter
\newcommand*{\IndexSeeAt}[6][\relax]{%
                                % #1 = optional entry note (\PagestyleName)
                                % #2 = Entry
                                % #3 = see-from-index to be used (cmd)
                                % #4 = see-to-index (gen)
                                % #5 = see-to-index name (\genIndexShortName)
                                % #6 = output command (\Macro)
  \ifusemultiindex
%    \edef\@tempa{idx@f@\string#1.\string#2.#3.#4}%
    \edef\@tempa{idx@f@\string#2.#3.#4}%
    \expandafter\ifx\csname \@tempa\endcsname\relax
      \expandafter\gdef\csname \@tempa\endcsname{}%
%      \ifx\relax#1\relax
        \Index[seeindex{#4}]{%
          #2=\UseIndex{#3}#6{#2}>#5=\UseIndex{#3}\SeeSign\protect#5}%
%      \else
%        \Index[seeindex{#4}]{%
%          #2 (#1)=\UseIndex{#3}#6{#2} (\protect#1)>%
%          #5=\UseIndex{#3}\SeeSign\protect#5}%
%      \fi
    \fi
  \fi
}
\makeatother

\newcommand*{\Index}[2][indexother]{\index{#2|#1}}
\newcommand*{\BeginIndex}[3][indexmain]{%
  \expandafter\ifx\csname Index#2\endcsname\relax
    \GenericError{(scrguide)\@spaces\@spaces\@spaces\@spaces}{%
      Document scrguide Error: \string\BeginIndex\space with unknown
      index%
    }{Check the \string\BeginIndex-command or add a new index type
      ``#2''.}{%
      See scrguide2.tex for more information.}%
  \else
    \csname Index#2\endcsname[(%)
      #1]{#3}%
  \fi
  \ignorespaces}
\newcommand*{\EndIndex}[3][indexmain]{%
  \expandafter\ifx\csname Index#2\endcsname\relax
    \GenericError{(scrguide)\@spaces\@spaces\@spaces\@spaces}{%
      Document scrguide Error: \string\EndIndex\space with unknown
      index%
    }{Check the \string\BeginIndex-command or add a new index type
      ``#2''.}{%
      See scrguide2.tex for more information.}%
  \else
    \csname Index#2\endcsname[%(
      )#1]{#3}%
  \fi}

\DeclareRobustCommand*{\UseIndex}[1]{\ignorespaces}

\newcommand*{\DefineSingleIndex}[4][\relax]{%
                                % #1 = optional entry note (\MacroName)
                                % #2 = index macro postfix (Cmd)
                                % #3 = index to be used (cmd)
                                % #4 = output command (\Macro)
  \ifx\relax#1\relax
    % n
    \expandafter\newcommand\expandafter*%
    \csname Index#2\endcsname[2][indexother]{%
      \Index[##1]{##2=\UseIndex{#3}#4{##2}}%
    }%
  \else
    % ne
    \expandafter\newcommand\expandafter*%
    \csname Index#2\endcsname[2][indexother]{%
      \Index[##1]{##2 (#1)=\UseIndex{#3}#4{##2} (\protect #1)}%
    }%
  \fi
}

\newcommand*{\DefineDoubleIndex}[4][\relax]{%
                                % #1 = optional entry note (\PagestyleName)
                                % #2 = index macro postfix (Pagestyle)
                                % #3 = see-from-index to be used (cmd)
                                % #4 = output command (\Macro)
  \ifx\relax#1\relax
    % n,v
    \expandafter\newcommand\expandafter*%
    \csname Index#2\endcsname[2][indexother]{%
      \Index[##1]{##2=\UseIndex{gen}#4{##2}}%
      \IndexSeeAt{##2}{#3}{gen}{\genIndexName}{#4}%
    }%
  \else
    % ne+nu,v
    \expandafter\newcommand\expandafter*%
    \csname Index#2\endcsname[2][indexother]{%
      \Index[##1]{##2 (#1)=\UseIndex{gen}#4{##2} (\protect #1)}%
      \Index[##1]{#1=\UseIndex{gen}\protect#1>##2=\UseIndex{gen}#4{##2}}%
      \IndexSeeAt[#1]{##2}{#3}{gen}{\genIndexName}{#4}%
    }%
  \fi
}

\newcommand*{\DefineTripleIndex}[6][\relax]{%
                                % #1 = optional entry note (\LengthName)
                                % #2 = index macro postfix (Length)
                                % #3 = index to be used (len)
                                % #4 = index name (\lenIndexShortName)
                                % #5 = also-from-index to be used (cmd)
                                % #6 = output command (\Macro)
  \ifx\relax#1\relax
    % v,v,n
    \expandafter\newcommand\expandafter*%
    \csname Index#2\endcsname[2][indexother]{%
      \IndexSeeAt{##2}{gen}{#3}{#4}{#6}%
      \IndexSeeAt{##2}{#5}{#3}{#4}{#6}%
      \Index[##1]{##2=\UseIndex{len}#6{##2}}%
      \IndexSeeAt{##2}{#3}{gen}{\genIndexName}{#4}%
    }%
  \else
    % v+nu,v,ne
    \expandafter\newcommand\expandafter*%
    \csname Index#2\endcsname[2][indexother]{%
      \IndexSeeAt[#1]{##2}{gen}{#3}{#4}{#6}%
      \Index[##1]{#1=\UseIndex{gen}\protect#1>##2=\UseIndex{gen}#6{##2}}%
      \IndexSeeAt[#1]{##2}{#5}{#3}{#4}{#6}%
      \Index[##1]{##2 (#1)=\UseIndex{len}#6{##2} (\protect #1)}%
    }%
  \fi
}

\DefineSingleIndex{Cmd}{cmd}{\Macro}
\DefineDoubleIndex[\PagestyleName]{Pagestyle}{cmd}{\PValue}
\DefineDoubleIndex[\FloatstyleName]{Floatstyle}{cmd}{\PValue}
\DefineTripleIndex[\CounterName]{Counter}
  {len}{\lenIndexShortName}{cmd}{\Counter}
\DefineTripleIndex[\LengthName]{Length}
  {len}{\lenIndexShortName}{cmd}{\Length}
\ifusemultiindex
  \DefineSingleIndex[\EnvironmentName]{Env}{cmd}{\Environment}
  \DefineSingleIndex{Option}{opt}{\Option}
  \DefineSingleIndex[\PackageName]{Package}{fil}{\Package}
  \DefineSingleIndex[\ClassName]{Class}{fil}{\Class}
  \DefineSingleIndex{File}{fil}{\File}
  \DefineSingleIndex[\VariableName]{Variable}{cmd}{\Variable}
  \DefineSingleIndex{FontElement}{elm}{\FontElement}
  \DefineSingleIndex{PLength}{len}{\PLength}
\else
  \DefineDoubleIndex[\EnvironmentName]{Env}{cmd}{\Environment}
  \DefineDoubleIndex{Option}{opt}{\Option}
  \DefineDoubleIndex[\PackageName]{Package}{fil}{\Package}
  \DefineDoubleIndex[\ClassName]{Class}{fil}{\Class}
  \DefineDoubleIndex{File}{fil}{\File}
  \DefineDoubleIndex[\VariableName]{Variable}{cmd}{\Variable}
  \DefineDoubleIndex{FontElement}{elm}{\FontElement}
  \DefineDoubleIndex{PLength}{len}{\PLength}
  \iffalse
  \newcommand*{\IndexPLength}[2][indexother]{%
    \Index[#1]{%
      \PLengthName=\protect\PLengthName>%
      #2=\PLength{#2}}%
    \Index[#1]{%
      #2 (\PLengthName)=%
      \PLength{#2}\hspace{0pt plus .1fil} \penalty100 
      \protect\mbox{(\protect\PLengthName)}}}
  \fi
\fi

\newcommand*{\indexrm}[1]{\textrm{\hyperpage{#1}}}
\newcommand*{\indexother}{}\let\indexother\indexrm
\newcommand*{\indexit}[1]{\textit{\hyperpage{#1}}}
\newcommand*{\indexbf}[1]{\textbf{\hyperpage{#1}}}
\newcommand*{\indexmain}{}\let\indexmain\indexbf
\newcommand*{\indexsl}[1]{\textsl{\hyperpage{#1}}}
\newcommand*{\indexsf}[1]{\textsf{\hyperpage{#1}}}
\newcommand*{\indexsc}[1]{\textsc{\hyperpage{#1}}}
\providecommand*{\hyperpage}[1]{#1}

% End of markup commands
% Ende der Markup Anweisungen.
% ----------------------------------------------------------------------------

% ----------------------------------------------------------------------------
% We want a flushleft bibliography
% Das Literaturverzeichnis soll linksbuendig werden
% ----------------------------------------------------------------------------
\makeatletter
\g@addto@macro\@openbib@code\raggedright
\makeatother
\setbibpreamble{\BibPreambleText\bigskip}

\setindexpreamble{\IndexPreambleText\bigskip}

\InputIfFileExists{koma.scrguide.overload}{}{}

% ----------------------------------------------------------------------------
% ???
% Das Rahmendokument:
\begin{document}

% - The title
% - Der Titel
\ifpdfoutput{%
  \hypersetup{pdfauthor={Markus Kohm, Jens-Uwe Morawski},%
    pdfsubject=\ManualName}}{} 
\ifx\booktitle\undefined
\title{\TitleText} 
\uppertitleback{\LegalText} 
\lowertitleback{\LegalTextB}
\dedication{\sffamily\raggedright{\huge\KOMAScript\\}
  \SubTitleName\\
  \vspace{5\baselineskip plus 1filll}%
  \parbox{\textwidth}{\normalsize\WhoIsWho}}
\author{Frank Neukam\and Markus Kohm\and Axel Kielhorn}
\subject{\ManualName}
\publishers{\textbf{\ManualFromText}\\[1ex]
  Markus Kohm\hfil%
  \hfil Jens-Uwe Morawski}
\date{\docdate}
\maketitle
\else
\booktitle
\fi

% - The lists
% - Die Verzeichnisse
\tableofcontents
%\listoffigures
\listoftables

% - die Kapitel
% - chapters
\LoadChapters

% - Correction after include
% - Korrektur nach include
\renewcommand*{\thisfilename}{\mainfilename}

% - bibliography
% - Literaturverzeichnis
\bibliographystyle{scrguide%
  \ifx\LanguageShortcut\empty\else-\LanguageShortcut\fi}
\bibliography{scrguide}

% - index
% - Index
\makeatletter
\ifx\nochangelist\undefined\printchangelist\fi
\printindex
\makeatother

% This has to be the last thing, so wie do it at \end{document} and
% set this just before \end{document}. The use of the subparagraph
% counter is just a hack.
\AtEndDocument{%
  \newcommand\QuadPages{%
    \setcounter{subparagraph}{\value{page}}%
    \divide\value{subparagraph} by 2\relax%
    \multiply\value{subparagraph} by 2\relax%
    \ifnum\value{subparagraph}=\value{page}\let\QuadPages=\relax
      \null\thispagestyle{empty}\clearpage
    \else\null\newpage\fi
    \QuadPages}
  \clearpage
  \markboth{\NoteName}{\NoteName}\QuadPages
}

\end{document}
% End of ???
% Ende des Rahmendokuments.
% ----------------------------------------------------------------------------

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: