
I encountered the following problems:
> ----xindy.sty----
> \RequirePackage{keyval}
> %
> %%
> %% various Indexstyles
> %%
> %
> \def\newindexstyle#1#2{\expandafter\gdef\csname xindy@style@#1\endcsname{#2}}
> \newindexstyle{page}{\thepage}
> \newindexstyle{chapter}{\thechapter-\thepage}
LaTeX crashes on this line, if \documentstyle is `article'. It seems
that \thechapter is not known then (with `book' it works fine) and the
above definition fails. Maybe this definition must be included
depending on the current document style.
Another problem I found is that the quoting of the backslash does not
work as expected in the following case:
---snip
\documentclass{book}
\makeindex
\usepackage{xindy}
\begin{document}
some text
\indexindy[attr=definition]{Euler}
\indexindy[open-range,attr=definition]{Euler,\textsc{Euler}}
\indexindy[attr=see,xref="Euler"]{Personen;Mathematiker}
\indexindy[close-range,attr=definition]{Euler,\textsc{Euler}}
\indexindy{Layer 0;Layer 1,\textsc{Layer 1};Layer 2}
\indexstyle{chapter}
\indexindy{Index the comma{,} too}
\newcommand{\foo}[1]{\indexindy[attr=see]{\texttt{#1}}}
\foo{blubber}
\foo{bla}
\foo{fasel}
\end{document}
--snap
which yields
---
(indexentry :tkey ( ( "Euler" ) ) :attr "definition" :locref "1")
(indexentry :tkey ( ( "Euler" "\textsc {Euler}" ) ) :attr "definition" :open-ra
nge :locref "1")
(indexentry :tkey ( ( "Personen" ) ( "Mathematiker" ) ) :attr "see" :xref ("Eu
ler"))
(indexentry :tkey ( ( "Euler" "\textsc {Euler}" ) ) :attr "definition" :close-r
ange :locref "1")
(indexentry :tkey ( ( "Layer 0" ) ( "Layer 1" "\textsc {Layer 1}" ) ( "Layer
2" ) ) :locref "1")
(indexentry :tkey ( ( "Index the comma{,} too" ) ) :locref "0-1")
(indexentry :tkey ( ( "\texttt {blubber}" ) ) :attr "see" :locref "0-1")
(indexentry :tkey ( ( "\texttt {bla}" ) ) :attr "see" :locref "0-1")
(indexentry :tkey ( ( "\texttt {fasel}" ) ) :attr "see" :locref "0-1")
---
Here, the backslashes are *not* quoted. Missed I something?
Next question: Why are the location references in the form <x>-<y>. In
the style file there is explicitly set
%%
%% select style
%%
%
\def\indexstyle#1{\def\xindy@style{\csname xindy@style@#1\endcsname}}
\indexstyle{page}
^^^^^^^^^^^^^^^^^
though it doesn't produce page numbers as expected.
Seems very promising :)
Bye
--
======================================================================
Roger Kehr kehr@iti.informatik.th-darmstadt.de
Computer Science Department Technical University of Darmstadt