I'm using the listings
package to include some source code files in a LaTeX document.
I'm having 2 problems:
- characters - are not shown in the resulting file
- characters % are shown overlapped with characters that appear after it.
This is my lstset
:
\lstset{
showstringspaces=false,
extendedchars=true,
frameround=fttt,
frame=single,
upquote=true,
breaklines=true
}
And this is how I insert listings:
\begin{figure}[t]
{\small{
\lstinputlisting[language=Python,numbers=left, numberstyle=\tiny]{modProblem.txt}
\caption{\label{fig:modProblem} El problema del operador \%}
}}
\end{figure}
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. In this case it will actually help to ensure that the solution actually solves your specific problem.