I'm trying to understand how to use listings.
In the preamble I have:
\usepackage {listings}
Inside my document I wrote:
\begin{lstlisting}
for i:=maxint to 0 do
begin
{ nothing !}
end;
write(’Welcome !’);
\end{lstlisting}
It all doesn't work. I'm wondering why.
MWE :
\documentclass[a4paper,singleside,11pt]{report}
\usepackage{ia_urb_thesis}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\titolo{xxxxxx... \[5mm] }
\candidato{io}
\relatore{Chiar.mo Prof.~A}
\annoaccademico{2011-2012}
\copertinatesi \dedica{Ai miei genitori}
\indice \indicefigure \indicetabelle \iniziatesto
\include{cap_1}
\include{cap_2}
\appendix
\include{app_a}
\include{biblio}
\ringraziamenti Vorrei ringraziare ...
\end{document}


write(’Welcome !’);towrite('Welcome !');Second: your packageia_urb_thesisis unknown in s standard installation of atexdistribution. You should better uselatin9instead oflatin1. If possible and your editor is able to do it useutf8instead oflatin1.\includeis not useful in a MWE, because we do not have the included files so the MWE is not compiling ... – Kurt Dec 2 '12 at 21:35latin9in place oflatin1? – Brent.Longborough Dec 2 '12 at 21:38\begin{document}). – T. Verron Dec 2 '12 at 21:38utf-8– Brent.Longborough Dec 2 '12 at 21:43