## #117 improve syntax hl in math environments

open
nobody
None
5
2012-10-17
2010-11-11
No

In math env. the colors are only brown and green. For long math equations it becomes very difficult to read the structure, here for example:
\begin{align}
\label{eqn:FresnelIntegralDiskret}
E(u,v) & \propto \iint E(x,y) \e^{\frac{\i k}{2z}\left[ (u-x)^2 + (v-y)^2 \right]} \,\td x \,\td y \
& = \iint E(x,y) \cdot h(u-x, v-y) \,\td x \,\td y \quad \text{mit}\quad h(x, y) = \e^{\frac{\i k}{2z}\left(x^2 + y^2 \right)}
\intertext{Unter Anwendung des Faltungstheorems erhalten wir den Zusammenhang}
E(u,v) & \propto \mathcal{F}^{-1} \left{ \mathcal{F}{E(x,y) } \cdot \mathcal{F}{ \e^{\frac{\i k}{2z}\left(x^2 + y^2 \right)} } \right}\,.
\intertext{und folglich umgeschrieben in diskrete Koordinaten}
E(u_m,v_n) & \propto \mathcal{F}^{-1} \left{ \mathcal{F}{E(x_m,y_n) } \cdot \mathcal{F}{ \e^{\frac{\i k}{2z}\left(x_m^2 + y_n^2 \right)} } \right}\,.
\end{align}
some commands which are not math, such as \text{} and \intertext{} should not be rendered as math, other such as \label also not.
In math the grouping of brackets is especially errornes, Here it would be better if brackets were colored differently with significant contrast to green.

## Discussion

• Nobody/Anonymous - 2010-12-02

Great idea!

• Nobody/Anonymous - 2010-12-02

Basic commands should not be singled out as a mathematical text. Improved readability.