summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/lualatex/xindex/Examples
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-12-03 22:49:28 +0000
committerKarl Berry <karl@freefriends.org>2018-12-03 22:49:28 +0000
commit510cc1b8395f714ec6c1b7299cf73371563b1a16 (patch)
treeef1d3f055e87db8e906501a88ca550b861ac22e2 /Master/texmf-dist/doc/lualatex/xindex/Examples
parentf855360800d3dd036378f102ca41cf5fa3e87db1 (diff)
xindex (2dec18)
git-svn-id: svn://tug.org/texlive/trunk@49312 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/lualatex/xindex/Examples')
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-1.tex25
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-10.tex51
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-11.tex24
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-12.tex16
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-13.tex22
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-14.tex42
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-2.tex24
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-3.tex24
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-4.tex36
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-5.tex37
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-6.tex32
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-7.tex23
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-8.tex30
-rw-r--r--Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-9.tex20
14 files changed, 406 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-1.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-1.tex
new file mode 100644
index 00000000000..b5e4c6a1d76
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-1.tex
@@ -0,0 +1,25 @@
+\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}
+\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 <file.idx>}\index{<file.idx>}\index{123}
+\newpage
+\printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-10.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-10.tex
new file mode 100644
index 00000000000..9a8074a05f8
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-10.tex
@@ -0,0 +1,51 @@
+\RequirePackage{filecontents}
+\begin{filecontents*}{\jobname.idx}
+\indexentry{VoßHerbert@Herbert Voß!Wasgenstraße 121\protect \\10127 Berlin\protect \\\Email {herbert"@xyz.de}}{3}
+\indexentry{SieversMartin@Martin Sievers!siehe Seite~\protect \pageref {president}}{4}
+\indexentry{VoßHerbert@Herbert Voß!Wasgenstraße 121\protect \\10127 Berlin\protect \\\Email {herbert"@xyz.de}}{5}
+\indexentry{ZiegenhagenUwe@Uwe Ziegenhagen!Lokostr. 19 \protect \\ 20713 Köln \protect \\\Email {ziegenhagen"@mail.com}}{9}
+\indexentry{BehrendtDoris@Doris Behrendt!\Email {doris"@xyz.de}}{14}
+\indexentry{JacekJonas Jared@Jonas Jared Jazek!\Email {mail"@jones.net}}{20}
+\indexentry{KohmMarkus@Marcus Tohm!Freiherr-von-Stein-Straße~16\protect \\ 15525~Edingen-Neckarhausen\protect \\ \Email {komascript"@xyz.info}}{24}
+\indexentry{KohmMarkus@Marcus Tohm!Freiherr-von-Stein-Straße~16\protect \\ 15525~Edingen-Neckarhausen\protect \\ \Email {komascript"@xyz.info}}{31}
+\indexentry{SchubertElke@Elke Schubert!Hausstraße~15\protect \\ 36396~Stutense\protect \\ \Email {elke.schubert"@kabelxyz.de}}{40}
+\indexentry{FennJürgen@Jürgen Fennt!Friedrichallee 74\protect \\13233 Neu-Isenburg\protect \\\Email {juergen.fennt"@gmxnet.de}}{48}
+\end{filecontents*}
+\documentclass{article}
+\usepackage{url}
+\DeclareUrlCommand\Email{%
+ \def\UrlLeft{}%
+ \def\UrlRight{}%
+ \def\UrlLinkPrefix{mailto:}%
+ \def\UrlType{email}%
+}
+\usepackage{multicol}
+\makeatletter
+\def\DTK@scan@item#1\subitem#2\relax#3\@nil{%
+ \def\DTK@tempa{#1}\def\DTK@tempb{#2}\def\DTK@tempc{#3}%
+}
+\def\theindex{% only for demonstration
+ \columnseprule=\z@ \columnsep=10\p@
+ \begin{multicols}{2}[\noindent\textbf{\large Autorenliste}]%
+ \makeatletter
+ \def\indexspace{}%
+ \parindent\z@
+ \setlength{\parskip}{\z@ \@plus .3\p@}%
+ \setlength{\parfillskip}{\z@ \@plus 1fil}%
+ \raggedright
+ \def\item##1\@nil{\DTK@scan@item##1\@nil
+ \par\parbox{\columnwidth}{%
+ \textbf{\DTK@tempa}\hfill[\DTK@tempc]\par\DTK@tempb
+ }%
+ \par\bigskip
+ }%
+}
+\def\endtheindex{\end{multicols}}
+\makeatother
+%StartVisiblePreamble
+\usepackage{makeidx}
+%StopVisiblePreamble
+\pagestyle{empty}
+\begin{document}
+\mbox{}\printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-11.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-11.tex
new file mode 100644
index 00000000000..0a942999dc7
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-11.tex
@@ -0,0 +1,24 @@
+\documentclass{article}
+\makeatletter
+\def\theindex{% only for demonstration
+ \section*{\indexname}
+ \parskip\z@ \@plus .3\p@\relax \parindent\z@
+ \let\item\@idxitem}
+\makeatother
+%StartVisiblePreamble
+\makeatletter
+\g@addto@macro{\theindex}{%
+ \pagestyle{empty}%
+ \def\subsubsubitem{\@idxitem\hspace*{35\p@}}
+ \def\subsubsubsubitem{\@idxitem\hspace*{40\p@}}
+}
+\makeatother
+\usepackage{makeidx}\makeindex
+%StopVisiblePreamble
+\begin{document}
+foo\index{foo} bar\index{foo!bar}
+baz\index{foo!bar!baz} foobar%
+\index{foo!bar!baz!foobar} Kuba
+\index{foo!bar!baz!foobar!Kuba}
+\newpage \printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-12.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-12.tex
new file mode 100644
index 00000000000..79e7295af7c
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-12.tex
@@ -0,0 +1,16 @@
+\documentclass{scrartcl}
+\usepackage{libertinus-otf}
+%StartVisiblePreamble
+\usepackage{xindex}
+\makeindex
+%StopVisiblePreamble
+\makeatletter
+\let\ps@plain\ps@empty
+\makeatother
+\begin{document}
+\index{foo}foo and
+\writeidx{\item\protect\hrulefill}
+\index{bar}bar
+\index{gex}gex
+\printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-13.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-13.tex
new file mode 100644
index 00000000000..2628494f7cb
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-13.tex
@@ -0,0 +1,22 @@
+\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}
+Ein foo\index{foo}\index{bar|(}
+ \newpage und \index{foo}
+ein foo\index{foo|textit} \newpage
+und foo\index{foo|textbf} \newpage
+und foo\index{foo|fbox}
+\index{bar|)}
+\newpage
+\verb|xindex -n <file>|
+\printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-14.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-14.tex
new file mode 100644
index 00000000000..dd4c5adb63d
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-14.tex
@@ -0,0 +1,42 @@
+\documentclass{scrartcl}
+\usepackage{libertinus-otf}
+\makeatletter
+\let\ps@plain\ps@empty
+\makeatother
+%StartVisiblePreamble
+\usepackage[imakeidx]{xindex}
+\makeindex[name=persons,title=Index of names,
+ columns=1,options=--noheadings]
+\def\ThanhVN{Hàn Thê\protect\llap{%
+ \raise 0.5ex\hbox{\'{}}}}
+%StopVisiblePreamble
+\pagestyle{empty}\renewcommand\thepage{}
+\begin{document}
+foo\index[persons]{Niepraschk,~ Rolf}
+foo\index[persons]{Lamport,~ Leslie}
+foo\index[persons]{Knuth,~ Donald}
+foo\index[persons]{Knuth,~ Donald}
+\newpage
+foo\index[persons]{Lamport,~ Leslie}
+foo\index[persons]{Thành,~ \ThanhVN}
+foo\index[persons]{Kew,~ Jonathan}
+foo\index[persons]{Kohm,~ Markus}
+foo\index[persons]{Preining,~ Norbert}
+\newpage
+foo\index[persons]{Schenk,~ Christian}
+foo\index[persons]{Feuerstack,~ Thomas}
+foo\index[persons]{Tobin,~ Geoffrey}
+foo\index[persons]{Wilson,~ Peter}
+\newpage
+foo\index[persons]{Kohm,~ Markus}
+foo\index[persons]{Theiling,~ Henrik}
+foo\index[persons]{Pégourié-Gonnard,~ Manuel}
+foo\index[persons]{Roux,~ Élie}
+\newpage
+foo\index[persons]{Mittelbach,~ Frank}
+foo\index[persons]{Fairbairns,~ Robin}
+foo\index[persons]{Lemberg,~ Werner}
+foo\index[persons]{Volovich,~ Vladimir}
+
+\printindex[persons]
+\end{document}
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}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-3.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-3.tex
new file mode 100644
index 00000000000..74b701b678c
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-3.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 -l de -e ">"}\index{123}
+\newpage
+\printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-4.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-4.tex
new file mode 100644
index 00000000000..dcedfca9aaf
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-4.tex
@@ -0,0 +1,36 @@
+\documentclass[paper=a5]{scrartcl}
+\usepackage[ngerman]{babel}
+%StartVisiblePreamble
+\usepackage{makeidx}\makeindex
+\newcommand\Index[1]{\index{#1}#1}
+%StopVisiblePreamble
+\usepackage{multicol}
+\makeatletter
+\def\theindex{% only for demonstration
+ \newpage
+ \section*{\indexname}
+ \begin{multicols}{2}
+ \parskip\z@ \@plus .3\p@\relax \parindent\z@
+ \let\item\@idxitem}
+\def\endtheindex{\end{multicols}}
+\makeatother
+\pagestyle{empty}
+\begin{document}
+Sorted with \verb|-l DE|
+
+\Index{Österreich} \Index{Öresund}
+\Index{Ostern} \Index{Ober}
+\Index{Oberin} \Index{Österreich}
+\Index{Öresund} \Index{Ostern}
+\Index{Ober} \Index{Oberin}
+\Index{Obstler} \Index{Öl}
+\Index{ölen} \Index{Ödem}
+\Index{Oligarch} \Index{Oder}
+\Index{oder} \index{Fluss!Oder}
+\index{Oder|seealso{Fluss}}
+\Index{Göbel} \Index{Goethe}
+\Index{Göthe} \Index{Götz}
+\Index{Goldmann}
+
+\printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-5.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-5.tex
new file mode 100644
index 00000000000..5c87b0cf310
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-5.tex
@@ -0,0 +1,37 @@
+\documentclass[paper=a5]{scrartcl}
+\usepackage[ngerman]{babel}
+%StartVisiblePreamble
+\usepackage{makeidx}\makeindex
+\newcommand\Index[1]{\index{#1}#1}
+%StopVisiblePreamble
+\usepackage{multicol}
+\makeatletter
+\def\theindex{% only for demonstration
+ \newpage
+ \section*{\indexname}
+ \begin{multicols}{2}
+ \parskip\z@ \@plus .3\p@\relax \parindent\z@
+ \let\item\@idxitem}
+\def\endtheindex{\end{multicols}}
+\makeatother
+\pagestyle{empty}
+\begin{document}
+Sorted with
+\verb|--config DIN2 -l DE|
+
+\Index{Österreich} \Index{Öresund}
+\Index{Ostern} \Index{Ober}
+\Index{Oberin} \Index{Österreich}
+\Index{Öresund} \Index{Ostern}
+\Index{Ober} \Index{Oberin}
+\Index{Obstler} \Index{Öl}
+\Index{ölen} \Index{Ödem}
+\Index{Oligarch} \Index{Oder}
+\Index{oder} \index{Fluss!Oder}
+\index{Oder|seealso{Fluss}}
+\Index{Göbel} \Index{Goethe}
+\Index{Göthe} \Index{Götz}
+\Index{Goldmann}
+
+\printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-6.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-6.tex
new file mode 100644
index 00000000000..34567f4fb89
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-6.tex
@@ -0,0 +1,32 @@
+\documentclass[a5paper]{article}
+%StartVisiblePreamble
+\usepackage{fontspec}
+\setmainfont{SourceHanSans}
+\usepackage[japanese]{babel}
+\addto\captionsjapanese{%
+ \def\indexname{指数}}
+\usepackage{hvindex}% for \Index
+\usepackage{makeidx}\makeindex
+%StopVisiblePreamble
+\usepackage{multicol}
+\makeatletter
+\def\theindex{% only for demonstration
+ \section*{\indexname}
+ \begin{multicols}{2}
+ \parskip\z@ \@plus .3\p@\relax \parindent\z@
+ \let\item\@idxitem}
+\def\endtheindex{\end{multicols}}
+\makeatother
+\pagestyle{empty}
+\begin{document}
+\Index{車} \Index{車道}
+日本\index{日本|fbox}
+\Index{病院} \Index{コンピュータ}
+\Index{プリンタ} \Index{印刷}
+\Index{スイミングプール} \Index{天王}
+\Index{広島} \Index{ドイツ}
+\Index{日本} \Index{ワープロ}
+\Index{foo} und \Index{bar}
+\Index{//} \Index{4711}
+\newpage\printindex
+\end{document}
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}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-8.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-8.tex
new file mode 100644
index 00000000000..74fbe92ccf5
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-8.tex
@@ -0,0 +1,30 @@
+\documentclass[paper=a6]{scrartcl}
+\usepackage{multicol}
+\makeatletter
+\def\theindex{% only for demonstration
+ \section*{\indexname}
+ \begin{multicols}{2}
+ \parskip\z@ \@plus .3\p@\relax \parindent\z@
+ \let\item\@idxitem}
+\def\endtheindex{\end{multicols}}
+\makeatother
+%StartVisiblePreamble
+\usepackage{makeidx}\makeindex
+\usepackage{hvindex}% for \Index
+\usepackage[colorlinks]{hyperref}
+%StopVisiblePreamble
+\pagestyle{empty}
+\begin{document}
+Sorted with \verb|-l DE|
+\Index{Österreich} \Index{Öresund}
+\Index{Ostern} \Index{Ober} \Index{Oberin}
+\Index{Österreich} \index{Öresund|textbf}
+\Index{Ostern} \Index{Ober} \Index{Oberin}
+\Index{Obstler} \Index{Öl} \Index{ölen}
+\Index{Ödem} \Index{Oligarch} \Index{Oder}
+\Index{oder} \index{Fluss!Oder|textit}
+\Index{Oder|seealso{Fluss}} \Index{Göbel}
+\Index{Goethe} \Index{Göthe} \Index{Götz}
+\newpage\Index{Goldmann} \Index{Goethe}
+\newpage \printindex
+\end{document}
diff --git a/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-9.tex b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-9.tex
new file mode 100644
index 00000000000..166123a767b
--- /dev/null
+++ b/Master/texmf-dist/doc/lualatex/xindex/Examples/xindex-9.tex
@@ -0,0 +1,20 @@
+\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}
+Ein foo\index{foo} \newpage und \index{foo}
+ein foo\index{foo|textit} \newpage
+und foo\index{foo|textbf} \newpage
+und foo\index{foo|fbox}
+
+\newpage
+\printindex
+\end{document}