Questions tagged [makeindex]

MakeIndex is a program for sorting the entries identified in a source file by `\index{...}` into the order to be listed in an index. The LaTeX process writes out an `.idx` file, which is the input to MakeIndex. The output of MakeIndex is a sorted `.ind` file, to be read in by LaTeX in the next cycle to typeset the index.

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

Indexing without having to type a word twice

I'm trying to speed things up. IF I type \documentclass{article} \usepackage{makeidx} \begin{document} \noindent Hey! \index{baby}!, \\ there ain't no easy way out \\ Hey! I!\\ won't \index{back down}...
1
vote
1answer
34 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{...
2
votes
1answer
70 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 ...
2
votes
2answers
57 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[...
0
votes
1answer
38 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
1answer
40 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@\...
1
vote
1answer
44 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 ...
1
vote
0answers
46 views

Two indexes in LyX

I am writing a LyX document with two different indexes. In LyX, you can set up multiple indexes by going to Document->Settings->Indexes and selecting the option Use multiple Indexes. One just ...
1
vote
1answer
65 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}{\...
1
vote
1answer
35 views

Making Use of Setcounter to Modify Makeindex Page Numbering

I am working on a document wherein each chapter takes on a significance beyond the numerical value of the chapter itself. I, for better or worse, have tried to incorporate this by making use of the \...
1
vote
1answer
38 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
1answer
34 views

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

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

TeX Definition to Suppress Page Number Conflicting with Macro to Make Other Page Numbers Bold

In the post Is There a Command Analogous to \addtocontents{toc}{text} for an Index?, I inquired as to the existence of a command that could be used to add a comment to the Index in a manner analogous ...
0
votes
0answers
18 views

Latex index prints additional undesired empty page after custom cover in last page

I am using TexMaker to write my thesis, using this template https://github.com/jaredjstewart/Masters-Project. I have a first cover, three chapters, a bibliography, an index, then a last 4th cover page ...
1
vote
1answer
37 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 ...
1
vote
1answer
34 views

How to Shift Comma Inside Closing Quotes in Index

Consider the MWE \documentclass{book} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{xcolor} % Make all page numbers in index bold \let\oldindex\index \renewcommand{\index}[1]{% ...
1
vote
1answer
40 views

Making Index Page Citations Bold without Obliterating "See{Another Indice}"

Previously, I had posted the question How to Display the Indice Page Numbers in Bold? and received a very fine answer, which has served me well. However, I have since discovered a conflict making ...
3
votes
2answers
52 views

Spurious space after automatic line break before \index in math mode

Feeding \documentclass{article} \pagestyle{empty} \usepackage{makeidx} \makeindex \begin{document}% \newlength{\myLen}\setlength{\myLen}{33em}% \noindent 1st line. Plain \(B\), no index:\\ \hspace*{\...
2
votes
2answers
73 views

Creating an index for birthdays

I feel like I should be able to figure this out but after poking around for hours at a time over several months, I'm at a loss. Essentially I want to do something like the following: \documentclass{...
1
vote
1answer
35 views

Sorting Contents of Macro (Not Literal)

In How to sort an alphanumeric list , there is a nice and short sort facility, which I am reproducing here: %% from https://tex.stackexchange.com/questions/6988/how-to-sort-an-alphanumeric-list \...
1
vote
1answer
67 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=...
2
votes
0answers
44 views

How to Specify pgfpages 2 on 1 Output for a Range of Pages Only

Consider the following code: \documentclass[openany]{book} \usepackage{lipsum} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{pgfpages} \pgfpagesuselayout{2 on 1} \begin{document}...
1
vote
0answers
37 views

XINDY wrongly sorted entries

I am testing xindy and have the following problem that the entries for umlauts are wrongly sorted. Using TeXLive 2021 not full version on Windows. MWE: \documentclass{article} \usepackage[xindy]{...
0
votes
0answers
11 views

Cannot change Index title with \tcbuselibrary{documentation}

I use tcblistings with minted engine in tcolobox package for embedding code and package imakeidx for indices. In the documentation, tcolobox suggests that: For minted [12] support, load: \...
0
votes
0answers
29 views

LYX - Subject index with makeindex

I am writing a book in german with almost 400 pages using LYX in KOMA-Script. On recommendation, I should use the index processor Makeindex for this (so far I have used texindy). I wrote this in the ...
1
vote
0answers
34 views

Index Entries Disappear with the Use of pgfpagesuselayout{2 on 1}

Consider the index generated by the following code: \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{pgfpages} %\pgfpagesuselayout{2 on 1} \begin{document} ...
1
vote
0answers
29 views

Index of notations grouped by where they appear. How to implement?

I want to create an index of notations that looks like the following one So the entries are sorted and grouped by where they appear. However, the usual list provided by glossaries has each entry in a ...
1
vote
0answers
19 views

Glossaries as makeindex [closed]

I'm trying to use the package glossaries to create an index of notations. But I have some requirements which I don't know how to implement using glossaries. The default way of glossaries to introduce ...
1
vote
0answers
46 views

Pandoc-generated lstinline in index

I'm generating a large document using Pandoc, and I'd like to use inline code in my index keys. Pandoc generates \passthrough{\lstinline!foo!} for these inline code fragments, and they don't seem to ...
1
vote
2answers
57 views

No grouping for one index using \imakeidx

I have a large project with multiple indexes in LuaLaTeX. Is there a way to use \imakeidx perhaps with a .ind file to have just one of these indexes 'turn off' grouping so that each level 0 item is ...
0
votes
0answers
15 views

Sorting within glossaries (list of symbols)

I have an issue regarding the sorting of a list of symbols using the glossaries package and makeindex: With the current settings, the greek numbers are sorted above the latin ones as the (e.g.) sort ...
1
vote
2answers
119 views

Index for a multi-volume book

I want to create an index for a multi-volume book. I tried this one: How to produce a combined index from multiple documents? There are some first results, but the sorting is wrong. Here is a short ...
0
votes
0answers
37 views

Removing roman numeral entries from an index

When I include a reference in a caption which then goes into the list of figures, tables etc it creates an index entry, how can I remove roman numeral entries from an index please? MWE (I apologize ...
1
vote
1answer
60 views

Is There Anything Like an ``AddtoIndex'' Command to Add a Statement at the End of the Index

I would like to add a ``THE END'' to the end of an Index. Is there a command when creating an Index analogous to the \addtocontents command for the TOC? I am using PDFLATEX. Consider the MWE \...
0
votes
0answers
46 views

How to use arara with a makeindex style file to add capital letters to index

I would like to augment my LaTeX index with a capital letter to distinguish each letter category. For example; A ample axe B block buy and so on. I've created a makeindex style file, MyLatex.ist, ...
0
votes
0answers
32 views

How to Have the Index Display ``Ibid''

Consider the code \documentclass{article} \usepackage{makeidx} \makeindex \usepackage{filecontents} \usepackage[style=verbose-trad2,ibidpage=true]{biblatex} \begin{filecontents}{\jobname.mst} ...
0
votes
1answer
30 views

On the Display of `Sq.' and `Sqq.' with the Makeidx Package

Consider the following code \documentclass{article} \usepackage{makeidx} \makeindex \usepackage{filecontents} \begin{filecontents}{\jobname.mst} suffix_2p "~sq." suffix_3p "~sqq." ...
0
votes
0answers
9 views

Using Nomentable and Makeindex with an entry in mathmode that contains a negative thin space (\!)

Nomentable uses Makeindex to create a nomenclature. I am trying to obtain a nomenclature entry for Mach number which is usually encoded as $M!a$. the command I am trying to get to work is: \...
0
votes
1answer
51 views

wrong entry in .nls file using nomencl

I'm writing a large report using MikTex and I'd like to add a nomenclature. I successfully created .nls and .nlo files. However, I forgot a $ in one of the entries and this generates the following ...
0
votes
1answer
26 views

Index with dashes to show levels

A LaTeX makeindex style with dashes to indicate subitems and subsubitems is desired. The posting Makeidx, Subentries and dashes here looked like the ticket. With the suggested additions, and a couple ...
1
vote
0answers
14 views

Group Unicode indices header

I followed this post Index with an initial letter of the group But anyone show me how to create a Unicode header like in the picture below ("Chỉ mục" (in Vietnamese) mean "Index"), ...
1
vote
1answer
44 views

Add post processing step with VS Code

I'm very new to Latex and I'm trying to setup a glossary. I need to execute a post processing step, but I can't find how can I add this command to the compilation using VS Code. The command is: ...
1
vote
0answers
41 views

Index category for umlauts

I am trying to create my custom index style but I receive an error if the index entry starts with an umlaut: This is makeindex, version 2.15 [TeX Live 2020/W32TeX] (kpathsea + Thai support). Scanning ...
0
votes
0answers
21 views

obscure error in index file

I reduce my problem to the following example: \documentclass{scrbook} \usepackage[nochapters]{classicthesis} \usepackage{tikz} \usepackage{makeidx} \makeindex \begin{document} \index{j} \nocite{...
0
votes
0answers
13 views

With makeindex, keep only one of multiple encaps for each page/key

In my index, I would like the most relevant page number for a given index entry to be emphasized compared to all other page numbers. For this I use the encap mechanism where \index{pear|emph} will ...
1
vote
1answer
18 views

CodelineIndex from doc package: sorting page vs codeline index entries

In the following sample "documentation" of a macro \foo using the doc package, index entries for \foo are in an unnatural order. How can this be avoided? \documentclass{article} \usepackage{...
0
votes
1answer
57 views

How to integrate a tabular environment in the Index

In the index of my Japanese document, I want each entry to consist of: The English name of the Japanese character (left-aligned) The Japanese character itself (left-aligned) The page number on which ...
1
vote
1answer
45 views

Q: How to avoid pagebreak, and properly group <surname> <name1><name2><name3> with imakeidx?

Am using imakeidx and I have a question please on how to group entries in the (person) index such that they do not get split across page boundaries. My goal here is to have groups of surnames "...
3
votes
2answers
85 views

Categorising and aligning entries in Index

I'm busy making a document on Japanese Kanji characters. I want one Index (among several others) to have a specific format: Kanji must be categorised according to "Stroke Count" The Kanji ...
1
vote
2answers
57 views

How to fix page style of "Index" pages?

I have a simple question. I have a basic document, to which I would like to add an index. I am using standard tools for this: the package imakeidx. I have encountered following problems: Index pages ...

1
2 3 4 5 6