Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I don't know why I get an error related to this code:

\begin{lstlisting}[framexleftmargin=0mm,basicstyle=\ttfamily\small,breaklines,columns=fullflexible]
xp_sendmail {[ @recipients= ] 'recipients [ ;…n ]'}
   [,[ @message= ] 'message' ]
   [,[ @query= ] 'query' ]
   [,[ @subject= ] 'subject' ]
   [,[ @attachments= ] 'attachments' ]
\end{lstlisting}

This is part of my preamble:

\documentclass[a4paper,singleside,11pt]{report}
\usepackage{ia_urb_thesis}
\usepackage[italian]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{color}
%\usepackage {listingsutf8}
%\usepackage{tikz}
\usepackage[thinlines]{easytable}
\usepackage{upquote}
\setcounter{secnumdepth}{5}
\setcounter{tocdepth}{5}

\usepackage{listings}
%\lstset{language=PHP}
\usepackage{url}
%\usepackage[pdftex]{graphicx}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath

\usepackage{float}
share|improve this question
1  
can you turn your snippet into a complete MWE? – cmhughes Jan 15 at 18:16
Please stop tagging every question with latex-project. Read the FAQ, please - you will even get a badge for that. – Martin Schröder Jan 15 at 18:20
3  
Please add a minimal working example (MWE) that illustrates your problem, not just a snippet. Also please always state the exact error message you get. – Martin Scharrer Jan 15 at 18:21
Your example works fine for me with ia_urb_thesis and inputenc commented out. Must be some interaction issue with ia_urb_thesis. – Peter Grill Jan 15 at 18:32
My guess: babel is defining some active chars to facilitate the input of accents in italian, and those have bad interactions with other libraries. Search in italian babel documentation about how to deactivate those active chars. – JLDiaz Jan 15 at 18:34
show 2 more comments

closed as too localized by Martin Schröder, Thorsten, lockstep, Guido, Andrew Swann Jan 16 at 10:14

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.