Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [indexing]

{indexing} is about creating an index or similar lists for your document, usually by means of executing makeindex.

0
votes
0answers
6 views

Insert note after lettergroup using imakeidx/xindy

I would like to be able to enter a note in an index after \lettergroup something like this: Of course, it would be possible to edit the .ind file to do this but I'd rather not. Ideally this would be ...
0
votes
0answers
15 views

Sorting entries by page number in a single index (out of multiple indices) made with imakeidx

I am trying to make two indices with imakeidx: an index of terms and an index of symbols. Since I am using mathematical symbols, I would like the symbols index to be sorted by page number rather than "...
0
votes
0answers
27 views

Remove newpage before \printindex

I want to remove the new page before \printindex \phantomsection \renewcommand{\indexSectionCount}{\myeval{\SectionCount-1}} \renewcommand{\indexname}{B~Stichwortverzeichnis} \addcontentsline{toc}{...
1
vote
1answer
19 views

Problem Printing Indices with Splitidx Package

Following the instructions in the Splitidx Documentation, I've been trying to add indices to a book document. It compiles witout error. However, none of the indices print. Here's an example of the ...
0
votes
1answer
10 views

Wrong index order when using \lstinline in \index

A stub of my document: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{makeidx} \makeindex \begin{document} \chapter{MyChapter} This is a\index{A} test\...
1
vote
1answer
28 views

Index with both authors and subjects using natbib and makeidx

I am writing a book and trying to create an index that includes both authors (gathered from natbib references and the \citeindextrue command) and subjects (generated with the makeidx package and the \...
1
vote
1answer
33 views

How to use doc package \efill

I'm using indexing with the doc package and I've run in to an issue. When I have keys that are more than one word they justify over the whole column. I wanted to use the \efill macro to get the keys ...
0
votes
1answer
34 views

Equations: Why does formula symbol index notation “ff” cause such big letter spacing?

The formula symbol index notation ff is causing some ugly letter spacing in comparison to other index notation letters. Minimum Working Example (MWE): \documentclass{article} \begin{document} \...
2
votes
1answer
13 views

Automatic index entry for multiword terms

I'm a lazy person. The less I type the better, so I'm trying to make a macro to automatically arrange index entries for multi-word terms (composed nouns actually). Normally you'd have to type: ......
0
votes
0answers
18 views

Reverse-ordered index with makeindex

How to create a reverse-ordered index (i.e. from Z to A) with makeindex program? I use it for a version history list, just as in this question. However, I need to use makeindex for some reasons (...
1
vote
0answers
29 views

Ragged Right Index Entries

I'm down to the last pages of a 400+ page book -- the index. That's all working pretty well, except... I have a few entries that are just badly type-set, such as the following entry for MOS Metallic-...
0
votes
1answer
73 views

xindy could not find file “lang/english/utf8-lang.xdy” despite being available

I get a strange error upon running perl.exe \path\to\xindy.pl -L english -C utf8 -I xindy -M "main" -t "main.alg" -o "main.acr" "main.acn" or equivalently, xindy.exe -L english -C utf8 -I xindy -...
4
votes
1answer
34 views

Sort symbol index by page occurence

SE, I have a problem ordering items in symbol index. MWE: \documentclass[oneside,12pt,a4paper]{memoir} \renewcommand{\baselinestretch}{1.15} \let\memoldbibsection\bibsection \let\bibsection\relax %...
0
votes
0answers
11 views

imakeidx with both cross-reference and page range truncation

This is another (I hope final) follow-up to the questions Can one truncate page ranges in index using splitidx? and Page range truncation with imakeidx. I think I now know all the requirements about ...
2
votes
1answer
29 views

Makeindex - Is it possible to set page numbers on the right border instead of using the comma delimiter?

I'm creating an index using the makeidx package, and would like to change the default behavior: key, number to something like: key ..................................................................
2
votes
1answer
62 views

Songs package not indexing

I am using the songs package v 2.18. the later update called 3.1 will not run on my pc. I have a problem that my current package is producing the lyrick book without index or page numbers. I need to ...
2
votes
1answer
39 views

Page range truncation with imakeidx

This is a followup question to egreg's answer to Can one truncate page ranges in index using splitidx? The answer runs into a problem if an index topic occurs in more than one page range. The ...
2
votes
2answers
60 views

How to change the text of 'see' and 'seealso'

I'm Hebrew user and I'm want to change the title of see and see also at the index (output of course) to Hebrew words: see = ראו see also = ראו גם I look here: Change index "see also" and ...
1
vote
1answer
18 views

Index with text different from structure text

How would to see in the index: Borel, Émile, 6 set, 7 I tried with \index{Borel!set} \index{Borel@Borel, Émile} but it doesn't work. Is there any wy to get it? \documentclass{article} \...
1
vote
0answers
14 views

How to make appearance of indexed terms link back to their index entry? [duplicate]

With an index named foo, we make an index entry using: \index[foo]{\uplanop{#1}} although typically I use something like: \newcommand{\Foo}[1]{{#1}\index[foo]{#1}} and with hyperref used as well, ...
3
votes
1answer
41 views

TeX refuses to produce a split index

I need an index of terms and an index of symbols for my document, and it seems like splitidx is a good way to do this. But it doesn't seem to work in my document. I eventually realized the problem is ...
0
votes
1answer
24 views

\widehat in \index inside align environment does not show up properly in the index

Why does the \widehat mathematical symbol show up as follows in the MWE below? \documentclass{scrartcl} \usepackage{bm} \usepackage{amsmath} \newcommand*{\xv}{\operatorname{xv}} \usepackage[...
2
votes
1answer
41 views

Why .ind empty (with error message from xindy although makeindex is used) when index command is inside an align environment?

When compiling the following MWE with texi2dvi -p, the second \index{} command fails with the error message ERROR: CHAR: index 0 should be less than the length of the string (seems like this is ...
4
votes
1answer
27 views

Can one truncate page ranges in index using splitidx?

The following MWE \documentclass{book} \usepackage{splitidx} \makeindex \newindex{idx} \newindex{aut} \begin{document} \setcounter{page}{124}\index{Topic1|(}\index{Topic2|(}Text\newpage \...
1
vote
0answers
30 views

Oscola LaTeX package won't display Table of Legislation

I have the following LaTeX: \documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[style=oscola, ibidstyle=uc, ibidtracker=true, backend=biber, indexing=cite]{biblatex} \...
2
votes
0answers
40 views

LyX index cross-referencing, “see” option

Exactly the same as this question. I have tried the answer there, but I can't seem to get it to work even with various permutations. I want to have an index entry that says "circular functions, see ...
2
votes
1answer
58 views

Suppress page break before Index

By default, where I insert an index, it automatically does so on a new page. Is there a way to suppress this page break, so that my Index begins wherever I inserted it? In the following MWE, I get a ...
1
vote
1answer
24 views

Garbled index with ltxdoc document class

When using the ltxdoc document class, index entries are misformatted, looking like this: foomacro= \subitem *+\foomacro+, \usage{1} rather than… however they’re supposed to look. This sounds like a ...
0
votes
1answer
35 views

How to add Latin Words into an index

I have the following in my preamble \usepackage[latin, english]{babel} (for proper hyphenation) and then \newcommand{\latin}[1]{\foreignlanguage{latin}{\emph{#1}}} when I write \latin{ultra ...
2
votes
3answers
46 views

Referring to element in a list macro using index

Here is a minimal example of what I want to accomplish: I have defined a list, such as this: \def\listA{1/a/A, 2/b/B, 3/c/C} I am now able to successfully loop through this list using \foreach ...
1
vote
1answer
62 views

Latex for numpy boolean indexing [closed]

Assume mask is a length N boolean vector and x is a length N vector. Using numpy fancy indexing i can write: y = x[mask] How can the above operation be shown clearly, formally, and concisely using ...
0
votes
0answers
15 views

Get showidx working with multiple indexes

I would like to use showidx with imakeidx and multiple indexes. While the indexes are as expected the entries going into the non-default index are recognized incorrectly by showidx. The documentation ...
1
vote
1answer
54 views

Display an index of dates

I write a document which tells a story long of a few months, and I would like to display an index of the main dates at the end. For example, I would like to type something like (french format): On ...
0
votes
1answer
89 views

Nomenclature and Index does not show up in a standard thesis template

Well, hello folks, I am writing a thesis in a specific latex template that my department created. I simply imported the zip file of the template into an overleaf project, and compiled. However the ...
0
votes
1answer
106 views

Change index style in memoir class

I would like to have a bold letter that accordingly separates the index in memoir. Take a look at this image to illustrate my intention: This was taken from the memoir document, from which I did not ...
3
votes
1answer
103 views

Chinese indexes doesn't enumerate according to phonetic ordering

A MWE is as follows: \documentclass{amsbook} \usepackage{ctex} %%%index setting%%%%%%%%%%%%%%%%%%%% \usepackage{imakeidx} \makeindex %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{document} m \index{康托}...
0
votes
0answers
39 views

page/line breaks with index

Consider the following possibilities for indexing a word (potentially enclosed in parentheses) with spaces before and after it: 1) \index{foo}long_word 2) long_word\index{foo} 3) (\index{foo}...
2
votes
1answer
46 views

Put \index before or after a word?

Following https://tex.stackexchange.com/a/167325, where it is suggested to put \index before the word, are there any other positive effects of saying \index{word}word as opposed to word\index{word}, ...
1
vote
1answer
51 views

How can I make the Songs LaTeX package's index order be in Swedish?

I first posted this same question over at Stackoverflow, where someone informed me that Tex has its own Stack Exchange site. I'm making a song book in LaTeX, using the Songs package, and have been ...
1
vote
0answers
28 views

Multiple images ok, but index of figures wrong

I'm triyng to put multiple images together and succeeded, but the problem comes when latex creates automatically the list of figures, it makes stranger things.... Edited adding a MWE \documentclass[...
1
vote
1answer
61 views

Stripping leading characters from command parameter

I have a command (AlertShort) with one input parameter that both prints text and generates an index. For standard text this works fine but, in some cases, the input parameter contains a symbol which ...
1
vote
1answer
83 views

How to change the highness of index in tensor package?

I'm having a problem with the index position in the \tensor command. When I write, for example, \tensor{A}{_\ mu}, I get a tensor with the subscript "mu" in a very low position. Is there any way I can ...
1
vote
1answer
36 views

Suppressing comma after question mark in one index entry

I want to index the name of a book that ends in a question mark. What I get is \textit{What is Life?}, 27, but what I'd like is \textit{What is Life?} 27. In other words I want to suppress the ...
0
votes
1answer
52 views

makeidx \printindex problem, is there one way to redefine index name as chapter format

I am using makeidx package, when use \printindex command, it will be start in new page, Is there one way to let "Index" name as chapter style, just like "Chapter 1 Index". I want to change the ...
6
votes
2answers
304 views

Redefine \S - problem with indices

Why are the subscripts placed under the letters and not in the right bottom corner like usual? \documentclass[a4paper,12pt,twoside]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
4
votes
2answers
316 views

Example of contentsline

I would like to learn how to use the command contentsline; to do this I wrote the code: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \maketitle \tableofcontents \clearpage ...
0
votes
1answer
29 views

Why are there two identical headwords in an index where there should only be one?

In an index generated by Latex there are the two headwords: abhainn, 52 and abhainn, 53. But there should only be one, abhainn 52, 53. Both of the instances of abhainn are marked identically in the ...
0
votes
1answer
35 views

A command/macro to use several bibleref styles in a single document

I would like to use several bibleref styles in the same document because some time I need abbreviated reference (e.g. jerusalem style), and at some other places I need to cite a reference in a more ...
2
votes
1answer
38 views

How to send the present value of a counter to the index

The following is a simplification of the behavior of pagnote package, when you send all the notes to the end of the book. When some name in a note has to be indexed, it's better to make the number ...
0
votes
1answer
28 views

Index with Xindy, last line to long

I am trying to customise my index, based on this initial question. As i later found out, hyperref and xindy do not play nice if cross references are involved. Which is why I tried to follow this ...