Generalfootnote{\verb{...}} causes "undefined contrl sequence".

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
eerie1972
Posts: 6
Joined: Wed Oct 15, 2008 10:44 pm

footnote{\verb{...}} causes "undefined contrl sequence".

Post by eerie1972 »

hello,

footnote{\verb{...}} causes "undefined contrl sequence".

any idea?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

footnote{\verb{...}} causes "undefined contrl sequence".

Post by gmedina »

Hi,

the fancyvrb package could be an option. Take a look at the following example:

Code: Select all

\documentclass{article}
\usepackage{fancyvrb}

\begin{document}

\VerbatimFootnotes
Some text\footnote{\verb=a test footnote.=}

\end{document}
Refer to the package documentation for further information.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
eerie1972
Posts: 6
Joined: Wed Oct 15, 2008 10:44 pm

Re: footnote{\verb{...}} causes "undefined contrl sequence".

Post by eerie1972 »

helpful, thanks.

\VerbatimFootnotes
\foonote{\verb=http://lib.stat.cmu.edu/=} %fine

however,
\usepackage{html}
\VerbatimFootnotes
\foonote{
\htmladdnormallink{\verb=http://lib.stat.cmu.edu/=}{http://lib.stat.cmu.edu/}
}%no longer fine
User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

footnote{\verb{...}} causes "undefined contrl sequence".

Post by Stefan Kottwitz »

Hi,

you could use the url package instead of verbatim environments/commands:

Code: Select all

\usepackage{url}
...
...\url{http://lib.stat.cmu.edu/}...
Stefan
LaTeX.org admin
Post Reply