Questions tagged [indexing]
{indexing} is about creating an index or similar lists for your document, usually by means of executing makeindex.
1,378
questions
1
vote
1
answer
51
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}
\...
0
votes
0
answers
45
views
same height of numbers and letters in an index place
How create same height of a number (zero) and a letter (e) in an index place?
Example of the case
the code:
T_{e,0}
the wrong output of a different height in the indexing between e and 0:
4
votes
1
answer
307
views
Math Symbols in Index (makeindex)
I want to have the following Symbol in my Index (with makeindex):
$\| \cdot \|_X$
I tried alot, however nothing worked, it wont show.
I tried:
Test\index{Norm!1@$|| \cdot ||$}
Test2\index{Norm!1@$1_X$...
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., ...
1
vote
1
answer
108
views
How to Selectively Remove the Comma in an Index Entry
In an index, I would like to be able to remove the comma that immediately precedes the page number for certain entries only.
Consider the MWE
\documentclass{book}
\usepackage{imakeidx}
\let\...
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&...
0
votes
1
answer
49
views
Removing emphasis from Xindy title index entries
Problem: I am creating author, title and subject indexes using imakeidx, biblatex with indexing=true and Xindy. The indexes are being created properly but the title index contains the entries in ...
2
votes
1
answer
60
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{...
2
votes
1
answer
49
views
\index{\protect\foo{#1}} gets sorted wrong
When I build the following, the index ends up with two of the ZZZ item and one of them sorts before the AAA item. How do I make the index see and operate on the expanded value of the macro rather than ...
0
votes
0
answers
42
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}...
0
votes
1
answer
21
views
Glossary entries are not hyperlinked, but the index entries are
I have two adjacent directives near the end of my scrbook document:
\printglossary[title={Glossary of Symbols}]
\printindex
After compiling with lualatex, the index entries are hyperlinked: upon ...
5
votes
2
answers
103
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
57
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
2
answers
109
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
2
answers
129
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
1
answer
103
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
66
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
1
answer
75
views
How to create Indexing in Bangla with babel package
I am encountering a problem regarding indexing in Bangla language in memoir. I am using babel package with the following setup (shown in code). But it didn't work at all.
MWE:
\documentclass{memoir}
\...
1
vote
1
answer
146
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
1
answer
85
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}{\...
0
votes
1
answer
80
views
How to use multiple fonts in index?
I am typesetting a multilingual book with xetex, using polyglossia for different fonts. Since the index contains different languages I need to use a main font which contains both languages. But one ...
1
vote
1
answer
131
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
1
answer
75
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
60
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 " \\...
1
vote
1
answer
150
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
1
answer
64
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 ...
1
vote
1
answer
43
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
1
answer
77
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
1
answer
51
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
2
answers
86
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
2
answers
80
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
1
answer
52
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
1
answer
48
views
I'm using LaTeX2e book class (not memoir class). My publisher wants the final page of the index to have two columns of equal height. How do I do this?
There's nothing fancy in my preamble (just a few specially designed symbols, using \newcommand). I'm using the default Index provided in book class, so the Index has two columns on each page, except ...
1
vote
1
answer
77
views
How to remove page number on first index page
How to remove page number in the bottom of the first index page?
MWE:
\documentclass{book}
\usepackage[a6paper, total={2in, 3in}]{geometry}
\usepackage[T1, T2A]{fontenc}
\usepackage[utf8]{inputenc}
\...
1
vote
1
answer
110
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=...
0
votes
0
answers
56
views
Alphabetical TOC or index for included PDFs
I'm putting together a book of fiddle/mandolin tunes. Each tune has some explanatory text followed by the actual music, prepared in an external music engraving program and exported as a PDF. The PDFs ...
1
vote
0
answers
45
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]{...
1
vote
0
answers
145
views
How to get xindy work with Texmaker and Miktex?
I would like to use xindy with Texmaker, but it doesn't work.
I have Perl version 5 installed on my computer and xindy also seems to be well installed since it is recognized in the windows command ...
1
vote
1
answer
44
views
Remove page numbers from the index which are related to \printbibliography section
I want to use \index{entry} inside of the bibliographic item. When I cite this item it appears in text on the current page (I use style=verbose-trad1) and also on the page where full bibliography is ...
1
vote
0
answers
21
views
Formatting index with "main entry (continued)" when columns start with sub-entries
Is there a package which can generate an index like the following, where (for example) the "fingering" entry had several sub-entries on the previous page but continues at the top of the page ...
3
votes
0
answers
74
views
Index Entries Disappear with the Use of pgfpagesuselayout{2 on 1} [2022, June: Question Still Relevant]
Consider the index generated by the following code:
\documentclass{article}
\usepackage{imakeidx}
\makeindex
\usepackage{idxlayout}
\usepackage{pgfpages}
%\pgfpagesuselayout{2 on 1}
\begin{document}
...
2
votes
0
answers
111
views
How to Replace Page Numbers by Item Numbers in the Index
Consider the MWE
\documentclass{article}
\hoffset 10pt \voffset -45pt
\oddsidemargin 12pt \evensidemargin 10pt \topmargin 35pt
\headheight 25pt \textheight 8.35in \textwidth 6.25in
\headsep 25pt \...
1
vote
0
answers
32
views
Putting aligned items in the index
I'm trying to write a text but at the beginning, in the index, the items don't appear rightly aligned. It appears as:
My code is:
\usepackage{ebgaramond}
\usepackage[latin1]{inputenc}
\usepackage{...
0
votes
1
answer
168
views
Index for Equations, Definitions, Theorems,
I'd like to create different Indexes for Equations, Definitions, Theorems, Propositions, Observations, Corollaries, Examples, Exercises. Is it possible?
For now, I don't know what MWE I must insert... ...
1
vote
0
answers
179
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 ...
0
votes
1
answer
107
views
How to remove unnumbered chapters from TOC
I'm using a template my college provided to write my thesis in Latex, and i'm having a minor issue with autoref adding unwanted chapters to the TOC (index), the relevant bit are as such I believe
The ...
1
vote
2
answers
280
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 ...
2
votes
1
answer
86
views
Troubleshooting \PrintIndex \PrintChanges
The code below contains a change markup and the intent is that it be printed. I get:
ERROR: LaTeX Error: \verb ended by end of line.
How can I fix it?
foo.dtx
% \iffalse meta-comment
% !TEX program ...
0
votes
1
answer
120
views
Customize subentry indent and column width in index
I would like to change the indent space in index entries for subentries and page numbers.
I tried to use a customized style file for makeindex, changed delim_x, changed parameters associated to lists,...
-3
votes
1
answer
198
views
How can I write this equation with LaTeX
I am new here. I would like to type an equation with LaTeX but I could not produce what I want so far..
I tried this example:
m[\dot{u} - vr + wq -$x_{G}$(q^2+r^2) + $y_{G}$(pq - \dot{r}) + $z_{G}$(pr ...