New answers tagged

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{\...


1

You may want to call makeindex with the -r command line option that disable automatic range formation. Otherwise, but it seems overkill, process the argument of \colorred: \documentclass{book} \usepackage{color} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\colorred}{m} { \seq_set_split:Nnn \l_tmpa_seq { , } { #1 } \seq_set_map:NNn \...


Top 50 recent answers are included