Dear all,
I want to insert Verbatim environment in moving arguments such as \section.
Is there a trick to do so?
Thanks in advance.
Hayashi
General ⇒ How to insert Verbatim environment in \section?
-
- Posts: 66
- Joined: Tue Oct 07, 2008 9:39 am
NEW: TikZ book now 40% off at Amazon.com for a short time.

How to insert Verbatim environment in \section?
Hi,
you could use some of the commands provided by the fancyvrb package, as the following example suggests:
Please refer to the package documentation for further information.
you could use some of the commands provided by the fancyvrb package, as the following example suggests:
Code: Select all
\documentclass{article}
\usepackage{fancyvrb}
\SaveVerb{myverb}|_verbatim%$|
\begin{document}
\tableofcontents
\section{A section title with \protect\UseVerb{myverb}}
\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...