New answers tagged

3

The search index is implemented with a /PieceInfo entry in the catalog: /PieceInfo << /SearchIndex << /PDXFile 13 0 R /ModID (215673870f8f9142afe419c9ca1a4620) /Index1File 14 0 R /IndexFile 15 0 R >> >> The index files it points to are binary streams. The description of the /PieceInfo dictionary in the pdf reference says: PDF ...


5

I've just created a new package that adds support for the Unicode collation algorithm for LuaTeX - Lua-UCA. I've already added support for few languages, like Czech, German or Norwegian. We can use it instead of Xindex built in sorting mechanism. Try the following version of xindex-norsk.lua: -----------------------------------------------------------------...


1

The default “page compositor” is a hyphen. You can change it to --- by using a personal style. The simplest way is to generate an .ist file in the working directory. \begin{filecontents*}{emdash.ist} page_compositor "---" \end{filecontents*} \documentclass[a4paper]{scrbook} \usepackage{imakeidx} \makeindex[options=-s emdash] \renewcommand*\thepage{\...


0

For completeness, and with thanks to David Carlisle's and leandriis' comments, this is what does the job for me: \documentclass{article} \usepackage[english]{babel} \usepackage[margin=2cm]{geometry}% just for the example \usepackage{xcolor} \usepackage{amsthm} \usepackage{thmtools} \usepackage{mdframed} \usepackage{etoolbox} \makeatletter \patchcmd\thmt@...


1

You can patch \@wrindex to use the special counter. Here I mocked your setup, adjust to your setting. \documentclass{book} \usepackage{imakeidx} \usepackage{xpatch} \makeindex \newcounter{legalsection}[chapter] \renewcommand{\thelegalsection}{\thechapter-\threedigits{legalsection}} \newcommand{\threedigits}[1]{% \ifnum\value{#1}<10 0\fi \ifnum\...


2

The separator for multiple seealso entries is defined in the file makeindex.xdy, which is normally located in the xindy installation directory. If you create an alternative makeindex.xdy file in the directory where your .tex file is stored then the alternative file is loaded. For example the following, which outputs a comma without errors for the first ...


Top 50 recent answers are included