diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/einfuehrung/10-07-9.ltx2')
-rw-r--r-- | Master/texmf-dist/doc/latex/einfuehrung/10-07-9.ltx2 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/einfuehrung/10-07-9.ltx2 b/Master/texmf-dist/doc/latex/einfuehrung/10-07-9.ltx2 new file mode 100644 index 00000000000..e872009af0e --- /dev/null +++ b/Master/texmf-dist/doc/latex/einfuehrung/10-07-9.ltx2 @@ -0,0 +1,49 @@ +%% +%% Ein Beispiel der DANTE-Edition +%% +%% Beispiel 10-07-9 auf Seite 518. +%% +%% Copyright (C) 2012 Herbert Voss +%% +%% It may be distributed and/or modified under the conditions +%% of the LaTeX Project Public License, either version 1.3 +%% of this license or (at your option) any later version. +%% +%% See http://www.latex-project.org/lppl.txt for details. +%% +%% +%% ==makeindex== +%% ==command makeindex ++FILE++.adx -o ++FILE++.and== +% Show page(s) 1,2 +%% +\documentclass[]{exaarticle} +\pagestyle{empty} +\setlength\textwidth{136.40709pt} +\usepackage[T1]{fontenc} +\usepackage[utf8]{inputenc} +\usepackage[ngerman]{babel} +\usepackage[paper=a7,pagesize,DIV15]{typearea} +\setlength\parindent{0pt} +\usepackage{index} +\makeatletter\renewenvironment{theindex}{% + \edef\indexname{\the\@nameuse{idxtitle@\@indextype}}% + \newpage\section*{\indexname} + \ifx\index@prologue\@empty\else\index@prologue\bigskip\fi + \parskip .0pt\@plus .3\p@\relax\let\item\@idxitem + \@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}% + \thispagestyle{plain}}{} +\makeatother + +% makeindex Datei.idx -o Datei.ind +% makeindex Datei.adx -o Datei.and +\usepackage{index}\makeindex% Erstellt Standardindex "default" +\newindex{author}{adx}{and}{Namensverzeichnis} + +\begin{document} +\printindex % indentisch zu \printindex[default] +\printindex[author][Die Autorenliste wurde willkürlich ausgewählt] \newpage +foo\index{Auto}\index[author]{Daimler, Hans}\index{Motor}\index[author]{Wankel, Horst} +\index{PSTricks}\index[author]{Voß, Herbert}\index{Mathematik}\index[author]{Riese, Adam} +\index{$E=mc^2$}\index[author]{Einstein, Albert}\index{\TeX}\index[author]{Knuth, Donald} +\index{VW}\index[author]{Porsche,Ferdinand}\index{Oper}\index[author]{Verdi, Giacomo} +\end{document} |