summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-01-17 23:33:59 +0000
committerKarl Berry <karl@freefriends.org>2010-01-17 23:33:59 +0000
commit8da7e5d94f9d209251bb11ac5aab3bd6255d545a (patch)
tree8ca58eacfa2bf5c7444f30654cad49efa1c38343 /Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex
parent40190d1a805efa22d48e4e5c85f4a3d3a1a5f983 (diff)
xeindex update (17jan10)
git-svn-id: svn://tug.org/texlive/trunk@16760 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex')
-rw-r--r--Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex28
1 files changed, 19 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex b/Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex
index 13d4b4b4d05..6fb65423530 100644
--- a/Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex
+++ b/Master/texmf-dist/doc/xelatex/xeindex/xeindex.tex
@@ -13,7 +13,7 @@
\setsansfont[Mapping=tex-text]{Arial}
\usepackage[paperwidth=23cm,paperheight=17.5cm,top=1.5cm,bottom=1.5cm,textwidth=14.5cm,right=1.5cm]{geometry}
-\ProduceFile{xeindex.sty}[xeindex][v.0.1][\the\year/\month/\day]
+\ProduceFile{xeindex.sty}[xeindex][v.0.2][\the\year/\month/\day]
\let\printmacro\PrintMacro
\newskip\macroskip
\def\PrintMacro#1{%
@@ -262,6 +262,17 @@ hand, MakeIndex automatically creates page ranges as soon as
an entry is found on at least three successive pages, unless you run it
with the "-r" option.
+If you want a comma in the right part of the entry, enclose
+the entire entry, minus the MakeIndex operator if any, between braces, e.g.:
+
+\begin{example}
+\IndexList{writers}{Kafka={Kafka, Franz}}
+\end{example}
+
+\noindent
+(This did not work in version 0.1, and now it's corrected
+thanks to Simon Spiegel who indicated it to me.)
+
\DescribeMacro{\StopIndexList\marg{lists}}\macroskip\baselineskip
\DescribeMacro{\StopIndex}\macroskip2\baselineskip
\DescribeMacro{\NoIndex\marg{text}}
@@ -479,15 +490,16 @@ associated macro is created.
\DefineMacro\xi@MakeEntry
This determines whether the entry starts with one
-of the MakeIndex operators.
+of the MakeIndex operators.
/
\newif\ifxi@NoWord
+\def\xi@exclam{!} \def\xi@at{@} \def\xi@bar{|}
\def\xi@MakeEntry#1#2={%
\def\xi@temp{#1#2}%
\xi@NoWordtrue
- \expandafter\unless\expandafter\if\noexpand#1!%
- \expandafter\unless\expandafter\if\noexpand#1@%
- \expandafter\unless\expandafter\if\noexpand#1|%
+ \unless\ifx\xi@temp\xi@exclam
+ \unless\ifx\xi@temp\xi@at
+ \unless\ifx\xi@temp\xi@bar
\xi@NoWordfalse
\fi
\fi
@@ -561,10 +573,8 @@ These are straightforward.
Finally, we patch "\printindex" so it won't be searched,
and sets xesearch's parameters.
/
-\let\xi@PrintIndex\printindex
-\def\printindex{\StopIndex\xi@PrintIndex}
-\SortByLength{pPsS}
-\SearchOnlyOne{pPsS}
+\let\xi@PrintIndex\printindex \def\printindex{\StopIndex\xi@PrintIndex}
+\SortByLength{pPsS} \SearchOnlyOne{pPsS}
\makeatother
/
\end{document}