summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/testidx/samples/sample-idx-babel-german.tex
blob: 2537bc3b997acac2f59eb7b5529bdc2c56510881 (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
% This file is public domain.
%
% This example document demonstrates the testidx package
% with babel and the -g (German) makeindex option.
% You can build this document using:
%
% pdflatex sample-idx-babel-german
% makeindex -g -s sample-idx-babel-german.idx sample-idx-babel-german.idx
% pdflatex sample-idx-babel-german
%
% If you are using arara, the directives are:
%
% arara: pdflatex
% arara: makeindex: { german: on, style: sample-idx-german.ist }
% arara: pdflatex
\documentclass[ngerman]{article}

\usepackage{filecontents}
\usepackage{makeidx}
\usepackage{babel}
\usepackage[ascii]{testidx}

\providecommand*\lettergroup[1]{%
  \par\textbf{#1}\par
  \nopagebreak
}
\begin{filecontents*}{\jobname.ist}
quote '+'
headings_flag 1
heading_prefix "\\item\\lettergroup{"
heading_suffix "}\n"
symhead_positive "Symbole"
symhead_negative "symbole"
numhead_positive "Zahlen"
numhead_negative "zahlen"
\end{filecontents*}

\makeindex

\begin{document}
\testidx

\printindex
\end{document}