Search found 1 match

by David Marcus
Mon Jul 04, 2011 2:10 am
Forum: MakeIndex, Nomenclature, Glossaries and Acronyms
Topic: Problem with "@" Symbol in '\newcommand' and Index
Replies: 1
Views: 3524

Problem with "@" Symbol in '\newcommand' and Index

The following code
\documentclass{book}
\usepackage{makeidx}
\makeindex
\newcommand{\cmd}[1]{\textsf{\textsl{#1}}}
\newcommand{\CmdEntry}[1]{#1@\cmd{#1}}
\newcommand{\IndexCmd}[1]{\index{\CmdEntry{#1}}}
\begin{document}
Hello.
\index{one@\cmd{one}}
\IndexCmd{two}
\index{\CmdEntry{three ...