texindy(1)
πΈ NAME πΈ
okay bestie, meet texindy(1) from the xindy family β the LaTeX-specific girlie whose whole thing is to create a sorted and tagged index from a raw LaTeX index. iconic behavior. β¨
π SYNOPSIS π
texindy [-V?h] [-qv] [-iglr] [-d magic] [-o outfile.ind] [-t log] \
[-L lang] [-C codepage] [-M module] [idx0 idx1 ...]
π GNU-Style Long Options for Short Options
-V/--version-?/-h/--help-q/--quiet-v/--verbose-i/--stdin-g/--german-l/--letter-ordering-r/--no-ranges-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)
π¦ DESCRIPTION π¦
okay so texindy is the LaTeX-specific command of xindy, the flexible indexing system. It takes a raw index as input, and produces a merged, sorted and tagged index. Merging, sorting, and tagging is controlled by xindy modules, with a convenient set already preloaded. slay. π
Files with the raw index are passed as arguments. If no arguments are passed, the raw index will be read from standard input.
A good introductionary description of texindy appears in the indexing chapter of the LaTeX Companion (2nd ed.)
If you want to produce an index for LaTeX documents with special index markup, the command xindy(1) is probably more of interest for you.
texindy is an approach to merge support for the make-rules framework, own xindy modules (e.g., for special LaTeX commands in the index), and a reasonable level of MakeIndex compatibility. periodt. π
β¨ 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.--debugmagic,-dmagic β output debug messages; this option may be specified multiple times. magic determines what is output:scriptβ internal progress messages of driver scripts.keep_tmpfilesβ donβt discard temporary files.markupβ output markup trace, as explained inxindymanual.level=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.
bestie, fr fr: if the raw index is coming from standard input, -o is not optional. it is mandatory. no cap. π
--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.--languagelang,-Llang β the index is sorted according to the rules of language lang. These rules are encoded in axindymodule created by make-rules.
If no input encoding is specified via --codepage or 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. iykyk β¨
--codepageenc,-Cenc β there are two different situations and use cases for this option.- Input markup is
latex(the default).
- Input markup is
Then texindyβs raw input is assumed to be encoded in LaTeX Internal Character Representation (LICR). I.e., non-ASCII characters are encoded as command sequences. This option tells xindy the encoding it shall use for letter group headings. (Additionally it specifies the encoding used internally for sorting -- but that doesnβt matter for the result.)
Only LICR encodings for Latin script alphabets are supported; more precisely characters that are in LaTeX latin1, latin2, and latin3 LICR encodings.
Even when you specify utf8 as codepage, only these characters will be known. But if you use non-Latin alphabets, you probably use (or should use) XeLaTeX or LuaLaTeX and then you have a different input markup.
- Input markup is
xelatexoromega.
Then this option is ignored; codepage utf8 is enforced.
texindyβs raw input is assumed to be UTF-8 encoded, LICR is not used.
--modulemodule,-Mmodule β load thexindymodulemodule.xdy. This option may be specified multiple times. The modules are searched in thexindysearch 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, andomega.
latex input markup is the one that is emitted by default from the LaTeX kernel, or by the index macro package of David Jones, when used with standard LaTeX or pdfLaTeX. ^^-notation of single byte characters is supported. Usage of LaTeXβs inputenc package is assumed as well, i.e., raw input is encoded in LICR.
xelatex input markup is like latex, but without inputenc usage. Raw input is encoded in UTF-8. LuaLaTeX has the same input markup, thereβs no special option value for it.
omega input markup is like latex input markup, but with Omegaβs ^^-notation as encoding for non-ASCII characters. LICR encoding is not used then, and utf8 is enforced to be the codepage for sorting and for output of letter group headings.
π SUPPORTED LANGUAGES / CODEPAGES π
The following languages are supported:
π Latin scripts
albanian,gypsy,portuguesecroatian,hausa,romanianczech,hungarian,russian-isodanish,icelandic,slovak-smallenglish,italian,slovak-largeesperanto,kurdish-bedirxan,slovenianestonian,kurdish-turkish,spanish-modernfinnish,latin,spanish-traditionalfrench,latvian,swedishgeneral,lithuanian,turkishgerman-din,lower-sorbian,upper-sorbiangerman-duden,norwegian,vietnamesegreek-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. the more you know. β
*-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,serbianbulgarian,russian,ukrainianmacedonian
π§ Other scripts
greek,klingon
π 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.)
still holding space for:< Describe available codepages for each language >< Describe relevance of codepages (as internal representation) for LaTeX inputenc >
π TEXINDY STANDARD MODULES π
There is a set of texindy standard modules that help to process LaTeX index files. Some of them are automatically loaded. Some of them are loaded by default, this can be turned off with a texindy option. Others may be specified as --module argument to achieve a specific effect.
π€ Sorting
word-orderβ Default β a space comes before any letter in the alphabet:index styleis listed beforeindexing. Turn it off with option-l.letter-orderβ Add-on β spaces are ignored:index styleis sorted afterindexing.keep-blanksβ Add-on β leading and trailing white space (blanks and tabs) are not ignored; intermediate white space is not changed.ignore-hyphenβ Add-on β hyphens are ignored:ad-hocis sorted asadhoc.ignore-punctuationβ Add-on β all kinds of punctuation characters are ignored: hyphens, periods, commas, slashes, parentheses, and so on.numeric-sortβ Auto β numbers are sorted numerically, not like characters:V64appears beforeV128.
π’ Page Numbers
page-rangesβ Default β appearances on more than two consecutive pages are listed as a range:1--4. Turn it off with option-r.ff-rangesβ Add-on β uses implicitffnotation for ranges of three pages, and explicit ranges thereafter:2f, 2ff, 2--6.ff-ranges-onlyβ Add-on β uses only implicit ranges:2f, 2ff.book-orderβ Add-on β sorts page numbers with common book numbering scheme correctly -- Roman numerals first, then Arabic numbers, then others:i, 1, A.
π¨ Markup and Layout
texβ Auto β handles basic TeX conventions.latex-loc-fmtsβ Auto β provides LaTeX formatting commands for page number encapsulation.latexβ Auto β handles LaTeX conventions, both in raw index entries and output markup; impliestex.makeindexβ Auto β emulates the default MakeIndex input syntax and quoting behavior.latin-lettergroupsβ Auto β layout contains a single Latin letter above each group of words starting with the same letter.german-styβ Add-on β handles umlaut markup of babelβs german and ngerman options.
π COMPATIBILITY TO MAKEINDEX π
okay so real talk: xindy does not claim to be completely compatible with MakeIndex β because being fully compatible would block some of its glow-up enhancements. That said, we strive to deliver as much compatibility as possible. The most important incompatibilities are these lil chaos gremlins:
- For raw index entries in LaTeX syntax,
\index{aaa|bbb}is interpreted differently. For MakeIndex,bbbis markup that gets output as a LaTeX tag for this page number. For xindy, this is a location attribute β an abstract identifier that will later be 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. Slay. - For more complex usage, when
bbbis not an identifier, no such compatibility definitions exist β and current xindy may also not have been able to create them. 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. (This could be you, bestie π)
- For straight-forward usage, when
- If you have an index rage and a location attribute, e.g.,
\index{key\(attr}starts the range, you need (1) to specify that attribute in the range closing entry as well (i.e., as\index{key\)attr}) and (2) 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.
πΈ ENVIRONMENT πΈ
TEXINDY_AUTO_MODULEβ this is the name of the xindy module that loads all auto-loaded modules. The default istexindy. β¨
π AUTHOR π
Joachim Schrod β that's the author, periodt. π
β¨ LEGALESE β¨
Copyright (c) 2004-2014 by Joachim Schrod.
texindy 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 manual, bestie β this page is from texindy(1), Release 2.5.1, dated 2022-01-02. Bye! π«Άβ¨
π¦ 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