emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Arsen Arsenović" <arsen@aarsen.me>
To: emacs-orgmode@gnu.org
Subject: [BUG] Org renders markup contained within LaTeX inline math delimiters [9.7.11 (release_9.7.11 @ /usr/share/emacs/31.0.50/lisp/org/)]
Date: Wed, 19 Feb 2025 16:49:02 +0100	[thread overview]
Message-ID: <865xl6szo1.fsf@aarsen.me> (raw)

Org Mode will consider markup starting from symbols that are inside
$$, \(\), and \[\].  Take, for instance, a file containing the
following:

--8<---------------cut here---------------start------------->8---
\(S \Rightarrow^{+} p\) and $p \Rightarrow^{+} q$

\[S \Rightarrow^{+} p\]
... and $p \Rightarrow^{+} q$
--8<---------------cut here---------------end--------------->8---

org-mode will render the pairs of +-signs as strikethrough.  Notably,
this seems to be the case only in buffers, not in exported Org code (at
least, not HTML-exported).  This holds for /, _ and * also.

Emacs  : GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.48, cairo version 1.18.2)
 of 2025-02-19
Package: Org mode version 9.7.11 (release_9.7.11 @ /usr/share/emacs/31.0.50/lisp/org/)

I've tested with 'emacs -q' that this happens in clean Emacs-bundled
Org.

The particular example above can be worked around by dropping the
redundant grouping charactes around the pluses in LaTeX.

Thanks in advance, have a lovely day.

PS: Apologies if this is a duplicate, I failed to find it, but it seems
like something that'd have been reported before.
-- 
Arsen Arsenović


             reply	other threads:[~2025-02-19 15:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-19 15:49 Arsen Arsenović [this message]
2025-02-23 17:29 ` [BUG] Org renders markup contained within LaTeX inline math delimiters [9.7.11 (release_9.7.11 @ /usr/share/emacs/31.0.50/lisp/org/)] Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=865xl6szo1.fsf@aarsen.me \
    --to=arsen@aarsen.me \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).