summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-02-15 00:55:44 +0000
committerKarl Berry <karl@freefriends.org>2009-02-15 00:55:44 +0000
commit35dfe7a6a088eb623a6f1a840fa573c4086a5c14 (patch)
tree19d40889ec8db713e67e1c66d604aa6d2297a72e
parent5bdca602c5c123a0b10fe2501cb34dad9e02fef6 (diff)
(belated?) amsmidx update, 14feb09
git-svn-id: svn://tug.org/texlive/trunk@12163 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/amscls/amsmidx.txt45
-rw-r--r--Master/texmf-dist/source/latex/amscls/amsmidx.dtx24
-rw-r--r--Master/texmf-dist/source/latex/amscls/amsmidx.ins16
-rw-r--r--Master/texmf-dist/tex/latex/amscls/amsmidx.sty10
4 files changed, 78 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/amscls/amsmidx.txt b/Master/texmf-dist/doc/latex/amscls/amsmidx.txt
new file mode 100644
index 00000000000..307c24ec39f
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/amscls/amsmidx.txt
@@ -0,0 +1,45 @@
+Instructions for using amsmidx.sty
+
+Put these commands in the preamble:
+
+ \usepackage{amsmidx}
+ \makeindex{<filename>}
+
+for example:
+
+ \makeindex{subject}
+ \makeindex{author}
+
+You may include as many indexes as you need using whatever file names
+make sense. Each \makeindex command will initiate the creation of a
+<filename>.idx file.
+
+To identify the index entries in the text:
+
+ \index{<filename>}{index term}
+
+This will populate the .idx files. Do not leave a space between the
+\index entry and the text being indexed; that leaves unsightly spaces
+in the output, and may also cause the page number for the index entry
+to be different from the page where the term actually appears.
+
+In the backmatter, insert \Printindex commands to print the indexes;
+the second argument gives the title to be printed at the top of the
+index:
+
+ \Printindex{<filename>}{First Index}
+ \Printindex{<filename>}{Second Index}
+
+When the file is processed, files of index terms, <filename>.idx,
+will be generated. To sort the index terms, process the .idx files
+separately with Makeindex; this will create <filename>.ind files,
+which will in turn be input by \Printindex the next time the .tex file
+is processed.
+
+To include a paragraph of comments below the index title, insert the
+text as an \indexcomment before the relevant \Printindex:
+
+ \indexcomment{Text of comments}
+ \Printindex{<filename>}{...}
+
+The \indexcomment text will be cleared after use.
diff --git a/Master/texmf-dist/source/latex/amscls/amsmidx.dtx b/Master/texmf-dist/source/latex/amscls/amsmidx.dtx
index 3692d6cc76c..b124f70e9f6 100644
--- a/Master/texmf-dist/source/latex/amscls/amsmidx.dtx
+++ b/Master/texmf-dist/source/latex/amscls/amsmidx.dtx
@@ -1,10 +1,10 @@
%%% ====================================================================
%%% @LaTeX-file{
%%% filename = "amsmidx.dtx",
-%%% version = "2.01",
-%%% date = "2004/08/03",
-%%% time = "14:45:42 EDT",
-%%% checksum = "63234 241 948 8307",
+%%% version = "2.02",
+%%% date = "2007/09/25",
+%%% time = "10:22:40 EDT",
+%%% checksum = "48989 241 948 8314",
%%% author = "American Mathematical Society",
%%% copyright = "Copyright 1995, 2004 American Mathematical Society,
%%% all rights reserved. Copying of this file is
@@ -73,7 +73,7 @@
% Standard file identification.
% \begin{macrocode}
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
-\ProvidesPackage{amsmidx}[2004/08/03 v2.01 multiple indexes for AMS classes]
+\ProvidesPackage{amsmidx}[2007/09/25 v2.02 multiple indexes for AMS classes]
% \end{macrocode}
%
% \section{User instructions}
@@ -119,7 +119,7 @@
%
% \section{Implementation}
%
-% \begin{macro}{makeindex}
+% \begin{macro}{\makeindex}
% Redefine \cn{makeindex} to create a new \fn{.idx} file with the
% name provided by argument |#1|.
% \begin{macrocode}
@@ -133,7 +133,7 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{index}
+% \begin{macro}{\index}
% Redefine \cn{index} to specify into which file/index the term is
% to be placed. Argument |#1| identifies the file, |#2| provides
% the text of the term to be indexed.
@@ -145,7 +145,7 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{@wrindex}
+% \begin{macro}{\@wrindex}
% \cs{@wrindex} checks to make sure that the requested file is available,
% and writes an entry into the file or emits an error message.
% \begin{macrocode}
@@ -169,8 +169,8 @@
% \end{macrocode}
% \end{macro}
%
-% \begin{macro}{printindex}
-% \begin{macro}{Printindex}
+% \begin{macro}{\printindex}
+% \begin{macro}{\Printindex}
% Redefine \cs{printindex} to specify the file to be included; provide
% an alternate command \cs{Printindex} that specifies both the file and
% the index title to be printed. Argument |#1| identifies the file,
@@ -194,8 +194,8 @@
% \end{macro}
% \end{macro}
%
-% \begin{macro}{indexcomment}
-% \begin{macro}{indexchap}
+% \begin{macro}{\indexcomment}
+% \begin{macro}{\indexchap}
% Format comments in a block somewhat narrower than the full page
% width, and redefine \cn{indexchap} to insert the block below the
% title, before starting the two-column index. Clear out
diff --git a/Master/texmf-dist/source/latex/amscls/amsmidx.ins b/Master/texmf-dist/source/latex/amscls/amsmidx.ins
new file mode 100644
index 00000000000..dc24b951829
--- /dev/null
+++ b/Master/texmf-dist/source/latex/amscls/amsmidx.ins
@@ -0,0 +1,16 @@
+\input docstrip.tex
+
+\askforoverwritefalse
+
+\keepsilent
+
+\preamble
+\endpreamble
+
+\usedir{tex/latex/amscls}
+
+\generate{
+ \file{amsmidx.sty}{\from{amsmidx.dtx}{}}
+}
+
+\endbatchfile
diff --git a/Master/texmf-dist/tex/latex/amscls/amsmidx.sty b/Master/texmf-dist/tex/latex/amscls/amsmidx.sty
index f8bae104430..37752d64d9d 100644
--- a/Master/texmf-dist/tex/latex/amscls/amsmidx.sty
+++ b/Master/texmf-dist/tex/latex/amscls/amsmidx.sty
@@ -9,10 +9,10 @@
%%% ====================================================================
%%% @LaTeX-file{
%%% filename = "amsmidx.dtx",
-%%% version = "2.01",
-%%% date = "2004/08/03",
-%%% time = "14:45:42 EDT",
-%%% checksum = "63234 241 948 8307",
+%%% version = "2.02",
+%%% date = "2007/09/25",
+%%% time = "10:22:40 EDT",
+%%% checksum = "48989 241 948 8314",
%%% author = "American Mathematical Society",
%%% copyright = "Copyright 1995, 2004 American Mathematical Society,
%%% all rights reserved. Copying of this file is
@@ -50,7 +50,7 @@
%%% }
%%% ====================================================================
\NeedsTeXFormat{LaTeX2e}[1995/06/01]
-\ProvidesPackage{amsmidx}[2004/08/03 v2.01 multiple indexes for AMS classes]
+\ProvidesPackage{amsmidx}[2007/09/25 v2.02 multiple indexes for AMS classes]
\renewcommand{\makeindex}[1]{%
\begingroup
\makeatletter