diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xeindex/xeindex.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xeindex/xeindex.sty | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xeindex/xeindex.sty b/Master/texmf-dist/tex/xelatex/xeindex/xeindex.sty index 098e44a34ac..89ed574b7dc 100644 --- a/Master/texmf-dist/tex/xelatex/xeindex/xeindex.sty +++ b/Master/texmf-dist/tex/xelatex/xeindex/xeindex.sty @@ -5,9 +5,9 @@ % without the `produce' option. % % SOURCE: xeindex.tex -% DATE: 2009/10/24 -% VERSION: v.0.1 -\ProvidesPackage{xeindex}[2009/10/24 v.0.1 Automatic index for XeLaTeX.] +% DATE: 2010/01/17 +% VERSION: v.0.2 +\ProvidesPackage{xeindex}[2010/01/17 v.0.2 Automatic index for XeLaTeX.] \RequirePackage{makeidx,xesearch} \makeatletter \newif\ifxi@mark @@ -104,12 +104,13 @@ \fi } \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 @@ -159,8 +160,6 @@ #1% \egroup } -\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 |