xindy(1)
π xindy β the xindy(1) manual, but make it bestie π
okay so first things first: the manual name is xindy, and this whole page is the manual for it. It's shipped as Release 2.5.1, dated 2022-01-02 β we'll get to the cute sign-off at the bottom, promise π«Ά
Settle in, grab a snack, because this one is a whole thing and it's honestly iconic.
β¨ NAME β¨
xindy β create sorted and tagged index from raw index. that's it. that's the whole vibe πΈ
π¦ 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 π
like, every short flag has a long-flag bestie. here's the full roster, no cap:
-V/--version-?/-h/--help-q/--quiet-v/--verbose-d/--debug(multiple times β yes, you can stack it π₯)-o/--out-file-t/--log-file-L/--language-C/--codepage-M/--module(multiple times β also stackable π)-I/--input-markup(supported:latex,xelatex,omega,xindy)
π DESCRIPTION π
xindy is the formatter-indepedent command of xindy β the flexible indexing system, and yes the original really does spell it "indepedent", we don't touch that, it's canon π It takes a raw index as input, and produces a merged, sorted and tagged index. The merging, the sorting, the tagging β all of that is controlled by xindy style files. main character energy honestly.
Files with the raw index are passed as arguments. If no arguments are passed, the raw index will be read from standard input. (yes, stdin. she's flexible like that.)
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.) β again, "introductionary" is their spelling, we're just the messenger π
If you want to produce an index for LaTeX documents, the command texindy(1) is probably more of interest for you. It is a wrapper for xindy that turns on many LaTeX conventions by default. like, it's the preppy version. slay.
π OPTIONS π
--version/-Vβ output version numbers of all relevant components and exit. bye bestie π--help/-h/-?β output usage message with options explanation.--quiet/-qβ Don't output progress messages. Output only error messages.--verbose/-vβ Output verbose progress messages. she's chatty and we love her.--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 β like, you have to, there's no default to fall back on π--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 little streams, bestie π--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 alatin, acp, aniso,ascii, orutf8encoding, in that order. (that order. in that exact order. do not come for the order π) Language modules are either placed in thelangor in thecontrib/langsub-directory of the modules base directory.--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. Whenxelatexoromegainput markup is used,utf8is always used as codepage, then this option is ignored β like, she's not even listening π 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.--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. pick your fighter βοΈ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β Startxindyin interactive mode. You will be in a xindy read-eval-loop where xindy language expressions are read and evaluated interactively. she's a REPL now, live laugh lisp π§--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. > β οΈ honestly? unless you're a dev or you're in a very rare situation, just don't touch this one. it's giving "employees only" door πͺ
π 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. two umlaut philosophies, both valid π
*-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
yes. klingon. qapla' π she contains multitudes.
π 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 >
π the manual literally left these as placeholders. we respect the honesty. no cap.
π 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. two install flavors, she auto-detects, we stan a self-aware queen π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, whenbbbistextbfor similar, we supply location attribute definitions that mimic MakeIndex's behaviour. For more complex usage, whenbbbis 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. (like, genuinely, they're asking. if that's you, go off π ) - 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. π yes they said "index rage", no we're not fixing the typo, it's part of the lore) The difference between MakeIndex page number tags and xindy location attributes was already explained in the previous item. - 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. (should. should. we're being honest here π« ) - 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 π₯
texindy(1), tex2xindy(1) β go read those next bestie, they're the supporting cast π«Ά
π 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.
π read that warranty line again. no warranty. none. zero. she said what she said.
and that's the whole page bestie π this was Release 2.5.1, dated 2022-01-02 β xindy, xindy(1), slay, periodt. go build an index that eats. πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: xindy 2.5.1.20160104-11build1
- ubuntu noble: xindy 2.5.1.20160104-11build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms