# [TxMt] Re: textmate Digest, Vol 36, Issue 22

Luca Torella lucatorella at gmail.com
Fri Sep 21 12:14:09 UTC 2007

Guys, the file i linked is just a chapter... all the include,
documentclass etc are in the main file... just trust me the file is
regular latex, i can compile it even through textmate without any
warning/error... there is just a problem in coloring and i'd be happy
if someone, which know the latex bundle, can fix it.

btw, i've also an improvement request in the latex bundle... every
time i do typeset and view the pdf go to the beginning of the
document, which is very annoying, especially if you are reviewing a
document of many pages... TexShop for example keep the position in
the pdf viewer, letting you see the changes very fast.

> Data: 21 settembre 2007 12:10:48 GMT+02:00
> A: TextMate users <textmate at lists.macromates.com>
> Oggetto: Re: [TxMt] latex bundle - coloring error - \ and lstlisting
> Rispondi a: TextMate users <textmate at lists.macromates.com>
>
>
> Hi Luca,
>
> ticket did not help either. Perhaps you can send me the sample file
> over email? The version on the web looks really weird, no newlines
> etc.
>
> Btw, what is the scope on the lines both before and after your
> lstlisting? You can find that by placing the caret there and
> pressing ctrl-shift-p. Also what is the scope inside your lstlisting?
>
> On Sep 20, 2007, at 12:22 PM, Luca Torella wrote:
>
>> There is an error in the coloring of a latex document when i put a
>> '\' in a lstlisting; here is the example:
>>
>> \begin{lstlisting}
>> reservedWordsFM = listToUFM \$
>> map (\(x, y, z) -> (mkFastString x, (y, z)))
>> \end{lstlisting}
>>
>> the '\' is legal in the lstlisting but the bundle show an invalid
>> string and invalidate all t he remaining document
>>
>> if u wanna see the file which introduce the error you can download
>> it here:
>> http://macromates.com/ticket/show?ticket_id=0A9B755F
>
> Department of Mathematics and Computer Science
> Hanover College
>
>
>
>
>
>
>
>
> Da: "Robin Houston" <robin.houston at gmail.com>
> Data: 21 settembre 2007 12:18:47 GMT+02:00
> A: "TextMate users" <textmate at lists.macromates.com>
> Oggetto: Re: [TxMt] latex bundle - coloring error - \ and lstlisting
> Rispondi a: TextMate users <textmate at lists.macromates.com>
>
>
>> The version on the web looks really weird, no newlines etc.
>
> as HTML.
> If you download it, it looks okay; though it's not a standalone
> document