neizod / lztex

A LaTeX markdown.
1 stars 0 forks source link

Boxed Equation #6

Open neizod opened 12 years ago

neizod commented 12 years ago

Boxed the equation, so it is mark as importance/conclusion equation.

\begin{equation}
 \boxed{x^2+y^2 = z^2}
\end{equation}

which style?

  1. double square bracket [[ x^2+y^2 = z^2 ]]. this style also make it easy to point out in source too.
  2. function call boxed(x^2+y^2 = z^2). easy implement, not easily confuse to users.
neizod commented 12 years ago

[[ x^2+y^2 = z^2 ]] might be discourage due to the usage of a[[1,2;3,4]] (parse as a_{\begin{matrix}1&2\\3&4\end{matrix}}), which is rarely use, but defiantly occur.

Also consider [[alpha], 0, [infinity]] which must parse as \begin{matrix}\begin{matrix}\alpha\end{matrix}&0&\begin{matrix}\infty\end{matrix}\end{matrix}. this lead to token ambiguous.

new. function-matrix call boxed[x^2+y^2 = z^2]. combine both, but inside bracket is not really parse like matrix (, is still comma, not element separator).