Rudolf Adamkovič <rud...@adamkovic.org> writes: >> It is a syntax limitation. >> Org parser is outer-inner - the table row is parsed first. >> So, | are unconditionally used as table delimiters, *before* verbatim >> LaTeX markup is recognized. > > How is that not a parser bug? > > I thought that, with the noisy \(...\) delimiters, > > the parser finally has enough information > > to not screw up.
Your example shows ambiguous markup that can be interpreted in multiple ways: 1. <begin cell> \(<end cell><begin cell>x<end cell><begin cell>\) <end cell> 2. <begin cell> <begin latex>|x|<end latex> <end cell> Org parser chooses one. It has to choose some. Org parser also chooses a simpler interpretation that does not require backtracking. > P.S. It is impossible to write, e.g. \|, which is vector length (norm). Yes, it is impossible. That's why I call it markup limitation. We need to improve the markup to address this known problematic scenario. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>