Hello again,

I am sorry to have bothered you, I have already solved it. It was just
that I had missed the coma (,) after stringstyle in the preamble.

Yours faithfully,

Francesc Gispert

El mié, 07-12-2011 a las 23:25 +0100, Francesc Gispert Sanchez escribió:
> Dear Sirs and Madams,
> 
> I need to include some Python code in my work, so I decided to use the
> listings package. But I have come across a problem I do not know how to
> solve: when I export my document to a PDF with pdflatex, the double
> quotation marks do not look as expected: it appears something like
> 'extendedchars"extendedchars' (without the single quotation marks).
> 
> In the preamble I have this:
> \usepackage{listings}
> \usepackage{color}
> \lstset{
>     frame=single,
>     basicstyle=\scriptsize\ttfamily,
>     numbers=left,
>     numberstyle=\tiny,
>     stepnumber=1,
>     numbersep=5pt,
>     keywordstyle=\bfseries\color[rgb]{0,0,1},
>     commentstyle=\color[rgb]{0.6,0.6,0.6},
>     stringstyle=\color[rgb]{0.627,0.126,0.941}
>     extendedchars=true,
>     showspaces=false,
>     showtabs=false,
>     breaklines=true,
>     columns=fixed
> }
> 
> I have already tried setting extendedchars to false, but then the double
> quotation marks look like this: 'showspaces"showspaces' (again, without
> the single quotation marks). 
> 
> By the way, I am using LyX 2.0.1 (installed from the Debian Wheezy
> repositories).
> 
> I am looking forward to hearing from you.
> 
> Yours faithfully,
> 
> Francesc Gispert
> 
> 


Reply via email to