Questions tagged [imakeidx]

Package that allows the index or indices, that are usually typeset at the very end of the document, are to be split and sorted so as to include them in the document itself. Note: this requires the `-shell-escape` option

Filter by
Sorted by
Tagged with
0 votes
0 answers
17 views

How to change the name of an index entry

I'm using the package imakeidx to index a book I'm writing, but I have run into a small issue. I tried scanning the documentation to see if there was a way to change the name of what is being indexed ...
  • 123
0 votes
0 answers
10 views

same words in index (imakeidx) in various chapters, but no matches

I am writing my PhD and it consists od various chapters (separated in various files; included with \include). I am fixing up my index and there is a problem with some transcribed words with special ...
  • 3
0 votes
0 answers
14 views

Remove stretch between index entries

These are the gaps I'm talking about. This seems similar to what happens when using \flushbottom. For context, I am using imakeidx with memoir. I've tried turning on \raggedbottom and setting \parskip ...
  • 27
3 votes
1 answer
79 views

Detect page break between items in a list

My goal is to find out whether a page break occurs between subsubitems and if so, repeat the item and subitem. Specifically, I’m trying to get the main etry and subentry of one of my makeindx ...
  • 77
0 votes
0 answers
13 views

Making repeatindex play nicely with imakeidx and glossaries

This is a follow-up question to my earlier question. My goal is to get repeatindex to work the way it was designed: to repeat the main index item at the top of every new page. The answer given to my ...
  • 77
2 votes
1 answer
46 views

Repeat subentry imakidx index on new pages

I'm using imakeidx to create long indexes that span several pages. In case the (sub)subentries extend to new pages, I would like the main entry (plus subentry) to be repeated at the top of the page. ...
  • 77
1 vote
1 answer
49 views

Imakeidx fails on LuaLaTeX

I had to switch from makeindex to imakeidx due to this accents related issue, but I get the error Missing \begin{document}. I'm running lualatex-dev.exe in TeXnicCenter, the parameters of makeindex....
1 vote
0 answers
35 views

How to make index appear on table of contents [duplicate]

I've been trying to make index appear on table of contents. I tried many solutions I found (including this question here for which all the solutions haven't worked How to add \printindex to ...
  • 11
0 votes
1 answer
55 views

Indexing Question Numbers

I'm typesetting a math book. Since the book spirals, and there are different types of questions in each assignment, I'd like a simple way to refer students to problem types. I tried using a simple ...
0 votes
0 answers
42 views

Problem combining hyperref and imakeidx in book parts

I have a book with different parts. I number the chapters and pages per part, using the \numberwithin command. I have defined an index per part using {imakeidx} and {hyperref}. The indices list the ...
  • 1
2 votes
0 answers
32 views

Why is Pgfpages with the Pgfpagesuselayout{2 on 1} Command Not Picking Up the Index? [duplicate]

