I would like to like to use \verb
in theorem environment option, but it seems not work as I expected.
\documentclass{article}
\usepackage{amsthm}
\newtheorem*{dfn*}{Definition}
\begin{document}
\begin{dfn*}[\verb|double_integer|]
\[ \verb|double_integer|(n) := 2n \]
\end{dfn*}
\end{document}
How can I get the desired outcome?
\verb
does not work in the argument of any command. Use[\texttt{double\_integer}]