summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-7.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-7.tex')
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-7.tex23
1 files changed, 23 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-7.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-7.tex
new file mode 100644
index 00000000000..c6f8e09f708
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-7.tex
@@ -0,0 +1,23 @@
+\documentclass{scrartcl}
+\makeatletter
+\def\theindex{% only for demonstration
+ \section*{\indexname}
+ \parskip\z@ \@plus .3\p@\relax \parindent\z@
+ \let\item\@idxitem}
+\makeatother
+%StartVisiblePreamble
+\usepackage{makeidx}\makeindex
+%StopVisiblePreamble
+\pagestyle{empty}
+\begin{document}
+Sorted with \verb|-l fr|
+
+foobar\index{foobar|(}
+foo\index{foo}\index{bar}\index{baz}\newpage
+foo\index{foo}\index{bar}\index{baz}\newpage
+foo\index{bar}\index{baz}\newpage
+foo\index{baz}\newpage
+foo\index{foo}foobar\index{foobar|)}
+\newpage
+\printindex
+\end{document}