Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
4 votes
Accepted

A Disappearing Index Entry with Idxlayout

I put the example on Overleaf at https://www.overleaf.com/read/gnzhpncbswqp which makes it easy to try various texlive releases (back to 2014) your index fails in 2018 or older and works in texlive ...
David Carlisle's user avatar
3 votes
Accepted

On the Placement of a "See Also" Index Comment

You want a version of |see that does not discard the page number: \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage% hmmm \makeindex %\usepackage[font=normalsize]{idxlayout} \...
David Carlisle's user avatar
3 votes
Accepted

How to use multiple fonts in index?

makeindex supports a form \index{sort-text@typset version} unfortunately, unlike formatting page numbers if the typeset version is a styled version of the text used for sorting you need to repeat it ...
David Carlisle's user avatar
3 votes
Accepted

Looking for an Optimal Way to Change the Font Size of Index Entries Only (Not Headings or Subheadings)

This another possible solution keeping idxlayout capabilities. The command \idxFont will set the font size and shape. normalsize footnotesize Large small, italic shape \documentclass{book} \...
Simon Dispa's user avatar
  • 39.4k
3 votes
Accepted

How to Have \idxlayout Not Treat \dotfill as Part of the Index Entry?

The formatting of the index is specified in the index style not via \index which just specifies the text to be indexed. The separator before the page number of a top level index entry is delim_0 ...
David Carlisle's user avatar
3 votes
Accepted

LaTeX: Unbalance imakeidx

As you didn't provide code it is quite unclear what definition for the index you are using. But you can try to patch it to use multicols* instead of multicols: \documentclass[a4paper]{book} \...
Ulrike Fischer's user avatar
3 votes
Accepted

Idxlayout Paragraph Form---Adding a Period to Certain Page Numbers

Define a new command \checknextchar to test if page number followed by subitem or subsubitem, if not add a period. Then use \\checknextchar as the key value for delim_t \begin{filecontents*}[overwrite]...
Tom's user avatar
  • 7,673
2 votes
Accepted

Vertical spacing in index with idxlayout

