xindy(1)
π NAME π
xindy β create sorted and tagged index from raw index. that's the whole entire vibe bestie, no cap π¦
β¨ SYNOPSIS β¨
xindy [-V?h] [-qv] [-d magic] [-o outfile.ind] [-t log] \
[-L lang] [-C codepage] [-M module] [-I input] \
[--interactive] [--mem-file=xindy.mem] \
[idx0 idx1 ...]
π«Ά GNU-Style Long Options for Short Options π«Ά
-V / --version
-? / -h / --help
-q / --quiet
-v / --verbose
-d / --debug (multiple times)
-o / --out-file
-t / --log-file
-L / --language
-C / --codepage
-M / --module (multiple times)
-I / --input-markup (supported: latex, xelatex, omega, xindy)
πΈ DESCRIPTION πΈ
okay so. xindy is the formatter-independent command of xindy, the flexible indexing system (yes the command and the system share a name, it's giving main character energy, we move π
). what it does: it takes a raw index as input, and produces a merged, sorted and tagged index. and the merging, the sorting, and the tagging? all controlled by xindy style files. periodt.
the files with the raw index get passed as arguments. pass no arguments at all and the raw index will be read from standard input. easy π
xindy is completely described in its manual that you will find on its Web Site, http://www.xindy.org/. a good introductionary description appears in the indexing chapter of the LaTeX Companion (2nd ed.) π
if you want to produce an index for LaTeX documents, the commandtexindy(1)is probably more of interest for you. it is a wrapper forxindythat turns on many LaTeX conventions by default. like, it's the preppy version, iykyk π
π OPTIONS π
--version/-Vβ output version numbers of all relevant components and exit. bye π--help/-h/-?β output usage message with options explanation.--quiet/-qβ don't output progress messages. output only error messages. shhh π€«--verbose/-vβ output verbose progress messages. she's chatty π¬--debugmagic /-dmagic β output debug messages, this option may be specified multiple times. magic determines what is output:scriptβ internal progress messages of driver scriptskeep_tmpfilesβ don't discard temporary filesmarkupβ output markup trace, as explained in xindy manuallevel=nβ log level,nis0(default),1,2, or3
--out-fileoutfile.ind /-ooutfile.ind β output index to file outfile.ind. if this option is not passed, the name of the output file is the base name of the first argument and the file extensionind. if the raw index is read from standard input, this option is mandatory. no stdin slacking, bestie π€--log-filelog.ilg /-tlog.ilg β output log messages to file log.ilg. these log messages are independent from the progress messages that you can influence with--debugor--verbose. two separate lanes, we don't mix π¦--languagelang /-Llang β the index is sorted according to the rules of language lang. these rules are encoded in a xindy module created bymake-rules.- if no input encoding is specified via
--codepageor enforced by input markup, a xindy module for that language is searched with a latin, a cp, an iso, ascii, or utf8 encoding, in that order. - language modules are either placed in the lang or in the
contrib/langsub-directory of the modules base directory.
- if no input encoding is specified via
--codepageenc /-Cenc β the raw input is in input encoding enc. this information is used to select the correct xindy sort module and output encoding of letter group headings.- when
xelatexoromegainput markup is used,utf8is always used as codepage, then this option is ignored. π - if raw input is in LICR,
texindy(1)should be used instead ofxindy(1). it will activate a mapping ofinputencencoding forlatexinput markup to the chosen raw input codepage.
- when
--modulemodule /-Mmodule β load the xindy modulemodule.xdy. this option may be specified multiple times. the modules are searched in the xindy search path that can be changed with the environment variableXINDY_SEARCHPATH.--input-markupinput /-Iinput β specifies the input markup of the raw index. supported values for input arelatex,xelatex,omega, andxindy.latexandxelatexinput markup is the one that is emitted by default from the LaTeX kernel, or by theindexmacro package of David Jones.^^-notation of single byte characters is supported. remapping of LICR-encoded characters is not done; usetexindy(1)for that. use input markuplatexif you use standard LaTeX or pdfLaTeX and use input markupxelatexif you use XeLaTeX or LuaLaTeX.omegainput markup is likelatexinput markup, but with Omega's^^-notation as encoding for non-ASCII characters.xindyinput markup is specified in the xindy manual.
--interactiveβ start xindy in interactive mode. you will be in a xindy read-eval-loop where xindy language expressions are read and evaluated interactively. it's giving REPL, it's giving slay π--mem-filexindy.mem β this option is only usable for developers or in very rare situations. the compiled xindy kernel is stored in a so-called memory file, canonically namedxindy.mem, and located in the xindy library directory. this option allows to use another xindy kernel. β οΈ
π SUPPORTED LANGUAGES / CODEPAGES π
the following languages are supported:
πΈ Latin scripts
albanian gypsy portuguese
croatian hausa romanian
czech hungarian russian-iso
danish icelandic slovak-small
english italian slovak-large
esperanto kurdish-bedirxan slovenian
estonian kurdish-turkish spanish-modern
finnish latin spanish-traditional
french latvian swedish
general lithuanian turkish
german-din lower-sorbian upper-sorbian
german-duden norwegian vietnamese
greek-iso polish
German recognizes two different sorting schemes to handle umlauts: normally, ae is sorted like ae, but in phone books or dictionaries, it is sorted like a. the first scheme is known as DIN order, the second as Duden order. (yes they really do fight about umlauts, iconic honestly π
)
*-iso language names assume that the raw index entries are in ISO 8859-9 encoding.
gypsy is a northern Russian dialect. π»
π¦ Cyrillic scripts
belarusian mongolian serbian
bulgarian russian ukrainian
macedonian
β Other scripts
greek klingon
(not me being obsessed that klingon is a legit supported sorting language. ate. π)
π Available Codepages
This is not yet written. you can look them up in your xindy distribution, in the modules/lang/language/ directory (where language is your language). they are named variant-codepage-lang.xdy, where variant- is most often empty (for german, it's din5007 and duden; for spanish, it's modern and traditional, etc.)
< Describe available codepages for each language >
< Describe relevance of codepages (as internal representation) for
LaTeX inputenc >
π¦ ENVIRONMENT π¦
XINDY_SEARCHPATHβ a list of directories where the xindy modules are searched in. no subtree searching is done (as in TDS-conformant TeX).- if this environment variable is not set, the default is used:
".:"modules_dir":"modules_dir"/base"
- modules_dir is determined at run time, relative to the xindy command location: either it's
../modules, that's the case for opt-installations. or it's../lib/xindy/modules, that's the case for usr-installations.
XINDY_LIBDIRβ library directory wherexindy.memis located.- the modules directory may be a subdirectory, too.
π COMPATIBILITY TO MAKEINDEX π
xindy does not claim to be completely compatible with MakeIndex, that would prevent some of its enhancements. that said, we strive to deliver as much compatibility as possible. the most important incompatibilities are:
- for raw index entries in LaTeX syntax,
\index{aaa|bbb}is interpreted differently. for MakeIndexbbbis markup that is output as a LaTeX tag for this page number. for xindy, this is a location attribute, an abstract identifier that will be later associated with markup that should be output for that attribute.- for straight-forward usage, when
bbbistextbfor similar, we supply location attribute definitions that mimic MakeIndex's behaviour. - for more complex usage, when
bbbis not an identifier, no such compatibility definitions exist and may also not been created with current xindy. such a situation is reported to exist for thememoirLaTeX class. - programmers who know Common Lisp and Lex and want to work on a remedy should please contact the author. π
- for straight-forward usage, when
- if you have an index rage and a location attribute, e.g.,
\index{key\(attr}starts the range, one needs (1) to specify that attribute in the range closing entry as well (i.e., as\index{key\)attr}) and (2) one needs to declare the index attribute in an xindy style file.- MakeIndex will output the markup
\attr{page1--page2}for such a construct. this is not possible to achieve in xindy, output will be\attrMarkup{page1}--\attrMarkup{page2}. (this is actually considered a bug, but not a high priority one. π) - the difference between MakeIndex page number tags and xindy location attributes was already explained in the previous item.
- MakeIndex will output the markup
- the MakeIndex compatibility definitions support only the default raw index syntax and markup definition. it is not possible to configure raw index parsing or use a MakeIndex style file to describe output markup.
π KNOWN ISSUES π
- option
-qalso prevents output of error messages. error messages should be output on stderr, progress messages on stdout. - there should be a way to output the final index to stdout. this would imply
-q, of course. - LaTeX raw index parsing should be configurable.
- codepage
utf8should be supported for all languages, and should be used as internal codepage for LaTeXinputencre-encoding.
π SEE ALSO π
π AUTHOR π
Joachim Schrod
β LEGALESE β
Copyright (c) 2004-2014 by Joachim Schrod.
xindy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
and that's the whole page bestie, you're officially an xindy girlie now π«Ά go make some gorgeously sorted indexes, i believe in you π
Release 2.5.1 Β· 2020-05-28 Β· xindy(1) β ok that's the version and date, dropping it here like a lil signature, bye bestieee πΈβ¨
π¦ where this page comes from
- alpine 3.24: texmf-dist-binextra-doc 2026.0-r0 Β· LPPL-1.0 AND LPPL-1.1 AND LPPL-1.2 AND LPPL-1.3a AND LPPL-1.3c AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms