summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/jura/alphanum.sty
blob: f29d2e1e7e3e60e34aedcac69309926e0cbfb79c (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
%%
%% This is file `alphanum.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% jura.dtx  (with options: `package')
%% 
%% IMPORTANT NOTICE:
%% 
%% For the copyright see the source file.
%% 
%% Any modified versions of this file must be renamed
%% with new filenames distinct from alphanum.sty.
%% 
%% For distribution of the original source see the terms
%% for copying and modification in the file jura.dtx.
%% 
%% This generated file may be distributed as long as the
%% original source files, as listed above, are part of the
%% same distribution. (The sources need not necessarily be
%% in the same archive or directory.)
%% Written by Felix Braun
%%
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{alphanum}[1998/07/13 v4.3 alphanumeric section numbers]
\newcommand*{\@greek}[1]{\ifcase#1\relax\or$\alpha$\or$\beta$\or
$\gamma$\or$\delta$\or$\varepsilon$\or$\zeta$\or$\eta$\or$\vartheta$\or
$\iota$\or$\kappa$\or$\lambda$\or$\mu$\or$\nu$\or$\xi$\or$o$\or$\pi$\or
$\rho$\or$\sigma$\or$\tau$\or$\upsilon$\or$\varphi$\or$\chi$\or$\psi$\or
$\omega$\else\@ctrerr\fi}
\newcounter{lvla}
\newcounter{lvlb}
\newcounter{lvlc}
\newcounter{lvld}
\newcounter{lvle}
\newcounter{lvlf}
\newcounter{lvlg}
\newcounter{lvlh}
\newcounter{lvli}
\newcounter{lvlj}
\newcounter{lvlk}
\newcounter{lvll}
\renewcommand*{\thelvla}{\J@Number}
\renewcommand*{\thelvlb}{\J@Number}
\renewcommand*{\thelvlc}{\J@Number}
\renewcommand*{\thelvld}{\J@Number}
\renewcommand*{\thelvle}{\J@Number}
\renewcommand*{\thelvlf}{\J@Number}
\renewcommand*{\thelvlg}{\J@Number}
\renewcommand*{\thelvlh}{\J@Number}
\renewcommand*{\thelvli}{\J@Number}
\renewcommand*{\thelvlj}{\J@Number}
\renewcommand*{\thelvlk}{\J@Number}
\renewcommand*{\thelvll}{\J@Number}
\if@twoside
\newcommand*{\lvlamark}[1]{\J@SetCurrent%
\@mkboth{\J@NumberRoot1\J@NumberEnd1\ #1}%
{\J@NumberRoot1\J@NumberEnd1\ #1}}
\newcommand*{\lvlbmark}[1]{\J@SetCurrent%
\@mkboth{\J@NumberRoot1\,\J@NumberRoot2\J@NumberEnd2\ #1}%
{\J@NumberRoot1\,\J@NumberRoot2\J@NumberEnd2\ #1}}
\newcommand*{\lvlcmark}[1]{\J@SetCurrent\markright{\J@Number\ #1}}
\else
\newcommand*{\lvlamark}[1]{\J@SetCurrent%
\markright{\J@NumberRoot1\J@NumberEnd1\ #1}}
\newcommand*{\lvlbmark}[1]{\J@SetCurrent%
\markright{\J@NumberRoot1\,\J@NumberRoot2\J@NumberEnd2\ #1}}
\newcommand*{\lvlcmark}[1]{\J@SetCurrent%
\markright{\J@NumberRoot1\,\J@NumberRoot2\,\J@Number\ #1}}
\fi
\newcommand*{\lvldmark}{\J@SetCurrent\@gobble}
\newcommand*{\lvlemark}{\lvldmark}
\newcommand*{\lvlfmark}{\lvldmark}
\newcommand*{\lvlgmark}{\lvldmark}
\newcommand*{\lvlhmark}{\lvldmark}
\newcommand*{\lvlimark}{\lvldmark}
\newcommand*{\lvljmark}{\lvldmark}
\newcommand*{\lvlkmark}{\lvldmark}
\newcommand*{\lvllmark}{\lvldmark}
\newcounter{tiefe}\setcounter{tiefe}{1}
\setcounter{tocdepth}{12}\setcounter{secnumdepth}{12}
\newcommand*{\J@Number}{\J@NumberRoot{\value{tiefe}}%
\J@NumberEnd{\value{tiefe}}}
\newcommand*{\J@NumberRoot}[1]{\J@INumberRoot{#1}%
{\csname c@lvl\@alph{#1}\endcsname}}
\newcommand*{\J@INumberRoot}[2]{%
\ifcase#1\or
\@Alph{#2}\or
\@Roman{#2}\or
\@arabic{#2}\or
\@alph{#2}\or
\@alph{#2}\@alph{#2}\or
\@greek{#2}\or
\@greek{#2}\@greek{#2}\or
(\@arabic{#2})\or
(\@alph{#2})\or
(\@alph{#2}\@alph{#2})\or
(\@greek{#2})\or
(\@greek{#2}\@greek{#2})\fi}
\newcommand*{\J@NumberEnd}[1]{\ifnum#1<8\ifnum#1<4.\else)\fi\fi}
\newcommand*\l@lvla{\@dottedtocline{1}{0em}{2,5em}}
\newcommand*\l@lvlb{\@dottedtocline{2}{1em}{2,5em}}
\newcommand*\l@lvlc{\@dottedtocline{3}{2em}{2,5em}}
\newcommand*\l@lvld{\@dottedtocline{4}{3em}{2,5em}}
\newcommand*\l@lvle{\@dottedtocline{5}{4em}{2,5em}}
\newcommand*\l@lvlf{\@dottedtocline{6}{5em}{2,5em}}
\newcommand*\l@lvlg{\@dottedtocline{7}{6em}{2,5em}}
\newcommand*\l@lvlh{\@dottedtocline{8}{7em}{2,5em}}
\newcommand*\l@lvli{\@dottedtocline{9}{8em}{2,5em}}
\newcommand*\l@lvlj{\@dottedtocline{10}{9em}{2,5em}}
\newcommand*\l@lvlk{\@dottedtocline{11}{10em}{2,5em}}
\newcommand*\l@lvll{\@dottedtocline{12}{11em}{2,5em}}
\newcommand*{\J@SetCurrent}{\xdef\@currentlabel{{\arabic{lvla}}%
{\arabic{lvlb}}{\arabic{lvlc}}{\arabic{lvld}}{\arabic{lvle}}%
{\arabic{lvlf}}{\arabic{lvlg}}{\arabic{lvlh}}{\arabic{lvli}}%
{\arabic{lvlj}}{\arabic{lvlk}}{\arabic{lvll}}}}
\newcommand*{\toc}{\secdef\J@LongToc\J@ShortToc}
\newcommand*{\J@ShortToc}[1]{\stepcounter{lvl\alph{tiefe}}\J@Number\ %
\addcontentsline{toc}{lvl\alph{tiefe}}%
{\protect\numberline{\J@Number}#1}%
\csname lvl\alph{tiefe}mark\endcsname{#1}\@gobblecr}
\newcommand*{\J@LongToc}[2][]{%
\@startsection{lvl\alph{tiefe}}{\value{tiefe}}{0pt}
{\ifnum\value{tiefe}=1 -4ex plus-1,5ex minus-0,ex\else
-2,7ex plus-0,8ex minus-0,2ex\fi}
{\ifnum\value{tiefe}>7 -1em plus-0,5em\relax\else
0,6ex plus0,3ex minus0,1ex\fi}
{\sectfont\csname lvl\alph{tiefe}style\endcsname}[#1]{#2}}
\providecommand*{\sectfont}{\normalfont}
\newcommand*{\lvlastyle}{\large\bfseries}
\newcommand*{\lvlbstyle}{\bfseries}
\let\lvlcstyle=\lvlbstyle
\let\lvldstyle=\lvlbstyle
\let\lvlestyle=\lvlbstyle
\let\lvlfstyle=\lvlbstyle
\let\lvlgstyle=\lvlbstyle
\newcommand*{\lvlhstyle}{\itshape}
\let\lvlistyle=\lvlhstyle
\let\lvljstyle=\lvlhstyle
\let\lvlkstyle=\lvlhstyle
\let\lvllstyle=\lvlhstyle
\renewcommand*{\@seccntformat}[1]{\csname the#1\endcsname\ }
\renewcommand*{\numberline}[1]{#1\ }
\newcommand*{\leveldown}{%
\ifnum\value{lvla}=0%
\PackageWarning{alphanum}{\protect\sub\space without
\protect\toc\space}\fi
\ifnum\value{tiefe}=12%
\PackageWarning{alphanum}{too many sublevels!! Ignored \protect\sub.
\MessageBreak There will probably be an \protect\levelup\space
without \protect\sub\space warning later on}
\setcounter{tiefe}{11}\fi
\stepcounter{tiefe}}
\newcommand*{\sub}{\leveldown\toc}
\newcommand*{\levelup}{%
\ifnum\value{tiefe}=1%
\PackageWarning{alphanum}{\protect\levelup\space without\protect\sub}
\stepcounter{tiefe}\fi
\ifnum\value{lvl\alph{tiefe}}=1%
\PackageWarning{alphanum}{only one subitem in level "\J@Number" ending}%
\fi
\setcounter{lvl\alph{tiefe}}{0}
\addtocounter{tiefe}{-1}\par\addvspace{2,7ex plus0,8ex minus1ex}}
\renewcommand*{\@cite}[2][]{#1#2}
\def\@citex[#1]#2{%
  \let\@citea\@empty
  \@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{,\penalty\@m\ }%
     \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}%
     \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi
     \@ifundefined{b@\@citeb}{\mbox{\reset@font\bfseries ?}%
       \G@refundefinedtrue
       \@latex@warning
         {Citation `\@citeb' on page \thepage \space undefined}}%
         {\csname b@\@citeb\endcsname}}}{#1}}
\renewcommand*{\ref}{%
\@ifstar{\@tempswatrue\J@ref}{\@tempswafalse\J@ref}}
\newcommand*{\J@ref}[1]{%
\expandafter\ifx\csname r@#1\endcsname\relax
 \protect\G@refundefinedtrue
 \nfss@text{\reset@font\bfseries ??}
 \@latex@warning{Reference '#1' on page \thepage \space undefined}%
\else
 \expandafter\J@refX\csname r@#1\endcsname
\fi}
\newcommand*{\J@refX}[1]{\expandafter\J@refXX#1}
\newcommand*{\J@refXX}[2]{%
\ifcat_\ifnum9<1#1_\else X\fi
  #1%
\else
  \expandafter\J@refA#1%
\fi}
\newcommand*{\J@refA}[6]{\@tempcnta\@ne%
\J@refP1{#1}0\J@refP2{#2}{#1}\J@refP3{#3}{#2}\J@refP4{#4}{#3}%
\J@refP5{#5}{#4}\J@refP6{#6}{#5}\J@refB#6}
\newcommand*{\J@refB}[7]{\J@refP7{#2}{#1}\J@refP8{#3}{#2}%
\J@refP9{#4}{#3}\J@refP{10}{#5}{#4}\J@refP{11}{#6}{#5}%
\J@refP{12}{#7}{#6}\J@NumberEnd\@tempcnta}
\newcommand*{\J@refP}[3]{%
\if@tempswa%
 \ifnum#2>0\@tempcnta#1\,\J@INumberRoot{#1}{#2}\fi
\else%
 \ifnum#2=\value{lvl\@alph{#1}}%
  \ifnum#1=12\PackageError{alphanum}{Self-reference detected!}{You used
    a \protect\ref\space in the same section as the referenced
    \protect\label\MessageBreak That makes no sense!}\fi
 \else
  \ifnum#2>0\@tempcnta#1\@tempswatrue\J@INumberRoot{#1}{#2}\else
   \ifnum#3>0%
   \@tempcnta#1\advance\@tempcnta-1\relax\J@INumberRoot{\@tempcnta}{#3}%
   \fi
  \fi
 \fi
\fi}
\newenvironment*{jurabibliography}
{\chapter*{\bibname
 \@mkboth{\bibname}{\bibname}}%
 \begin{description}\sloppy}{\end{description}}
\def\jbibitem#1#2#3{\item[#1]\if@filesw
 {\let\protect\noexpand\immediate
 \write\@auxout{\string\bibcite{#3}{#2}}}\fi\ignorespaces}
\newenvironment{sachverhalt}{\chapter*{Sachverhalt}%
\@mkboth{Sachverhalt}{Sachverhalt}}{\clearpage}
\endinput
%%
%% End of file `alphanum.sty'.