Page MenuHomePhabricator

at sign creates parsing error in math code where it doesn't in TeX
Open, MediumPublic

Description

Typing the "@2" into a VisualEditor math edit box results in the error message "Failed to parse (lexing error): @2".

Creating a page with the wikitext:

<math>
@2
</math>

results in the same error message.

However, putting

\begin{equation}
@2
\end{equation}

in a LaTeX document simply produces "@2".

Event Timeline

MarkAHershberger raised the priority of this task from to Needs Triage.
MarkAHershberger updated the task description. (Show Details)
MarkAHershberger added a project: Math.
MarkAHershberger subscribed.

We could now add the at sign to the whitelist for allow characters, but what's the mathematical use for that?

We could now add the at sign to the whitelist for allow characters, but what's the mathematical use for that?

Not sure if mathoid allows it but the AMScd extension (re-implementing the AMScd package for commutative diagrams) uses the @ as an active character to indicate the starting point of an arrow. See http://meta.math.stackexchange.com/questions/2324/how-to-draw-a-commutative-diagram for some examples.