emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* The less ambiguous math delimiters in tables
@ 2024-12-24  9:20 Rudolf Adamkovič
  2024-12-24  9:25 ` Ihor Radchenko
  2024-12-24  9:50 ` Rudolf Adamkovič
  0 siblings, 2 replies; 3+ messages in thread
From: Rudolf Adamkovič @ 2024-12-24  9:20 UTC (permalink / raw)
  To: emacs-orgmode

We know that

  \(...\) math delimiters are superior to $...$

in that

  they remove parsing ambiguities.

So, I updated my notes to the new delimiters, but

  Org still struggles with | within \(...\) in tables,

such as

  | \(|x|\) |

Is this a feature or a bug?

I was hoping to reap the benefits of \(...\) in this case.

P.S. I know about '\vert' in LaTeX.

Rudy
-- 
"Programming reliably -- must be an activity of an undeniably
mathematical nature […] You see, mathematics is about thinking, and
doing mathematics is always trying to think as well as possible."
--- Edsger W. Dijkstra, 1981

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The less ambiguous math delimiters in tables
  2024-12-24  9:20 The less ambiguous math delimiters in tables Rudolf Adamkovič
@ 2024-12-24  9:25 ` Ihor Radchenko
  2024-12-24  9:50 ` Rudolf Adamkovič
  1 sibling, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2024-12-24  9:25 UTC (permalink / raw)
  To: Rudolf Adamkovič; +Cc: emacs-orgmode

Rudolf Adamkovič <rudolf@adamkovic.org> writes:
>   Org still struggles with | within \(...\) in tables,
>
> such as
>
>   | \(|x|\) |
>
> Is this a feature or a bug?

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.

\vert is one possible workaround, but it does not work inside verbatim
text.

The only sane way would be adding some kind of alternative table
delimiter syntax to aid the situations like in your example.

-- 
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>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: The less ambiguous math delimiters in tables
  2024-12-24  9:20 The less ambiguous math delimiters in tables Rudolf Adamkovič
  2024-12-24  9:25 ` Ihor Radchenko
@ 2024-12-24  9:50 ` Rudolf Adamkovič
  1 sibling, 0 replies; 3+ messages in thread
From: Rudolf Adamkovič @ 2024-12-24  9:50 UTC (permalink / raw)
  To: emacs-orgmode

Rudolf Adamkovič <rudolf@adamkovic.org> writes:

> P.S. I know about '\vert' in LaTeX.

But, I was not able to figure out how to put

  \(\|\vec{u}\|\)

into a table.

[The \| sequence typesets as || but with different spacing than \vert\vert.]

Rudy
-- 
"Logic is a science of the necessary laws of thought, without which no
employment of the understanding and the reason takes place."
--- Immanuel Kant, 1785

Rudolf Adamkovič <rudolf@adamkovic.org> [he/him]
http://adamkovic.org


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-24  9:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24  9:20 The less ambiguous math delimiters in tables Rudolf Adamkovič
2024-12-24  9:25 ` Ihor Radchenko
2024-12-24  9:50 ` Rudolf Adamkovič

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).