summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/testidx/samples/sample-idx-babel-german.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/testidx/samples/sample-idx-babel-german.tex')
-rw-r--r--Master/texmf-dist/doc/latex/testidx/samples/sample-idx-babel-german.tex45
1 files changed, 45 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/testidx/samples/sample-idx-babel-german.tex b/Master/texmf-dist/doc/latex/testidx/samples/sample-idx-babel-german.tex
new file mode 100644
index 00000000000..3f0719aa348
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/testidx/samples/sample-idx-babel-german.tex
@@ -0,0 +1,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{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}
+