The issue seems to be the difference in caption names and, more specifically, that the second caption has a "2D" in it (or maybe because it has an underscore in it), which must look like math to TeXnicCenter.
How do I get it to recognize this as text? How do I get this working?
Thanks.
Code: Select all
\documentclass[]{article}
\usepackage{listings}
\begin{document}
\lstdefinestyle{mycode}{basicstyle=\small, % print whole listing small
numbers=none,%left, numberstyle=\tiny, stepnumber=5, numbersep=5pt,
frame=single,
breaklines=true
}
\lstset{
style=mycode,
language=Octave,
caption={initFPU.m},
label={code:initFPU.m}
}
\lstinputlisting{code/kruskal/initFPU.m}
\lstset{
style=mycode,
language=Octave,
caption={initFPU_2D.m},
label={code:initFPU_2D.m}
}
\lstinputlisting{code/kruskal/initFPU_2D.m}
\end{document}