[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The less ambiguous math delimiters in tables
From: |
Ihor Radchenko |
Subject: |
Re: The less ambiguous math delimiters in tables |
Date: |
Wed, 25 Dec 2024 18:05:21 +0000 |
Rudolf Adamkovič <rudolf@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>
- The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/24
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/24
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/25
- Re: The less ambiguous math delimiters in tables,
Ihor Radchenko <=
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/25
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/26
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/26
- Re: The less ambiguous math delimiters in tables, Ihor Radchenko, 2024/12/26
- Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/27
Re: The less ambiguous math delimiters in tables, Rudolf Adamkovič, 2024/12/24