# Tag Info

5

Assuming that your intent is just to identify where the index-ed words are in your manuscript, you can consider using \usepackage{showidx}, which usually complements the makeidx package. Its most basic functionality is to print the index-ed words on the right page margins (cf. figure below). MWE: \documentclass[fontsize=12pt, paper=a4]{scrbook} \usepackage[...

2

I found a way to do it with imakeidx. For all who are interested: \documentclass{scrbook} \usepackage{imakeidx} \newcounter{NewCounter} \setcounter{NewCounter}{5} \makeatletter \newcommand{\Index}[1]{\imki@wrindexentry{MyIndex}{#1}{\theNewCounter}} \makeatother \makeindex[name=MyIndex] \begin{document} \stepcounter{NewCounter}\chapter{Test}\Index{...

2

When \index is in the argument to a macro, the argument to \index cannot be “sanitized” (that is, treated essentially verbatim). You can emulate the behavior with \detokenize: \documentclass[11pt]{article} % use larger type; default would be 10pt \usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX) \usepackage{makeidx} \makeindex \...

2

If I understood your needs, you could use csvsimple to elaborate you word list file as you like (even if, as Alan said in his comment, it's not possible to create the link to where the word is cited in the text). \documentclass{book} \usepackage{csvsimple} \usepackage{multicol} % The following code is here only to create the file mylist.txt % you don't ...

2

I have no idea where the hack is from and what it is supposed to do (and if it is still needed), but to get the word in the margin in red you can try this: \documentclass[11pt]{book} \usepackage{xcolor} \usepackage{makeidx} \usepackage[hyperfootnotes=false]{hyperref}%[pdfborder={0 0 0}] \makeatletter \ifHy@hyperindex \def\HyInd@ParenLeft{(}%Hook in \HyInd@@...

1

You may want to call makeindex with the -r command line option that disable automatic range formation. Otherwise, but it seems overkill, process the argument of \colorred: \documentclass{book} \usepackage{color} \usepackage{xparse} \ExplSyntaxOn \NewDocumentCommand{\colorred}{m} { \seq_set_split:Nnn \l_tmpa_seq { , } { #1 } \seq_set_map:NNn \...

1

I managed to get it to build, even if I haven't understood what caused the error in the first place. I investigated a bit---read through the whole error and so on. It seemed to come down to the \begin{theindex} bit in the ind file. A simple test confirmed this. I simply replaced \begin{theindex} with \begin{itemize} (and the closing bit also), and the ...

1

Comment by Ulrike Fischer notes that changing \@wrindex{\NAT@myidxtxt} to \expandafter\@wrindex\NAT@name solves the issue with sorting. Adding first names would require a switch to Biblatex or Biber.

1

Your command evaluates #1 "too early", so the file content of the .ind file already contains a delimiter (\delimiter 3223379). With \string it works. Side note: "Both" engines is a bit misleading as there are more engines than just pdf-/XeLaTeX out there (e.g. LuaLaTeX). %!TeX TS-program=arara % arara: xelatex % arara: makeindex % arara: xelatex % arara: ...

1

I do not really understand, what you want. If you want a sub-entry use \index{Breaking!word}. If you really want a manual line break in an entry you may use \index{Breaking word@Breaking\linebreak word}. \documentclass{book} \usepackage[makeindex]{imakeidx} \makeindex \begin{document} This is a sentence indexing the command \index{Breaking word@Breaking\...

1

You can use idxlayout, which also makes it possible to avoid issuing \onecolumn. Here's the fixed .ist file: preamble "\\begin{theindex} \\small\\newcounter{idxl}\n" postamble "\n\n \\end{theindex} \n" group_skip "\n\n \\vspace*{12mm}\n" heading_prefix "{\\bfseries\\Large\\hfill " heading_suffix "\\hfill}\\nopagebreak\\vspace*{4mm}\\stepcounter{idxl}\n" ...

1

I have patched the \index command. Now you can adjust the \indexFormat command however you want it. As asked for I made it print a dot right above the word. This dot has no width so that it does not affect where lines break. \documentclass[fontsize=12pt, paper=a4]{scrbook} \usepackage[utf8]{inputenc} \usepackage{makeidx} \makeindex \let\originalIndex=\...

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