<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Nov 6, 2005, at 5:56 PM, Charilaos Skiadas wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV><DIV>On Nov 6, 2005, at 5:23 PM, Brad Miller wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Georgia" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Georgia; "><SPAN class="Apple-style-span" style="font-family: Georgia; font-size: 16px; ">or (the following does not seem to be well documented, but appears to work)</SPAN></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Bitstream Vera Sans Mono"><SPAN class="Apple-style-span" style="font-family: Bitstream Vera Sans Mono; "> </SPAN></FONT><FONT class="Apple-style-span" face="Bitstream Vera Sans Mono"><SPAN class="Apple-style-span" style="font-family: Bitstream Vera Sans Mono; ">$$ dispalyed math equation $$</SPAN></FONT></DIV><P style="margin: 0.0px 0.0px 8.0px 0.0px; font: 16.0px Georgia; min-height: 19.0px; font-family: Georgia; font-size: 16px; "><BR style="font-family: Georgia; font-size: 16px; "></P></SPAN></BLOCKQUOTE>Hm, I have to admit I find this statement very surprising. It is extremely well documented in the TeXbook: </DIV><DIV><A href="http://www.ctan.org/tex-archive/systems/knuth/tex/texbook.tex">http://www.ctan.org/tex-archive/systems/knuth/tex/texbook.tex</A></DIV><DIV>I guess this might be the difference: That this is the way to do it in TeX, but not in LaTeX. Anyway...<BR><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>I don't think there is any difference between equation* and displaymath but I could be wrong...</DIV><DIV><FONT class="Apple-style-span" face="Georgia" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Georgia; "><BR class="khtml-block-placeholder"></SPAN></FONT></DIV></SPAN></BLOCKQUOTE>Well, I guess the question here would be, if you redefine one of the two, does that redefine the other as well? I dunno, I'm afraid I don't have a very deep knowledge of LaTeX either.</DIV><DIV><BR><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV><FONT class="Apple-style-span" face="Georgia" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Georgia; "></SPAN></FONT></DIV><DIV>I think for purposes of scoping in TextMate we ought to treat them all the same.</DIV><DIV><BR class="khtml-block-placeholder"></DIV></SPAN></BLOCKQUOTE>I agree.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Upon further investigation of my file, the problem seems to be that all this falls also under the scope of meta.function.with-arg.tex, since it happens within the scope of a \comment{ command. If I close this command before the displaymath part, then it works fine. So this is not a problem simply to do with the math scopes</DIV><DIV><BLOCKQUOTE type="cite"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "></SPAN></BLOCKQUOTE></DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV>It Looks like our replies crossed paths on the network...<BR><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Next question: \comment appears to be your own block comment function. So, Should any of the latex that follows be scoped as anything other than a comment? Since \comment is your own function the answer is probably no, but how to know what should work and what shouldn't</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>The problem for me is that it is not clear what LaTeX/TeX constructs are legal to embed in what other constructs. For a simple example, replace \comment with \textbf Strangely, all the text inside the textbf does not bold the text that was previously commented. Nor does it produce an error. Other times I have tried to put latex environments inside TeX commands and they result in errors....</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>That said, I moved the displaymath declarations into the TeX syntax file and all appears to be scoped correctly. in your document.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'm going to do a bit more testing and then I'll commit the change.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Brad</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">______________________________________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(threading gets destroyed and the universe will collapse if you don't)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>