texlive[49874] Master/texmf-dist: manyind (30jan19)

commits+karl at tug.org commits+karl at tug.org
Thu Jan 31 00:07:36 CET 2019


Revision: 49874
          http://tug.org/svn/texlive?view=revision&revision=49874
Author:   karl
Date:     2019-01-31 00:07:36 +0100 (Thu, 31 Jan 2019)
Log Message:
-----------
manyind (30jan19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/manyind/README.md
    trunk/Master/texmf-dist/doc/latex/manyind/mind.html
    trunk/Master/texmf-dist/doc/latex/manyind/mindsample.pdf
    trunk/Master/texmf-dist/doc/latex/manyind/mindsample.tex
    trunk/Master/texmf-dist/tex/latex/manyind/manyind.sty

Modified: trunk/Master/texmf-dist/doc/latex/manyind/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/manyind/README.md	2019-01-30 22:10:46 UTC (rev 49873)
+++ trunk/Master/texmf-dist/doc/latex/manyind/README.md	2019-01-30 23:07:36 UTC (rev 49874)
@@ -1,5 +1,5 @@
 Package manyind.sty, Wilberd van der Kallen 2019.  
-Date of last change of _anything_ in the bundle 2019/01/07  
+Date of last change of _anything_ in the bundle 2019/01/29  
  
  This package provides support for many indexes, leaving all the bookkeeping to LaTeX and
  makeindex. No extra programs or files are needed. One runs latex and makeindex as if

Modified: trunk/Master/texmf-dist/doc/latex/manyind/mind.html
===================================================================
--- trunk/Master/texmf-dist/doc/latex/manyind/mind.html	2019-01-30 22:10:46 UTC (rev 49873)
+++ trunk/Master/texmf-dist/doc/latex/manyind/mind.html	2019-01-30 23:07:36 UTC (rev 49874)
@@ -9,7 +9,7 @@
 
 <H2>Just run latex and makeindex as if there is one index only</H2>
  The package
-<A HREF="manyind.sty">manyind.sty</A> (version 2019/01/07) 
+<A HREF="manyind.sty">manyind.sty</A> (version 2019/01/28) 
  provides support for many indexes, leaving all the bookkeeping to LaTeX and makeindex. 
  No extra programs or files are needed. One runs latex and makeindex as if there is 
  just one index. In the main file one puts commands like 
@@ -16,7 +16,7 @@
  \setindex{main} 
  to steer the flow.
  
- Some features of makeindex may no longer work.
+ Some features of makeindex do no longer work.
  
 
 <P>The sample file <A HREF="mindsample.tex">mindsample.tex</A>

Modified: trunk/Master/texmf-dist/doc/latex/manyind/mindsample.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/manyind/mindsample.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/manyind/mindsample.tex	2019-01-30 22:10:46 UTC (rev 49873)
+++ trunk/Master/texmf-dist/doc/latex/manyind/mindsample.tex	2019-01-30 23:07:36 UTC (rev 49874)
@@ -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}
 
+\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 @@
 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 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 @@
 
 \setindex{bis}\index{bis}
 
+
 \setindex{main}\index{delta!vardelta}
 
 
@@ -181,16 +190,36 @@
 
 \setindex{main}\index{time!here at 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 at this $\vert$is$\vert$ complicated|)textbf}
 
 
 \index{page range|)textit}%
 
