Loading ...
Sorry, an error occurred while loading the content.
 

LaTeX syntax highlighting bug

Expand Messages
  • Jan Kluka
    Hi, all! I ve found that label{blahblah: aControlSequence{someArg}} is highlighted like this: yyyyyyyrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrYE where y,Y=yellow,
    Message 1 of 1 , Jan 13, 2000
      Hi, all!

      I've found that

      \label{blahblah:\aControlSequence{someArg}}

      is highlighted like this:

      yyyyyyyrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrYE

      where y,Y=yellow, r=red, E=error. (BTW, the construction is valid,
      control sequence is expanded before writing label to the .aux file.)

      There is another problem with new environment definitions. TeX
      allows to do something like this:

      \newenvironment{arrayInText}
      {$\begin{array}}
      {\end{array}$}
      blahblahblah

      There is probably other way of switching to the math mode, but it does not
      matter now. The closing brace of the beginning sequence of new environment
      is highlighted as error, so is the closing brace of the ending sequence.
      And, after all, any text (blahblahblah) following this definition is
      highlighted as if in the math mode.
      --
      JK

      Jan.Kluka@... ---------- http://www.st.fmph.uniba.sk/~6kluka
    Your message has been successfully submitted and would be delivered to recipients shortly.