blob: e200d1e6b57b9f216b6d6fb867ae25c69832e04b (
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
|
% LEXIKON.STY
\RequirePackage{ifthen}
\newboolean{first}
\newcommand{\lastchar}{}
\newcommand{\ps@lexikon}
{\renewcommand{\@oddhead}
{\hfil\textbf{\Large\botmark}%
\hspace{1cm}\arabic{page}}
\renewcommand{\@evenhead}
{\arabic{page}\hspace{1cm}%
\textbf{\Large\botmark}\hfil}
\renewcommand{\@evenfoot}{}
\renewcommand{\@oddfoot}{}
}
\newenvironment{lexikon}
{\setboolean{first}{true}
\renewcommand{\lastchar}{}
\newpage\twocolumn
\let\@oddh\@oddhead \let\@evnh\@evenhead
\let\@oddf\@oddfoot \let\@evnf\@evenfoot
\pagestyle{lexikon}
}
{\end{description}
\onecolumn
\let\@oddhead\@oddh \let\@evenhead\@evnh
\let\@oddfoot\@oddf \let\@evenfoot\@evnf
\markboth{}{}
}
\def\entry[#1#2]
{\ifthenelse{\equal{\lastchar}{#1}}
{}
{\ifthenelse{\boolean{first}}
{\setboolean{first}{false}}
{\end{description}}
\renewcommand{\lastchar}{#1}
\medskip
\noindent\textbf{\Huge #1}
\rule{0.9\columnwidth}{2mm}
\begin{description}
}
\item[#1#2]\mark{#1#2}
}
|