-\sindex[b1]{page range!risky at this $\vert$is$\vert$ complicated|textbf}
+%\sindex[b1]{page range!risky at 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 @@
 
 % 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 @@
 \setindex{main}
 \printindex
 
+\sindex[b1]{page range!risky at this $\vert$is$\vert$ complicated|textbf}
+
 \renewcommand{\indexname}{Index bis}
 \setindex{bis}
 \printindex
@@ -248,4 +279,6 @@
 \printindex[main][Index with headings]
 
 
+
 \end{document}
+

Modified: trunk/Master/texmf-dist/tex/latex/manyind/manyind.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/manyind/manyind.sty	2019-01-30 22:10:46 UTC (rev 49873)
+++ trunk/Master/texmf-dist/tex/latex/manyind/manyind.sty	2019-01-30 23:07:36 UTC (rev 49874)
@@ -14,13 +14,13 @@
 
 
 \ProvidesPackage{manyind}
-  [2019/01/09
+  [2019/01/28
   many indexes]
 
 \RequirePackage{makeidx}
 
 
-\AtBeginDocument{\def\ind at nr#1{\string\indnr\mindchoice d\gr at bltr#1-\relax b #1}%
+\AtBeginDocument{\def\ind at nr#1{\string\indnr\mindchoice d\gr at bltr#1-\relax b{} #1}%
 \ifx\@@wrindex\undefined
 \def\@wrindex#1{\@bsphack 
 \protected at write
@@ -101,8 +101,12 @@
 
 \newcommand{\gr at bltr}{\relax}%
 
-\def\gr at bltr#1#2\relax{\ifcat A#1\the\uccode`#1\else 60\fi}% to keep "a" and "A" together.
+\def\gr at bltr#1#2\relax{\ifcat A#10\the\uccode`#1\else 060\fi}%
+% to keep "a" and "A" together.
 
+\newcommand{\altsort}% to place some entries after the alphabet
+{\def\gr at bltr##1##2\relax{\ifcat A##10\the\uccode`##1\else##1\fi}}
+
 % But first some code for embellishing an index. Our hacking brakes the insertion of 
 % \indexspace at appropriate places. We have to work hard to restore that. While we
 % are at it, we may as well add the possibility to insert a letter T after the
@@ -117,11 +121,14 @@
 \newcommand{\mindc at pitalhead}[1]{% Preparing for a heading; not printed.
   \protected at write
     \@indexfile {}{\string \indexentry
-    {\string\indnr \mindchoice d\gr at bltr#1\relax a #1@\protect\nxtletre
+    {\string\indnr \mindchoice d\gr at bltr#1\relax a @\protect\nxtletre
     \protect\def\protect\nwletre{#1}\string\jmptonine}{9}}%          
 }%
 
+\newcommand{\extraheaders}{\relax}
+
 \newcommand{\capitals at inindex}[1]{% Will be called by \mnew at index with full alphabet.
+\extraheaders
 \mfind at capitals#1\relax}%
 
 \newcommand{\mfind at capitals}{\relax}%
@@ -138,15 +145,12 @@
 
 \newcommand{\proc at letter}{\relax}% 
 
-\def\proc at letter#1{\long\def\item{\m at olditem}\ifx#1\relax\else\indexcapstyle{\nwletre}\fi
-\ifx#1\indnr\expandafter\ja@\else #1\fi}%
+\def\proc at letter#1#2{\long\def\item{\m at olditem}%
+\ifx#1\relax\else\indexcapstyle{\nwletre}\fi\fi#1}%
 
 \newcommand{\m at olditem}{\relax}%
 
-\newcommand{\ja@}{\relax}
 
-\def\ja@#1 {\fi}% Mysterious. Seems necessary. 
-
 % All this just to embellish an index. Now more support for multiple indexes.
 
 \newcommand{\setindex}[1]{%
@@ -188,8 +192,7 @@
 \ifnum\c at multindctr=999%
   \protected at write
     \@indexfile {}{\string \indexentry
-    {\string\indnr 999b @\string\nxtletre
-    \string\mindcutpoint\string\jmptonine}{9}}%                              
+    {\string\indnr 999b @\string\mindcutpoint\string\jmptonine}{9}}%                              
   \@esphack
 \fi
 \addtocounter{multindctr}{-1}%
@@ -200,8 +203,8 @@
 \@esphack 
 \protected at write
     \@indexfile {}{\string \indexentry
-    {\string\indnr\the\c at multindctr d91a @\protect\nxtletre\protect\def
-    \protect\nwletre{\relax}\string\jmptonine
+    {\string\indnr\the\c at multindctr d091 @\string
+    \relax\string\jmptonine% restores \item
 }{9}}% 
 \protected at write
     \@indexfile {}{\string \indexentry
@@ -216,4 +219,3 @@
 }%
 
 \endinput
-



More information about the tex-live-commits mailing list