
¿Puedo usar makeindex
pero sin clasificar? Esta pregunta parece peculiar, pero me gustaría usar el índice mientras las entradas del índice (por ejemplo, \index{Peace}
en el documento) ya estén ordenadas correctamente según el alfabeto islandés. La razón es que xindy
la clasificación del islandés (por ahora) es incorrecta (según esta respuesta)
Respuesta1
Su pregunta no es muy clara, pero si tomo el MWE de la pregunta vinculada y agrego aproximaciones ascii a las cadenas antes, @
makeindex ordena según sea necesario. (Es posible que tenga el orden de clasificación incorrecto, pero la idea es que si el orden es A Á B, entonces cambie Á a cualquier cosa que se clasifique entre A y B (digamos A1) y coloque la cadena destrozada antes @
para que solo se use para ordenar.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[]{makeidx}
\usepackage[icelandic, czech]{babel}
\makeindex
\begin{document}
Hello
\index{z1ari@Þari - Franz Eugen Kohler, Public Domain}
\index{z1istill@Þistill - ŠARŽÍK František, COPYRIGHT/PD}
\index{O2nd@Önd - Karney, Lee, PD}
\index{a3d@Æðarkóngur - Whitehouse, Laura L., PD}
\index{Avo1@Avókadó - Forest \& Kim [[p:2684;Starr]], CC-BY}
\index{Aud1@Auðnutittlingur - Arnstein Rønning, CC BY-SA 3.0}
\index{Asni@Asni - Zicha Ondřej, COPYRIGHT/CC-BY-NC}
\index{A1@Á - hvalur.org, CC Unported Licence}
\index{A1lft@Álft - Bukovský Jiří, COPYRIGHT/CC-BY-NC}
\index{A1lka@Álka - Jack Spellingbacon from Scotland, CC BY-SA 3.0}
\printindex
\end{document}
Respuesta2
No recomendado
Por si acaso alguien necesita crear un índice sin ordenarlo xindy
. Estoy agregando un número del contador a los términos del índice y se convierten en parte del proceso de clasificación. De todos modos perdemos grupos de letras.
lualatex mal-xindy-nosorting.tex
xindy -M texindy -M makeindex mal-xindy-nosorting.idx
lualatex mal-xindy-nosorting.tex
El generado idx
se ve así:
\indexentry{1 dog@dog|hyperpage}{1}
\indexentry{2 mouse@mouse|hyperpage}{1}
\indexentry{3 horse@horse|hyperpage}{1}
\indexentry{4 cat@cat|hyperpage}{1}
\indexentry{5 bird@bird|hyperpage}{1}
\indexentry{6 girafa@girafa|hyperpage}{1}
\indexentry{7 zebra@zebra|hyperpage}{1}
\indexentry{8 jellyfish@jellyfish|hyperpage}{1}
\indexentry{9 lion@lion|hyperpage}{1}
\indexentry{10 cow@cow|hyperpage}{1}
\indexentry{11 octopus@octopus|hyperpage}{1}
\indexentry{12 ant@ant|hyperpage}{1}
\indexentry{13 worm@worm|hyperpage}{1}
\indexentry{14 wolf@wolf|hyperpage}{1}
\indexentry{15 owl@owl|hyperpage}{1}
Y el contenido del ind
archivo es este:
\begin{theindex}
\providecommand*\lettergroupDefault[1]{}
\providecommand*\lettergroup[1]{%
\par\textbf{#1}\par
\nopagebreak
}
\lettergroupDefault{default}
\item dog, \hyperpage{1}
\item mouse, \hyperpage{1}
\item horse, \hyperpage{1}
\item cat, \hyperpage{1}
\item bird, \hyperpage{1}
\item girafa, \hyperpage{1}
\item zebra, \hyperpage{1}
\item jellyfish, \hyperpage{1}
\item lion, \hyperpage{1}
\item cow, \hyperpage{1}
\item octopus, \hyperpage{1}
\item ant, \hyperpage{1}
\item worm, \hyperpage{1}
\item wolf, \hyperpage{1}
\item owl, \hyperpage{1}
\end{theindex}
También adjunto el tex
archivo y una vista previa de la página 2 en pdf
:
%! *latex mal-xindy-nosorting.tex
%! xindy -M texindy -M makeindex mal-xindy-nosorting.idx
%! *latex mal-xindy-nosorting.tex
\documentclass{article}
\pagestyle{empty}
\usepackage[colorlinks]{hyperref}
\usepackage{makeidx}
\makeindex
\begin{document}
The first paragraph of text.
\let\oldindex=\index
\newcount\malcount \malcount=0
\def\index#1{\advance\malcount by 1%
\oldindex{\the\malcount\space#1@#1}%
}% End of \index redefinition...
\index{dog}\index{mouse}\index{horse}
\index{cat}\index{bird}\index{girafa}\index{zebra}
\index{jellyfish}\index{lion}\index{cow}\index{octopus}
\index{ant}\index{worm}\index{wolf}\index{owl}
\begingroup\def\thispagestyle#1{}\printindex\endgroup
\end{document}