Tag Info

Hot answers tagged

10

I don't see any way of configuring the current version of latexmk to prevent it doing the extra runs. Not only is makeindex run a second time by latexmk, but so is latex, so the run time is doubled, which is a bad penalty on a large document. To correct this needs changes in latexmk itself. There is enough information in the .log file for latexmk to ...


8

The page range formation is disabled via a command line option, rather than an instruction in the .ist file. So the solution is to call makeindex with the -r option; with imakeidx this can be specified in the value for the option key; the simplest call would be \makeindex[options= -r] if no other setting for the (main) index is needed. In your case, ...


6

This should be something like you are trying to use: \documentclass{book} \usepackage{imakeidx} \makeindex[name=statutes,title=Statutes] \makeindex[name=dummy] \newcommand{\eunumerical}{statutes} \newcommand{\eualphabetical}{dummy} \begin{document} \chapter{abc} \index[\eualphabetical]{title} \index[\eunumerical]{number@number, title} ...


6

Normally the argument of \index is read verbatim, but ams alignments act like command arguments and defeat verbatim so the argument is read as command tokens and the entry expands to \indexentry{$\mu ^{\otimes \delimiter "3223379 n}$}{1} which messes up the index. You could use \index{$\mu^{\otimes\protect\downarrow n}$} which would work, but produces ...


5

For makeindex the symbol ! has a specific meaning. The manual of makeindex (texdoc makeindex) has the following example / explanation: To produce a subentry, the argument of the \index command should contain both the main entry and the subentry, separated by a ! character. Page 7: \index{gnat!size of} || gnat, 32 Page 32: \index{gnat} ...


5

imakeidx sets the number of columns with \imki@columns; so you can simply build another document with the following format: \documentclass{article} \usepackage{imakeidx} \usepackage{hyperref} \begin{document} \makeatletter \def\imki@columns{1} \def\indexname{External index} \makeatother \input{mainfile.ind} \end{document} leaving to the class the rest.


4

For getting the colon you need to define a new MakeIndex style; it's really simple: just prepare the following 31083.ist file in the same folder as your main document, with the single line delim_0 ": " because delim_0 is the container of the tokens inserted between an index entry and the first page number (if any). Then you have to instruct imakeidx to ...


4

Here is a possible solution. I show it with sections, it should be easy to adapt to your setting. (1) I define a counter and step it each time a new section is started with the \Section command, which defines a unique command holding the section's title and whose name depends on the value of the counter. (2) I get copies of the relevant indexing commands ...


4

Not to take away anything from John's answer, adding $makeindex = "touch -m %D"; to the local .latexmkrc produces automated workflow with nearly minimal overhead. In which case, on my system with this example, latex is only run once. I.e., this is (nearly) as efficient as things can ever get. The proviso, of course, is that imakeidx with \write18 enabled is ...


4

The imakeidx package must be loaded before hyperref. \documentclass{scrbook} \usepackage{imakeidx} \usepackage{classicthesis} \usepackage{cleveref} \makeindex \begin{document} Since hyperref is loaded by classicthesis this is the correct order.


4

Load imakeidx before hyperref. Generally, hyperref should be loaded last, though there are some exceptions (see Which packages should be loaded after hyperref instead of before? ).


3

Here's a way: \documentclass[10pt,% % corpo del font principale a4paper,% % carta A4 % draft,% % evidenzia le righe Overfull hbox twoside,% % oneside,% openright,% % fronte-retro % openany% ...


2

Generally the indexed words do not necessarily appear in the text at all (for example there can be a fox in the text and an \index{animals} next to it). Therefore I'm not sure whether I understand your question right. \documentclass{article} \usepackage{makeidx} \makeindex \usepackage{hyperref} \begin{document} ...


2

Rather than doing manual bookmark placement, I believe it's better to let hyperref work: \documentclass{article} \usepackage{imakeidx} \usepackage{hyperref} \usepackage{bookmark} \newcommand*\lettergroup[1]{\subsection{#1}} % http://tex.stackexchange.com/questions/51688/applying-lowercase-to-index-entries \newcommand*{\AddIndexEntry}[3][]{% % #1 = ...


1

Here is my final implementation of @egreg's answer. It uses \thepage in spite of his idea to use a counter. The reason for that is that I want to generate hyperlinks in the index, which is not possible if I don't know the page to link to, and I don't want to play with hundreds of dynamic labels. All in all, this works and I'm happy with it: ...



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