summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-2.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-2.tex')
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-2.tex24
1 files changed, 24 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-2.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-2.tex
new file mode 100644
index 00000000000..8fd28b3df30
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-2.tex
@@ -0,0 +1,24 @@
+\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}
+\section{Escaping characters with >}
+\begin{itemize}
+\item Exclamation mark ! \index{exclaim (>!)}
+\item Vertical bar| \index{Vertical bar (>|)}
+\item Doublequote \verb|"| \index{>"}
+\item Double doublequote \verb|""| \index{>">"}
+\item At character @ \index{At (>@)}
+\end{itemize}
+Run \texttt{xindex} with \texttt{xindex -e ">"}\index{<file.idx>}\index{123}
+\newpage
+\printindex
+\end{document}