LaTeX forum ⇒ 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.
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Index of all words in bold face

Postby Zetison » Sun Aug 18, 2013 9:31 pm

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 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Index of all words in bold face

Postby Zetison » Mon Aug 19, 2013 1:11 pm

Never mind. The solution is:
\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

Postby dami » Sun Jan 09, 2022 9:28 pm

If i want to include hyperref?

User avatar
Stefan Kottwitz
Site Admin
Posts: 9804
Joined: Mon Mar 10, 2008 9:44 pm

Index of all words in bold face

Postby Stefan Kottwitz » Mon Jan 10, 2022 3:46 pm

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

Stefan
LaTeX.org admin


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest