Skip to main content
Share Your Experience: Take the 2024 Developer Survey
5 votes
Accepted

Automatically Add a Period After Last Page Number in Each Index Entry

I think the question have already been answered in the other post by comments. I made a working example of using the style file (*.ist) to set the delim_t key to "." in order to generate a ...
Tom's user avatar
  • 7,703
4 votes
Accepted

Acro package: How to print only one form (short or long) in the abbreviation list? How to swap long and short form in printed list?

My first thought is that nomencl or glossaries would be a better tool for the persons list, and biblatex for the manuscripts list, but you can absolutely customise the list of acronyms in acro as ...
Dai Bowen's user avatar
  • 6,202
4 votes
Accepted

How to differentiate index entries using the knowledge package

It works if you set it through a style. Define the style \knowledgestyle{indexbf}{index style=textbf} and use it as intro style \knowledge{intro style=indexbf, index=time!sidereal} ... Note that you ...
jlab's user avatar
  • 3,347
3 votes

Index for roles in a script?

imakeidx creates the index file as part of the compilation and then reads it back in. As such, it has to be located after all \index commands have been issued. But that's not the standard case. ...
cfr's user avatar
  • 203k
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,703
3 votes

How to change the index of a certain section

I have 10 sections, which are normally indexed from 1 to 10. But I want to change the index of [the] 5th section to 6, and the [remaining] sections are indexed from 7 to 11. For this use case, I ...
Mico's user avatar
  • 511k
2 votes
Accepted

Sort index entries by middle name

You can separate a sort key and print form with @ \documentclass[a4paper]{article} \usepackage{imakeidx} \makeindex[title=Index of Romans] \newcommand\rindex[1]{\xrindex#1\relax} \def\xrindex#1 #2 #...
David Carlisle's user avatar
2 votes

Barred indices equation

Never disregard errors raised during the LaTeX run. Subscripts and superscripts should always be braced. In some cases (a single letter or digit) the braces can be omitted, but \eta^\bar{j} is ...
egreg's user avatar
  • 1.1m
2 votes

\index add spaces in text

\index does not add space, you are adding space with the linebreak, so a % after Here. and the \index commands is the most natural fix, however you could insert an \unskip to remove a space before \...
David Carlisle's user avatar
2 votes
Accepted

Automatically indexing digraphs as single letters

You need to call indexing processor with support for Danish, which can be either Xindy or Xindex. It seems that imakeidx supports only xindy. You can use it with the following code: \documentclass{...
michal.h21's user avatar
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
  • 203k
1 vote
Accepted

Index in caption (of figure) and multiple index (splitindex) and tex4ebook yield to problem

TeX4ht saves \index commands inside of \caption and prints them afterward. This is needed because of fatal errors that happen sometimes otherwise. It expects the usual \index command, which doesn't ...
michal.h21's user avatar
1 vote
Accepted

Why is \printindex not working?

Some packages you're loading are either obsolete, deprecated or useless: moresize (obsolete) fullpage (obsolete, use geometry features instead) latexsym (deprecated, use only for very old document) ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

Displaying chapter numbers in indexes with hyperref's links

After your change the ind-file contains commands like \hyperpage{2-3}, and hyperref tries to add a link to page 2-3 which doesn't exist. Your log then contains warnings like this: pdfTeX warning (dest)...
Ulrike Fischer's user avatar
1 vote
Accepted

Index subentries be alphabetized by the topics following the connective words/phrase

You need to put the prefix to be ignored at the end, so that it's essentially not considered for sorting. Then you need to massage the entry: \documentclass{article} \usepackage{imakeidx} \makeindex ...
egreg's user avatar
  • 1.1m
1 vote
Accepted

Indexing when using the l3doc class

Methods I and II are the joint antithesis of l3. This seems permissible given that l3doc.cls is not wholeheartedly committed when it comes to indexing, either. Method I Method I creates a single index ...
cfr's user avatar
  • 203k
1 vote
Accepted

How to get page numbers of Index and bibliography

This is not particularly robust in the case of the index, but it will work provided the index is not further customised and tocbibbind is not updated in some incompatible way. It is hard to know where ...
cfr's user avatar
  • 203k
1 vote
Accepted

\index in \pagenote with splitindex option (for multiple index)

Not altogether sure what you want. (I vaguely remember from earlier questions, but there's not much to refresh my memory in this one.) The following generates note and page numbers in the indices ...
cfr's user avatar
  • 203k
1 vote
Accepted

\index{} within \pagenote{} does not work, when using \emph{} in \index{}

The problem can be observed in the .idx file: \indexentry{emph Words@\emph{emph Words}}{1} \indexentry{Words}{1} \indexentry{emph Words@\emph {emph Words}}{2} \indexentry{Words}{2} When \emph is ...
cfr's user avatar
  • 203k
1 vote

xindy with arbitrary locations (not page numbers): no sort, no ranges, hyperlinks

Oooookay... I think I got it. alpha means a single letter, not "any number of letters". The "standard" page numbers are still defined as a location class, and they allow ranges by ...
Jellby's user avatar
  • 3,323
1 vote
Accepted

\index in \newcommand breaks MakeIndex

If you look in index.idx, which is what LaTeX writes out for later being processed by MakeIndex, you find \indexentry{{$\DOTSB \bigcup@ \slimits@ $}}{1} \indexentry{{$<$}}{1} What happens? When \...
egreg's user avatar
  • 1.1m
1 vote

Latex (book) is printing last section number at top of Index

To correct the first problem, you could add one more \titleformat before \printindex as you've already done with \mychap, e.g.: \titleformat{\chapter}[display]{\normalfont\Huge\bfseries}{0}{0pt}{##1} ...
Schweinebacke's user avatar
1 vote
Accepted

How to declare section who appear on the printed TOC but not on the PDF’s index

you can locally change the bookmarks depth to exclude some levels: \documentclass{article} \usepackage{hyperref} \begin{document} \tableofcontents \section{Section 1} Content of section 1. \section{...
Ulrike Fischer's user avatar
1 vote

bibleref-parse package: typeset repeated books as separate entries

A friend of mine, Ross Moore, suggested adding the package bibleref-xidx after the document class command in the above code. For example, \documentclass{article}% \usepackage{bibleref-xidx}% Added ...
Tom Price's user avatar
  • 374
1 vote
Accepted

suppress repetition of entry in subentry with imakeidx

I introduced a second command for the ! cases, you could of course get more complicated and use a single command with some testing, but I'd keep it simple. \documentclass[a4paper]{article} \usepackage{...
David Carlisle's user avatar
1 vote

Indexing: a better way to handle "see" and "see also"?

Just write cola\index{cola} (or \index*{cola}) in your text, and in your document preamble put \index{soda|see{cola}}
R2D2's user avatar
  • 11

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