<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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.<div><br class="webkit-block-placeholder"></div><div>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.</div><div><br><div><br class="Apple-interchange-newline"><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Da: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Charilaos Skiadas <<a href="mailto:cskiadas@gmail.com">cskiadas@gmail.com</a>></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Data: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">21 settembre 2007 12:10:48 GMT+02:00</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>A: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">TextMate users <<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Oggetto: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Re: [TxMt] latex bundle - coloring error - \ and lstlisting</b></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Rispondi a: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">TextMate users <<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Hi Luca,</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><span class="Apple-tab-span" style="white-space:pre"> </span>I cannot reproduce this, and downloading the file you put on the 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.</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">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?</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">On Sep 20, 2007, at 12:22 PM, Luca Torella wrote:</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">There is an error in the coloring of a latex document when i put a '\' in a lstlisting; here is the example:</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">\begin{lstlisting}</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">reservedWordsFM = listToUFM $</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">map (\(x, y, z) -> (mkFastString x, (y, z)))</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">\end{lstlisting}</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">the '\' is legal in the lstlisting but the bundle show an invalid string and invalidate all t he remaining document</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">if u wanna see the file which introduce the error you can download it here:</font></p> <p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><a href="http://macromates.com/ticket/show?ticket_id=0A9B755F">http://macromates.com/ticket/show?ticket_id=0A9B755F</a></font></p> </blockquote><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Haris Skiadas</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Department of Mathematics and Computer Science</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Hanover College</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #000000; min-height: 14.0px"><b></b><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Da: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">"Robin Houston" <<a href="mailto:robin.houston@gmail.com">robin.houston@gmail.com</a>></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Data: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">21 settembre 2007 12:18:47 GMT+02:00</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>A: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">"TextMate users" <<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Oggetto: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Re: [TxMt] latex bundle - coloring error - \ and lstlisting</b></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Rispondi a: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">TextMate users <<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a>></font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">On 21/09/2007, Charilaos Skiadas <<a href="mailto:cskiadas@gmail.com">cskiadas@gmail.com</a>> wrote:</font></p> <blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 10.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">The version on the web looks really weird, no newlines etc.</font></p> </blockquote><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">I think that's because your web browser is trying to interpret it as HTML.</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">If you download it, it looks okay; though it's not a standalone document</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">(it doesn't start with \documentclass, nor indicate which packages it uses.)</font></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><br></p> <p style="margin: 0.0px 0.0px 0.0px 0.0px"><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Robin</font></p> </blockquote></div><br></div></body></html>