I've been working on a document that has a lot of little verbatim bits so I'm using fancyvrb \DeflneShortVerb{\|}. Now I want to add a tikz picture, and the whole thing fails. It there a simple way around this?
\documentclass{article}
\usepackage{fancyvrb}
\DefineShortVerb{\|}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\node[circle,draw] (E) {Foo};
\end{tikzpicture}
\end{document}
The error is:
/usr/local/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex:
673: Missing \endcsname inserted.
<to be read again>
\let
l.673 ...eoperator{||}{or} {2}{infix} {200}
The following question: Disable shortvrb in math mode discusses disabling \ShortVerb in math mode, but the solutions there won't work for this case.



||for theoroperator and this produces the error. – Gonzalo Medina Jun 15 '12 at 21:49\includegraphics(If there's no solution I'll just do the latter, most likely.) – Alan Munn Jun 15 '12 at 21:52\DefineShortVerb{\|}before the call to TikZ. After it's your problem to know what character to use for the verbatim form. – Alain Matthes Jun 16 '12 at 7:11