Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to redefine the command PrintDescribeMacroof doc.sty in order to create a label that I can link to using hyperref.

However whenever I add a label to the command I get an error

\ifcsdef{PrintDescribeMacro}
   {\def\PrintDescribeMacro#1{%
   \label{doc:desc:#1}%
   \strut \MacroFont %
   \color{doctools@ColorCodeNames} \string #1\ }}{}

because the label is created with a different content than what I expect

\newlabel{doc:desc:\unhbox \voidb@x \relax \begingroup \catcode `\spacefactor 
\@m 11\relax \par }{{1}{3}{Commands provided by doc.sty and ltxdoc}{MacroName.1}{}}

Any better idea how to modify the commands of doc.sty?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.