Questions tagged [imakeidx]

{imakeidx} is for questions about the imakeidx package that allows for the index or indices, that are usually typeset at the very end of the document, 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
2 votes
1 answer
46 views

How to sort Bible books properly when using \bibleref and \imakeidx

I expect my Bible index to sort biblical books like 1-2 Samuel, 1-2 Kings, and 1-2 Chronicles under Hebrew Bible. But they are sorted after New Testament and I need help to sort them properly. My MWE: ...
0 votes
0 answers
22 views

How to index text that spans several pages?

I'm sure this is built into the index command or a similar command but my google searches are coming up empty. I want to index text that spans several pages. So, something like the MWE below. (Though ...
0 votes
0 answers
20 views

Can I index a body word\index{body word} without having to write "body word" 2x?

I'm making my first index. The MWE below writes the word "once" to the index but not to the body. So, I need to write once\index{once} if I want the text in the body and the index. I can ...
0 votes
1 answer
18 views

Combine or look up index from another book

I'm writing two books. Assume one is Thanking in Java (the J book), and the other is Thanking in C# (the C book). Each book has its own index. The MWE is the following. java.tex \documentclass[]{...
  • 483
1 vote
1 answer
25 views

Manipulating the Page Numbers of Index Entries

I am creating document containing a list of quotations from a very long book, each quotation associated with a page number (from the book). I would like to create an index to the document containing ...
0 votes
0 answers
24 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
16 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 ...
  • 37
3 votes
1 answer
86 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 ...
  • 87
0 votes
0 answers
18 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 ...
  • 87
2 votes
1 answer
49 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. ...
  • 87
1 vote
1 answer
74 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
36 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
1 vote
1 answer
64 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
51 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
33 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{...
  • 7,356
0 votes
1 answer
35 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
47 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
109 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
85 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
42 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@\...
  • 7,356
4 votes
1 answer
87 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 ...
  • 7,356
1 vote
1 answer
36 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 ...
  • 7,356
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
61 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
47 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 ...
  • 7,356
2 votes
1 answer
89 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}{\...
  • 7,356
0 votes
1 answer
52 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
139 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}} ...
  • 7,356
1 vote
0 answers
67 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 ...
  • 7,356
1 vote
1 answer
59 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 \...
  • 7,356
1 vote
1 answer
124 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{...
  • 7,356
1 vote
0 answers
36 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{...
  • 7,356
1 vote
1 answer
39 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}% <<<<<<<<<&...
  • 7,356
3 votes
1 answer
66 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\...
  • 7,356
0 votes
0 answers
39 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
48 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} \...
  • 7,356
2 votes
1 answer
52 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., ...
  • 7,356
3 votes
1 answer
178 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 ...
  • 87
2 votes
1 answer
81 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
49 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{...
  • 7,356
5 votes
2 answers
87 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 ...
1 vote
1 answer
53 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{...
  • 7,356
2 votes
1 answer
93 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 ...
  • 7,356
2 votes
2 answers
118 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[...
  • 7,356
0 votes
1 answer
96 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
64 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@\...
  • 7,356
1 vote
1 answer
138 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 ...
  • 7,356
1 vote
1 answer
81 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}{\...
  • 7,356
1 vote
1 answer
71 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
59 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 " \\...
  • 7,356

1
2 3 4 5
7