2
votes
2answers
31 views

Multiple index keywords in a row

Is there a way to declare multiple \index{}keywords with a single command, instead of declaring them separately? More precisely, instead of doing \index{keyword1}, \index{keyword2}, ...
8
votes
2answers
60 views

Indexing: inverting names

I have defined \Index to mark a word or phrase for indexing and also preserve it in text: \newcommand{\Index}[1]{#1\index{#1}} How would I define a macro to invert the index entry? e.g. ...
2
votes
1answer
129 views

LaTeX: is it possible to create a macro to add words to index (using TexMaker)?

I'm just finishing my first document (a book), and I have to create an index (\makeindex, \printindex, \index{WORD}, ...). I am using TexMaker on Linux. I was wondering if it's possible to define ...
0
votes
0answers
64 views

Splitindex: How do I make splitindex either ignore \ or make verbatim work with splitindex?

I´m trying to set up an index for a custom command called \propDesc. This command highlights properties and their description: \newcommand{\propDesc}[2]{ \fcolorbox{white}{propbg}{ ...
5
votes
2answers
83 views

A command which produces index if optional argument is not empty

I would like to define a command which creates an index with a certain name, when i pass the name, and doesn't create any index if there is no name passed. My first idea was to write it like that: ...
4
votes
1answer
62 views

How to include \index{} in new command (custom macro)?

When I try to used \index{} inside of \newcommand, the entry is made in the index, however, the text no longer appears in the body. How can I achieve a macro for the \index command? ...
10
votes
1answer
110 views

Plain text index via pdflatex

I would like to obtain a plain text version of the index so thought it might be easier to extract it from the existing packages somehow. The MWE below produces: What I want is a text file ...
2
votes
1answer
151 views

Automatically add theorems to index and label them

In another question (Remove math from command parameter to get only the letters) this command was elaborated to have an optional argument for sorting purposes within the index \documentclass{article} ...
5
votes
3answers
134 views

Remove math from command parameter to get only the letters

I use a little command, which prints new defined terms in bold, adds a label and adds them to the index. \newcommand*{\defined}[1]{{\bf #1}\label{#1}\index{#1}} Now if I do \defined{$G$-invariant} ...
14
votes
1answer
562 views

How to create my own ref label system?

I want to add a hyperlink to sections where a file is discussed. Additionally the usage should be added to the index. In principle this is very close to the label ref system. A simple approach would ...
7
votes
1answer
107 views

Index for part of document

I have a document with hundreds of \index entries. I'm trying to generate the index for some part of the document. The best I could come up with is to disable the \index command temporarily. I did it ...
5
votes
2answers
335 views

macro for custom indexing with conditionals and text recognition

I was unable to solve this by myself and by searching this wonderful site. The problem is with indexing. I still consider myself as a LaTeX newbie :) The situation: - I'm working on an english book ...
5
votes
2answers
333 views

Correct sorting of \index entries containing macros

I use \index in classical way, but also with some macros as content. More precisely, I have some macros like \def\foo{BAR}, and I use then \index{\foo}. Unfortunately, the index is then order by the ...
12
votes
7answers
966 views

How to get the string with \

Apologized for my unclear description. I wish I could explain my problem more clearly. In document, I wish I can just write something as "how to use \cmd \mbox in xxx" or "what is \cmd minipage ...
3
votes
1answer
651 views

Redefining the \printindex command and changing it to a desired form

In book class, I want to redefine the \printindex command and change it to something like the following: ‎\addcontentsline{toc}{chapter}{‎Index}‎‎‎‎ ‎\fancypagestyle{plain}{%‎ ‎\fancyhf{}‎ ...
19
votes
4answers
4k views

Command to uppercase the first letter of each word in a sentence

I'm writing a textboox in latex, and I have things like \textit{some definition}\index{Some Definition} all over the place. I'd like to combine them into something like \define{some definition} ...