<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>As I mentioned, it compiles fine without hyperref, so there are
no missing braces anywhere. It also compiles fine if I add <br>
</p>
<p>\let\url\relax</p>
<p>(I was using that before to avoid deciding what to do about
urls.) So it really does seem to be an interaction between
hyperref and \footnote.<br>
</p>
<p>Yes, hyperref is currently the last package to be loaded.</p>
<p>I guess I'll just have to settle for \texttt and avoid using any
math-mode characters.</p>
<p>Fernando</p>
<p>PS: another email coming up on a weirder hyperref thing...<br>
</p>
<div class="moz-cite-prefix">On 1/29/2020 10:19 AM, Peter Flynn
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5aa6dcd6-55f3-adb8-8e05-aa0f2dabf38f@silmaril.ie">On
29/01/2020 14:57, Fernando Gouvea wrote:
<br>
<blockquote type="cite">I am working on a book, and the publisher
has just (as I was
<br>
finishing) asked me to use \hyperref to make links active on the
<br>
electronic version. Adding \usepackage{hyperref} and making no
other
<br>
changes, I get a new error message:
<br>
<br>
<blockquote type="cite">! LaTeX Error: \verb illegal in command
argument.
<br>
</blockquote>
</blockquote>
<br>
This does look like TeX is seeing \verb while it is processing the
argument of a previous command. Can you check first that there
aren't any missing close-curly-braces anywhere before the \verb?
<br>
<br>
Hyperref makes LOTS of very deep-seated changes to LaTeX. For this
reason it should always be the last package you load.
<br>
<br>
Can you try moving your \usepackage{hyperref} to after all other
\usepackage commands and see if that helps.
<br>
<br>
<blockquote type="cite">This happens because I used something like
\verb|Qp| in a footnote. Despite the error message, the
resulting pdf looks ok. Of course, I haven't actually tried
using any hyperref functionality yet. Can
<br>
anyone explain what is going on?
<br>
</blockquote>
<br>
You might also try using a different delimiter, eg \verb`Op` or
\verb+Op+
<br>
<br>
///Peter
<br>
.
<br>
</blockquote>
<pre class="moz-signature" cols="72">--
=============================================================
Fernando Q. Gouvea <a class="moz-txt-link-freetext" href="http://www.colby.edu/~fqgouvea">http://www.colby.edu/~fqgouvea</a>
Carter Professor of Mathematics
Dept. of Mathematics and Statistics
Colby College
5836 Mayflower Hill
Waterville, ME 04901
The shema of the postmodern church: "Hear, O Israel, get into tribes
and share your stories."
-- Kim Fabricius
</pre>
</body>
</html>