Page MenuHomePhabricator

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

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 added a subscriber: MarkAHershberger.
Restricted Application added subscribers: StudiesWorld, Aklapper. · View Herald TranscriptDec 4 2015, 10:01 PM

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

Pkra added a subscriber: Pkra.Apr 13 2016, 8:10 AM

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.

Physikerwelt triaged this task as Normal priority.May 29 2018, 2:18 PM
Pkra moved this task from Incoming to texvc on the Math board.Dec 7 2018, 11:14 AM