| 1 |
% This file is public domain. |
| 2 |
% |
| 3 |
% This example document demonstrates the testidx package |
| 4 |
% with ngerman.sty and the -g (German) makeindex option. |
| 5 |
% You can build this document using: |
| 6 |
% |
| 7 |
% pdflatex sample-idx-german |
| 8 |
% makeindex -g -s sample-idx-german.idx sample-idx-german.idx |
| 9 |
% pdflatex sample-idx-german |
| 10 |
% |
| 11 |
% If you are using arara, the directives are: |
| 12 |
% |
| 13 |
% arara: pdflatex |
| 14 |
% arara: makeindex: { german: on, style: sample-idx-german.ist } |
| 15 |
% arara: pdflatex |
| 16 |
\documentclass{article} |
| 17 |
|
| 18 |
\usepackage{filecontents} |
| 19 |
\usepackage{makeidx} |
| 20 |
\usepackage{ngerman} |
| 21 |
\usepackage[german,ascii]{testidx} |
| 22 |
|
| 23 |
\providecommand*\lettergroup[1]{% |
| 24 |
\par\textbf{#1}\par |
| 25 |
\nopagebreak |
| 26 |
} |
| 27 |
\begin{filecontents*}{\jobname.ist} |
| 28 |
quote '+' |
| 29 |
headings_flag 1 |
| 30 |
heading_prefix "\\item\\lettergroup{" |
| 31 |
heading_suffix "}\n" |
| 32 |
symhead_positive "Symbole" |
| 33 |
symhead_negative "symbole" |
| 34 |
numhead_positive "Zahlen" |
| 35 |
numhead_negative "zahlen" |
| 36 |
\end{filecontents*} |
| 37 |
|
| 38 |
\makeindex |
| 39 |
|
| 40 |
\begin{document} |
| 41 |
\testidx |
| 42 |
|
| 43 |
\printindex |
| 44 |
\end{document} |
| 45 |
|