Code: Select all
\documentclass[a4paper,12pt]{article}
\usepackage{fancyvrb}
\begin{document}
\begin{figure}
\begin{Verbatim}[commandchars=\\\{\},frame=single,numbers=left,label={Sample input}]
%POSITION 385-472 \label{vrb:mdconstr-pos}
\end{Verbatim}
\label{fig:input}
\end{figure}
\end{document}
Does anyone have an idea what is going wrong there?
EDIT: I was mistaken, the issue is not with the the code itself I want to have displayed, but with the label; it seems like the Verbatim environment freaks out if there is a dash in the label itself. Changing it to '\label{vrb:mdconstr_pos}' makes it compile.
This is a bit odd, if you ask me...