[texhax] \verb in figure caption

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Mon Apr 12 11:45:42 CEST 2004

[since support simply forwards to texhax, there's no need to send to

> Could anyone please let me know how to include "\verb|\alpha|" inside
> figure captions.
> I tried "\verb|\alpha|" and "\protect\verb|\alpha|", both are not working.


in this particular case, you could pull a macro from doc.sty (or
somewhere in that area):

  \DeclareRobustCommand{\cs}[1]{\texttt{\char`\\#1}} % from memoory

and use \cs{alpha}

More information about the texhax mailing list