summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/testidx/samples/sample-idx-german.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/testidx/samples/sample-idx-german.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/testidx/samples/sample-idx-german.tex')
-rw-r--r--macros/latex/contrib/testidx/samples/sample-idx-german.tex45
1 files changed, 45 insertions, 0 deletions
diff --git a/macros/latex/contrib/testidx/samples/sample-idx-german.tex b/macros/latex/contrib/testidx/samples/sample-idx-german.tex
new file mode 100644
index 0000000000..0a3543bbea
--- /dev/null
+++ b/macros/latex/contrib/testidx/samples/sample-idx-german.tex
@@ -0,0 +1,45 @@
+% This file is public domain.
+%
+% This example document demonstrates the testidx package
+% with ngerman.sty and the -g (German) makeindex option.
+% You can build this document using:
+%
+% pdflatex sample-idx-german
+% makeindex -g -s sample-idx-german.idx sample-idx-german.idx
+% pdflatex sample-idx-german
+%
+% If you are using arara, the directives are:
+%
+% arara: pdflatex
+% arara: makeindex: { german: on, style: sample-idx-german.ist }
+% arara: pdflatex
+\documentclass{article}
+
+\usepackage{filecontents}
+\usepackage{makeidx}
+\usepackage{ngerman}
+\usepackage[german]{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}
+