The following code \documentclass[openany]{book} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{pgfpages} %\pgfpagesuselayout{2 on 1} \begin{document} \LARGE Some words.\index{...
  • 5,755
0 votes
1 answer
29 views

How to Specify the Gap Between Index Entries

The code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage[itemlayout=singlepar]{idxlayout} \begin{document} \LARGE This is the first paragraph.\index{...
1 vote
0 answers
29 views

Package imakeidx not printing index voices/items into the Index chapter

Good evening everyone. I have a problem with the package imakeidx, coding on Overleaf (XeTeX engine, TeX Live 2021) a master's thesis. This is an example of my main.tex document, which produces the ...
1 vote
1 answer
48 views

Line breaks in \index commands cause same entries to appear as different ones in the index

If there are two \index{} commands containing the same string, but one with a line break, then that item appears as two different items in the index. See the MWE below (copy it with the line break in ...
0 votes
0 answers
49 views

How to add category "Figures" before "A" in index?

I'd like to create a category (letter group) named "Figures" before the first letter "A" in the index. The following correctly puts "Figure description, 1" in its own ...
3 votes
0 answers
41 views

How to Prevent Idxlayout's Placement of a Semicolon within the Content of an Index Entry for Paragraph-Type Delineations

Consider the code \documentclass{book} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} %\usepackage[itemlayout=singlepar]{idxlayout} \begin{document} \Large Some words.\index{Examples@\...
  • 5,755
4 votes
1 answer
77 views

How to Delineate All Index Entries Under a Heading Horizontally as a Paragraph

Consider the code \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{xcolor} \begin{document} \Large Some words.\index{Heading@\textbf{Heading}! 1. This is ...
  • 5,755
1 vote
1 answer
34 views

Adding a Period After the Page Number When Using Idxlayout

Consider the code \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \begin{document} \Large \noindent Some words.\index{\textbf{How to add a period after the page ...
  • 5,755
0 votes
1 answer
18 views

avoiding gap on the left in index when multiple entries

When I am making an index with multiple columns and when a word is indexed a big number of times, sometimes it appears on two lines, or more, in the index. But in the lines after the first one, there ...
  • 193
1 vote
1 answer
36 views

Add number, inside the table of contents, to the Index printed with \printindex from imakeidx

I have almost done with my document, but the problem is that when I print my Index, the table of contents is not showing me the corresponding number (I want to make it as a chapter). So, I used \...
2 votes
1 answer
46 views

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

Consider the following code: \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \newcommand{\forexample}[2]{\emph{ See, for example,} #1} \begin{document} \large Some ...
  • 5,755
2 votes
1 answer
58 views

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

I have recently been experimenting with different ways to replace the comma in the Index with a different symbol. The following code replaces the said comma with a blank space. \begin{filecontents}{\...
  • 5,755
0 votes
1 answer
38 views

Using an \index format which changes based on section of the document

I am copying a long book with musical pieces throughout, set with gregorio tex. Each musical piece has a \label and is entered in one of several indexes created using imakeidx. The document has ...
2 votes
1 answer
70 views

How to Universally Remove the Comma from Each Index Entry

This question extends the one recently posed in How to Selectively Remove the Comma in an Index Entry In the above post, it was answered that by inserting \newcommand\textbfnocomma[2]{\textbf{#1}} ...
  • 5,755
1 vote
0 answers
39 views

Setting the General Space Between the Letter Groups in an Index with \Indexspace

Update In light of David Carlisle's very helpful comment providing a simple, efficient solution to setting the space between letter groups in an idxlayout index, I have modified the title a bit to ...
  • 5,755
1 vote
1 answer
52 views

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

Consider the code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \usepackage{lipsum} \usepackage[none]{hyphenat} % To prevent hyphenation \...
  • 5,755
1 vote
1 answer
54 views

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

Consider the code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex %\usepackage{idxlayout} \usepackage[font=small]{idxlayout} \usepackage{lipsum} %\indexsetup{...
  • 5,755
1 vote
0 answers
35 views

See (Elsewhere) in the Index; What am I Doing Wrong?

Consider the code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \begin{document} \Large Some words.\index{HEADING@\textbf{\textit{...
  • 5,755
1 vote
1 answer
36 views

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

Consider the MWE \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \newcommand{\beforeheadspace}{.7ex}% <<<<<<<<<&...
  • 5,755
3 votes
1 answer
64 views

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

This post relates to trying to extend Simon Dispa'a answer given in Prescribing Certain Vertical Spacing for Idxlayout Consider the MWE \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\...
  • 5,755
0 votes
0 answers
33 views

Code Listing in second Index using imakeidx and macros

I am writing a LaTeX document containing Python code, which I include using the Listings package through a macro called \example{}. It uses another macro called \code{} that also uses the Listings ...
1 vote
1 answer
46 views

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

Consider the code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex %\usepackage[font=small]{idxlayout} \usepackage{idxlayout} \usepackage{xcolor} \begin{document} \...
  • 5,755
2 votes
1 answer
49 views

Adjust Spacing Between the Comma and Page Number in the Index

Consider the code, \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{xcolor} \begin{document} \large \noindent Some words.\index{How to adjust (i.e., ...
  • 5,755
3 votes
1 answer
152 views

Combination hyperref, imakeidx and glossaries: not sure how to get desired effect

When I embed a glossary entry as part of the argument for the index (example here: \index[m]{\gls{ccc}} ), the index groups the entry under 'symbols', rather than the begin letter of the glossary ...
  • 77
2 votes
1 answer
76 views

How to get an index entry pointing to the exact location, rather than the page

It's hard to find where exactly an indexed term is defined in my article, when reading the PDF version. When you click on the link in the index table, say for the keyword "Laplace distribution&...
2 votes
1 answer
40 views

On the Placement of a "See Also" Index Comment

Consider the code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex %\usepackage[font=normalsize]{idxlayout} \usepackage{idxlayout} \usepackage{xcolor} \begin{...
  • 5,755
5 votes
2 answers
74 views

Order of Entries in Index

I am working on an index of first lines for a poetry book and would like the punctuation of the lines NOT to affect the order in which they appear in the index. For example: Now entries appear in the ...
0 votes
0 answers
22 views

Splitindex doesn't want to dotfill

I have some fairly simple code that doesn't seem inclined to put up a nice dotfill as I want in my indices. I'm running LuaLaTeX, splitindex, LuaLaTeX. Is there a way to force my style onto the index?...
1 vote
1 answer
46 views

Modifying a Makeindex Algorithm to Remove Page Numbers on a Selective Basis Only

I have extracted the following code from an answer in Remove page number from index entries which removes the page number from each index entry: \documentclass{article} \usepackage{xcolor} \usepackage{...
  • 5,755
2 votes
1 answer
86 views

A Disappearing Index Entry with Idxlayout

In the past, I have put together some rather large index entries in terms of content without encountering any problems. However, I have discovered that when I add some color, there seems to be a ...
  • 5,755
0 votes
0 answers
21 views

Formatted index entry: superscript

Is it possible to write part, and only part of a name in superscript in an entry of an index: Like this If I write this \index[lugares]{Agostinho, S.@\textsuperscript{to}} The output will be an entry ...
  • 87
2 votes
2 answers
79 views

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

This post is a bit of an extension of the one posed in \indexsetup{othercode=\FONTSIZE} Not Changing Fontsize with Idxlayout When one specifies an index font size with idxlayout as such: \usepackage[...
  • 5,755
0 votes
1 answer
70 views

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

Consider the code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \usepackage{lipsum} %\usepackage[font=footnotesize]{idxlayout} \...
1 vote
1 answer
63 views

Prescribing Certain Vertical Spacing for Idxlayout

Consider the MWE \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \usepackage{xcolor} \begin{document} \large A sentence.\index{VON GOETHE@\...
  • 5,755
1 vote
1 answer
99 views

How to Make Index Recognize an Exclamation Point as Part of an Entry

I would like to add an entry in an index which makes use of an exclamation point as an article of grammar. However (of course), Latex treats it as if I want to begin a subentry. Consider the following ...
  • 5,755
1 vote
1 answer
74 views

Getting Special Item Labels to be Cited Correctly in the Index

Consider the code \documentclass[openany]{book} \usepackage{tcolorbox} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \makeatletter \def\@wrindex#1#2{% \imki@wrindexentrysplit {#1}{#2}{\...
  • 5,755
1 vote
1 answer
58 views

On Makeindex, Subentries, and Stackengine (and No Xindy)

It seems to be a well-known defect with \makeindex that the number of levels of an index entry is capped at three. For example, if I run the code \documentclass{book} \usepackage{imakeidx} \let\...
1 vote
1 answer
55 views

Changing the Letter Color of a Tikz Bclogo Index Heading

Consider the code \RequirePackage{filecontents} \begin{filecontents*}{\jobname.mst} %delim_0 "\\IndexDotfill " %delim_1 "\\IndexDotfill " headings_flag 1 heading_prefix " \\...
  • 5,755
1 vote
1 answer
39 views

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

I have learned that one may selectively make bold the page number of an Index entry by the use of |textbf at the end of the \index command. For example, consider \documentclass{book} \textwidth=6.75in ...
  • 5,755
1 vote
1 answer
92 views

An Index for an Enumerate Document

Consider the code \documentclass{book} \usepackage{tcolorbox} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \newtcbox{\blackbox}[1][]{nobeforeafter, notitle, %sharpcorners, colframe=...
  • 5,755

1
2 3 4 5
7