Skip to main content
12 votes
Accepted

How to generate an automatic index (concordance) in a large file?

The output file should look like this: http://www.gurt-der-wahrheit.org/files/konkordanz_schlachter_1951_A4.pdf Sure, it is possible. How about this? The complete concordance, of which the above is ...
ShreevatsaR's user avatar
  • 45.7k
11 votes
Accepted

How to determine how much "save space" I am using

How do I determine how much save space was used form the log file? At the end of the log file: 87i,19n,130p,10511b,4441s stack positions out of 5000i,500n,10000p,200000b,80000s it is the fifth ...
Heiko Oberdiek's user avatar
8 votes
Accepted

Using a parameter reference as the optional argument of a macro

This kind of “self-reference” is easy to obtain with xparse: \documentclass{article} \usepackage{xparse} \usepackage{imakeidx} \NewDocumentCommand{\Index}{O{#2}m}{% \textit{#1}\index{#2@#1}% } \...
egreg's user avatar
  • 1.1m
8 votes
Accepted

Abnormal distance in acronym list

This is actually a feature, not a bug, as the acronym list is printed as an index. Thus tNRA and TSH get closer because they both begin with t. You can add the option nogroupskip, described on page ...
Jinwen's user avatar
  • 8,578
7 votes
Accepted

Explain like I'm five: "see" index entries

First the easy part: \indexentry should never be used in a document; it's not generally defined and is only used for writing to the .idx file that makeindex will convert to an .ind file that LaTeX can ...
egreg's user avatar
  • 1.1m
7 votes

How to determine how much "save space" I am using

The save stack usage is shown in the line 87i,19n,130p,10511b,4441s stack positions out of 5000i,500n,10000p,200000b,80000s so 4441 in this case. the TeXBook says You can figure out what TeX ...
David Carlisle's user avatar
7 votes
Accepted

newcommand for index inserts unwanted spaces when using {}

LaTeX's \index reads its argument as a verbatim argument to prevent the expansion of commands. If \index is used in the argument of another macro, then the argument of \index is already read and the ...
Heiko Oberdiek's user avatar
6 votes
Accepted

Makeindex, different kinds of references and collation in the index

The problem here is that makeindex can't deal with conflicting encaps (the location formatting command) for the same location. For example, page (location) 1 has an empty encap (from \index{Lahm}) and ...
Nicola Talbot's user avatar
6 votes

"Greek" language in Babel makes "index" fail for roman-numbered pages

Christian Hupfer's comment gives Does a current workaround for babel and indexing Roman-numeral page numbers exist? as an answer, but since I never want to use Roman numerals in Greek text, just ...
alephzero's user avatar
  • 1,940
6 votes
Accepted

Three-column, full page index in tufte-book[twoside,symmetric]

With the document class tufte-book, a margin (of 2 inches) is reserved for sidenotes. Regarding options twoside,symmetric, the manual says: The twoside option will modify the running heads so that ...
jchd's user avatar
  • 553
6 votes
Accepted

TeXstudio Macro to change text into \index{text}

You could create a user macro: %SCRIPT cursor.replaceSelectedText("\\index{" + cursor.selectedText() + "}")
samcarter_is_at_topanswers.xyz's user avatar
5 votes
Accepted

Book template for tex4ebook

The problem with index is that there are no pages in the HTML, so it doesn't make sense to use them. Instead, we can number each \index use and insert link destination in that place. This way, we can ...
michal.h21's user avatar
  • 51.1k
5 votes
Accepted

Makeindex cannot generate index entries

makeindex's default compositor is a hyphen -. You can change it in a style file using page_compositor: \RequirePackage{filecontents} \begin{filecontents*}{\jobname.ist} page_compositor "." \end{...
Nicola Talbot's user avatar
5 votes
Accepted

imakeidx in greek

MakeIndex does not cope with letters beyond ASCII. Run with -shell-escape. I'm not sure Xindy supports iso-8859-7. \documentclass[10pt]{article} \usepackage[english, greek]{babel} \usepackage[utf8]{...
egreg's user avatar
  • 1.1m
5 votes
Accepted

Replace page numbers in index by theorem numbers

\index writes out the value of \thepage. Just change it to \thetheorem. \documentclass[12pt]{article} \usepackage{etoolbox} \usepackage{makeidx} \makeindex \makeatletter \patchcmd\@wrindex{\thepage}{...
egreg's user avatar
  • 1.1m
5 votes
Accepted

Is there a way to avoid writing "term \index{term}" when creating an index?

Node that you should do term\index{term} or some recommend \index{term}term never term \index{term} Or you may get a page break after term and the index will refer to the following page. The ...
David Carlisle's user avatar
5 votes
Accepted

Math Symbols in Index (makeindex)

The character | is special for MakeIndex, so you need to escape it. \documentclass{article} \usepackage{imakeidx} \makeindex \begin{document} Test\index{Norm!1@$"|"| \cdot "|"|$}...
egreg's user avatar
  • 1.1m
5 votes
Accepted

makeindex style of the book TeXbyTopic

TL;DR; Replace \def\cstoidx#1\par{\index{#1@\cs{#1}@}} with \def\cstoidx#1\par{\index{#1@\cs{#1}}} Long answer The problem raises because of \def\cstoidx#1\par{\index{#1@\cs{#1}@}} that produces ...
egreg's user avatar
  • 1.1m
5 votes
Accepted

equal symbol (=) behaves unacceptably in `doc`

You explicitly told makeindex to use gglo.ist style with the -s argument. You can look at that file, which starts actual '=' quote '!' level '>' so = is the actual character separating the index ...
David Carlisle's user avatar
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
5 votes

Strange command (\mitchi) appearing in makeindex (.idx) file

You have shown no usable example but you are presumably using unicode-math or a package compatible with it. unicode-math defines: \UnicodeMathSymbol{"1D712}{\mitchi }{\mathalpha}{mathematical ...
David Carlisle's user avatar
4 votes
Accepted

.ist file has no effect on printed index

The options key can only be honored without the splitindex option, because the production of the indices is handed over to that program and there's no way to pass options to it automatically. You can ...
egreg's user avatar
  • 1.1m
4 votes
Accepted

How can I index a string containing @ when \index itself uses @?

You can use the quote character to prefix the actual character: \documentclass[a4paper,10pt,openany]{scrbook} \usepackage{imakeidx} \makeindex \newcommand{\indexthing}[1]% {% \index{#1@\texttt{#...
Schweinebacke's user avatar
4 votes
Accepted

Is it possible to index an exclamation point given in a macro argument?

It's unrelated to " just as the error message indicates you have more { than } i assume \index{"#1@\texttt{"#1} (C operator)% was intended to be \index{"#1@\texttt{"#1} (C operator)}% and ...
David Carlisle's user avatar
4 votes

Using a parameter reference as the optional argument of a macro

EDITED to actually use \index. \documentclass{article} \usepackage{imakeidx} \newcommand\Index[2][\relax]{% \ifx\relax#1\def\actualarg{#2@#2}\else\def\actualarg{#2@#1}\fi% \textit{#2}% \...
Steven B. Segletes's user avatar
4 votes

Using a parameter reference as the optional argument of a macro

The xparse package is a great tool which can do what you want (it can declare a command with an optional argument with its default value taken from another argument). See the following example: \...
Sergei Golovan's user avatar
4 votes
Accepted

Why do makeidx and imakeidx ignore absolute values and norms?

It is not ignored, it is a syntax error reported in the makeindex log (ilg) file !! Input index error (file = file.idx, line = 2): -- Extra `|' at position 8 of first argument. By default | is a ...
David Carlisle's user avatar
4 votes
Accepted

Garbled index with ltxdoc document class

With things like the doc-package or the ltxdoc-class you need to call the makeindex-program with the style-file gind.ist for creating the index, with the style-file gglo.ist for creating the change-...
Ulrich Diez's user avatar
  • 29.6k

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