The idxlayout you are using set \parskip to a value with some stretch. You could patch \theindex with (after loading idxlayout) \usepackage{xpatch} \makeatletter \xpatchcmd\theindex{\z@ \@plus 0.3\p@...
Ulrike Fischer's user avatar
2 votes
Accepted

Customized style of index with idxlayout package and abshang option

A very different implementation: \begin{filecontents*}{\jobname.mst} item_0 "\n\n \\item " item_1 " \\firstlevel " item_2 " \\secondlevel " item_01 " \\firstlevel " item_x1 " \\firstlevel " item_12 " ...
egreg's user avatar
  • 1.1m
2 votes
Accepted

How to Shift Comma Inside Closing Quotes in Index

You can use csquotes for this. The colour makes things slightly awkward, but this can be worked around: \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{...
David Purton's user avatar
2 votes
Accepted

Difference Between Filecontents and Filecontents* and When to Use One Instead of the Other

filecontents (and its starred version) forms part of the LaTeX kernel, but was originally released as a separate package called filecontents. As such, from its documentation: filecontents works much ...
Werner's user avatar
  • 605k
2 votes
Accepted

How to Universally Remove the Comma from Each Index Entry

You need to adjust the delim_1 field of makeindex, since the page numbers you list is at level 1. From makeindex.hlp: delim_0 ", " Delimiter to be inserted between ...
Werner's user avatar
  • 605k
2 votes
Accepted

How to Allow Hyphenation in the Index While Forbidding It in the Rest of the Document

Try resetting the hyphenpenalty before the index: \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \usepackage{lipsum} \usepackage[none]{...
jak123's user avatar
  • 4,272
2 votes
Accepted

Specifying the Index Font Size to be Other Than Normalsize or Small

for normal text the comma is inline but the lipsum macros end with an explicit end of paragraph so the page number and comma are a new paragraph. For the font, the idxlayout package you are using ...
David Carlisle's user avatar
2 votes

Looking for an Optimal Way to Change the Font Size of Index Entries Only (Not Headings or Subheadings)

I'm not sure quite what fonts you want but mcl2.ist makindex style item_0 "\n\\Large\\item" item_1 "\n\\large\\subitem" item_x1 "\n\\large\\subitem" item_2 "\n\\...
David Carlisle's user avatar
2 votes
Accepted

Defining a "See, for Example, Someplace Else in the Index" Command

When you use the "see"-feature within an index-entry, then you don't type \see but you type |see. Analogously don't type \index{HEADING@\textbf{HEADING}! 02 A different entry@A different ...
Ulrich Diez's user avatar
  • 29.2k
2 votes
Accepted

How to Adjust Index Column Width and Add a Vertical Line Separator?

As far as I can tell, you just need to read page 3 of idxlayout's documentation. However, you should read imakeidx's documentation, too, for information about the various ways this may go wrong. \...
cfr's user avatar
  • 201k
1 vote
Accepted

Adding a Period After the Page Number When Using Idxlayout

didn't we do this in an earlier question? \documentclass{article} \usepackage{imakeidx} \makeindex \newcommand\dotify[1]{#1.} \usepackage{idxlayout} \begin{document} \Large \noindent Some words.\...
David Carlisle's user avatar
1 vote
Accepted

Why This Code Eliminating Index Commas Works for \jobname.mst and Not for \jobname.ist

The -s option to makeindex (and so to the \makeindex command with this package) has to be the full filename including extension so -s \jobname.ist although as the makeindex style does not depend on ...
David Carlisle's user avatar
1 vote

Adjusting the Spacing Between Headings, Entries, and Subentries with Idxlayout

You could maybe place some \vspace into the .mst file. I don't know whether this is really good practice, though. I marked the different lines where you can adjust vertical spacings. I cleaned up you ...
Jasper Habicht's user avatar
1 vote
Accepted

How to Simply and Selectively Eliminate the Page Number of an Index Entry

This is a horrible kludge, but hey, it works: \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{xcolor} \def\killnext#1{} \begin{document} A sentence.\...
David Purton's user avatar
1 vote
Accepted

\indexsetup{othercode=\FONTSIZE} Not Changing Fontsize with Idxlayout

If I remove idxlayout I get the expected result. \documentclass{book} \usepackage{imakeidx} \usepackage{lipsum} \makeindex[columns=1] \indexsetup{othercode=\footnotesize} \begin{document} A sentence....
egreg's user avatar
  • 1.1m
1 vote
Accepted

Prescribing Certain Vertical Spacing for Idxlayout

Try this code. Use \beforeheadspace and \beforesubheadspace to control the vertical spaces inserted before the heading (like Wagner) and the subheadings: items (ii) and (iii) of the question have the ...
Simon Dispa's user avatar
  • 39.4k
1 vote
Accepted

Getting Special Item Labels to be Cited Correctly in the Index

makeindex sorts index entries by their keys and pages, hence it (seems that it) requires each page in one and only one "numeric" forms (digital, arabic, and roman). Here in your example 2* ...
muzimuzhi Z's user avatar
  • 26.9k
1 vote
Accepted

A Blank Line Appears Between Consecutive Index Entries When Top Entry Extends Too Far to the Right

What you observe is some blank stuff at the end of the long line that wraps to the next line (resulting in an apparently empty line), before \par starts a new paragraph. You can either switch \vspace* ...
gernot's user avatar
  • 49.7k
1 vote
Accepted

In Trying to Extend a Simon Dispa Answer for Adding Vertical Spacing at Certain Points in the Index---a Curious Thing Happened

Index entries are sorted alphabetically/lexicographically according to what is written at the left of @ in the argument of the \index-command. Entries belonging to the same letter/symbol are grouped ...
Ulrich Diez's user avatar
  • 29.2k
1 vote
Accepted

How to Specify a Fixed Gap to Precede Each New Heading in the Index

I've implemented something else below that might be of interest to your setup - a key-valued approach to setting an \index entry heading and subheading. This removes the formatting specification from ...
Werner's user avatar
  • 605k
1 vote
Accepted

Adjust Spacing Between the Comma and Page Number in the Index

You can insert a special macro as part of the index entry at the end, which then inserts an appropriate space after the ,: \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{...
Werner's user avatar
  • 605k
1 vote
Accepted

How to Selectively Remove the Comma in an Index Entry

Just uses a macro that discards it: \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \usepackage{xcolor} \newcommand\textbfnocomma[2]{\...
David Carlisle's user avatar
1 vote
Accepted

Is There a Command Analogous to \addtocontents{toc}{text} for an Index?

\documentclass[12pt]{book} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \def\kkk#1#2#3{#1} \begin{document} \index{Heading@!indice2b@\kkk{\textbf{hello I am a comment}}} \thispagestyle{...
David Carlisle's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible