MakeIndex, Nomenclature, Glossaries and AcronymsIndex of all words in bold face

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Index of all words in bold face

Post by Zetison »

Is there a way to get Index of all words in bold face without using index{} at each of these words?
Last edited by Zetison on Mon Aug 19, 2013 8:39 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Index of all words in bold face

Post by Zetison »

Never mind. The solution is:

Code: Select all

\usepackage{makeidx}
\makeindex
\let\oldtextbf\textbf
\renewcommand{\textbf}[1]{\oldtextbf{#1}\index{#1}}
dami
Posts: 1
Joined: Sun Jan 09, 2022 9:26 pm

Index of all words in bold face

Post by dami »

If i want to include hyperref?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Index of all words in bold face

Post by Stefan Kottwitz »

You can put your hyperref commands also into the \renewcommand definition.

Stefan
LaTeX.org admin
Post Reply