Code: Select all
\newcommand*{\keyword}[1]{#1\index{#1}}
Code: Select all
\newcommand*{\keyword}[2][]{#2\index{#2#1}}
Code: Select all
Here I mention \keyword{term}. Here is the principle definition of \keyword[|textbf]{term}.
Nicola Talbot
Code: Select all
\newcommand*{\keyword}[1]{#1\index{#1}}
Code: Select all
\newcommand*{\keyword}[2][]{#2\index{#2#1}}
Code: Select all
Here I mention \keyword{term}. Here is the principle definition of \keyword[|textbf]{term}.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Code: Select all
makeindex -s mcgillnopage.ist abbr
Code: Select all
\documentclass[12pt,Bold,letterpaper,TexShade]{mcgilletdclass}
%various \usepackages
\makeindex[abbr]
\begin{document}
\maketitle%
\begin{romanPagenumber}{2}%
%various frontmatter
\tableofcontents %
\listoftables %
\listoffigures %
\printindex[abbr]{List of Symbols and Abbreviations}{List of Symbols and Abbreviations}
\end{romanPagenumber}
%mainmatter
\index[abbr]{EG@example}
\end{document}
This line goes into the batch file.diamondsteed wrote:[...] Do I put it in the .bat file? Or somewhere in the .tex file (see stripped down version below)? [...]
Thanks!localghost wrote:This line goes into the batch file.diamondsteed wrote:[...] Do I put it in the .bat file? Or somewhere in the .tex file (see stripped down version below)? [...]
Best regards and welcome to the board
Thorsten¹
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis