On Sat, 2009-02-28 at 18:20 +0100, Vincent van Ravesteijn wrote:
> > Question:
> > So, what's the deal? Where are the "missing" lines from the .lyx file?
> > How can I force the "textcomp" packge to be loaded before the "listings"
> > package?
> >   
> 
> There are no missing lines. If there is a listing in the .lyx file, LyX 
> adds the usepackage automatically when generating the latex code.
> 
> I'm afraid you can't force this, but maybe somebody knows a work-around.
> 
> see bugs:
> 
> http://bugzilla.lyx.org/show_bug.cgi?id=5031
> http://bugzilla.lyx.org/show_bug.cgi?id=5366
> 
> Vincent

Hi Vincent!

I know there are no real missing lines (this is why I used the quotes).
But where is this pre-preabmle lying? Why can't I see it in my
text-editor?

Nonetheless, I think I've just hit a work-around :-)


Move all listing-settings from the "Document > Settings > Text layout >
Listing settings" (right windows) into the Preabmle. So my Listing
settings is empty now and my preabmle has:

\usepackage{textcomp}
\usepackage{listings}
\lstset{alsoletter={*()"'0123456789.},
basicstyle={\small},
breaklines=true,
keywordstyle={\color{marineblue}},
prebreak={\textbackslash},
upquote=true}


And... voila! It works :D

Cheers, Nikos

Reply via email to