diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/manyind/mindsample.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/manyind/mindsample.tex | 55 |
1 files changed, 44 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/manyind/mindsample.tex b/Master/texmf-dist/doc/latex/manyind/mindsample.tex index 9e3d674f75c..b1ec5963d50 100644 --- a/Master/texmf-dist/doc/latex/manyind/mindsample.tex +++ b/Master/texmf-dist/doc/latex/manyind/mindsample.tex @@ -1,14 +1,14 @@ -% mindsample.tex 2018/04/29 +% mindsample.tex 2019.01.27. \documentclass{book} -\usepackage{manyind} +\usepackage{manyind} % \usepackage[plainpages=false,colorlinks=true]{hyperref} -\title {Package manyind provides support for many indexes} - +\altsort % to get other sorting. +\title {Package manyind provides support for many indexes} \author{Wilberd van der Kallen\index{Wilberd}} -\date{April 2018} +\date{January 2019} \makeindex % obligatory with manyindex @@ -17,7 +17,9 @@ \renewcommand\thepage{\roman{page}} \index{z}% ends up in index main. - +\index{/@/ divide symbol comes before A} +\index{:@\indexspace : colon comes here}% goes after Z when using \altsort, before A otherwise. + \setindex{b1} \maketitle % So Wilberd will end up in index b1. @@ -87,6 +89,9 @@ To see how package \verb|manyind| may be used, you may also compare the file This preface has an \emph{indexed term}.\setindex{b1}\index{indexed term} (You see this in the source file only.) + + + \chapter{Introduction}\sloppy \renewcommand\thepage{\arabic{page}} \addtocounter{page}{-6}% Just to get overlap in roman and arabic page numbers. @@ -109,6 +114,9 @@ The package \verb|manyind| The index file {\it filename}.\texttt{ind} has become quite unreadable. Do not edit it. Use the package \verb!manyind! only if you are willing to keep the indexes standard. +If one puts \verb|\altsort| +in the preamble, then entries are sorted differently. For instance, \verb|\index{\"U}| +will put \"U after the alphabet, not before. \setindex{a1}\index{alpha!see beta} \index{alpha!see also gamma\gobblepageref} @@ -173,6 +181,7 @@ Use the package \verb!manyind! only if you are willing to keep the indexes stand \setindex{bis}\index{bis} + \setindex{main}\index{delta!vardelta} @@ -181,16 +190,36 @@ Use the package \verb!manyind! only if you are willing to keep the indexes stand \setindex{main}\index{time!here@now} +% When you are sure there is an entry \index{\"U...}. +\index{\"U@\indexcapstyle{\"U}\gobblepageref}% + +\index{\"Uber}% +\index{\"Uberhaupt}% + +% There is a nerdy way: +\index{\"N@\protect\nxtletre \protect\def \nwletre {\"O}\gobblepageref} +\index{\"P@\relax\gobblepageref} + +% Now look what happens if you leave out the next line +\index{\"Osterreich} + +% Similarly +\index{\A>@\protect\nxtletre \protect\def \nwletre {\AA}\gobblepageref} +\index{\AB@\relax\gobblepageref} + +\index{\AA ngstrom} + + \setindex{b1}\index{page range!risky@this $\vert$is$\vert$ complicated|)textbf} \index{page range|)textit}% -\sindex[b1]{page range!risky@this $\vert$is$\vert$ complicated|textbf} +%\sindex[b1]{page range!risky@this $\vert$is$\vert$ complicated|textbf} % -\setindex{a1}\index{page range!with risky label\label{range}} +\index{page range!with risky label\label{range}} % This label actually works and was used above in a \pageref{range} command. % \sindex[b1]{simpler!page range|)}% @@ -199,9 +228,9 @@ Use the package \verb!manyind! only if you are willing to keep the indexes stand % If you want the index in the table of contents, you may do % -% \clearpage -% \phantomsection -% \addcontentsline{toc}{chapter}{\indexname} +% \clearpage +% \phantomsection +% \addcontentsline{toc}{chapter}{\indexname} % % We have a command for this: @@ -213,6 +242,8 @@ Use the package \verb!manyind! only if you are willing to keep the indexes stand \setindex{main} \printindex +\sindex[b1]{page range!risky@this $\vert$is$\vert$ complicated|textbf} + \renewcommand{\indexname}{Index bis} \setindex{bis} \printindex @@ -248,4 +279,6 @@ One may embellish an index with letter headings, like this.\\ \printindex[main][Index with headings] + \end{document} + |