Post
by gmedina » Sat Nov 21, 2009 11:33 pm
Hi,
the standard verbatim command and environment cannot be used in the arguments of other commands.
In your particular example, you could use something like
Code: Select all
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\hyperref[sec:mysection]{\texttt{region}}
\end{document}
If you really need to use some form of verbatim as argument, then you can use some of the features provided by the
fancyvrb package to do something like the following:
Code: Select all
\documentclass{article}
\usepackage{fancyvrb}
\usepackage{hyperref}
\begin{document}
\SaveVerb{myverb}|region|
\hyperref[sec:mysection]{\UseVerb{myverb}}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...