emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: TEC <tecosaur@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>,
	Eric S Fraga <e.fraga@ucl.ac.uk>
Subject: Re: (Feature Request) customise LaTeX-preview regex
Date: Sun, 14 Jun 2020 19:30:28 +0200	[thread overview]
Message-ID: <87imfteerv.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <871rmhhhwr.fsf@gmail.com> (TEC's message of "Sun, 14 Jun 2020 21:53:10 +0800")

Hello,

TEC <tecosaur@gmail.com> writes:

> Just a quick note: I'm yet to resolve this, so any further
> comments/help on this would be much appreciated :)

You're only able to preview LaTeX code supported by Org, so something
like `org-latex-regexp' is not really meant to be extended. 

Org has limited support for LaTeX macros, i.e., this is not AucTeX. In
particular, it supports macros with at most one argument. With a proper
"latex_header" keyword, it should be possible to preview \ce{...}, but
not \SI{ … }{ … }. Likewise, the former will be correctly exported, but
not the latter.

Regards,

-- 
Nicolas Goaziou


  reply	other threads:[~2020-06-14 17:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-19  1:59 (Feature Request) customise LaTeX-preview regex Timothy
2020-05-19  7:26 ` Nicolas Goaziou
2020-05-19  7:49   ` Timothy
2020-05-19 11:45     ` Eric S Fraga
2020-05-19 14:27       ` Timothy
2020-06-14 13:53         ` TEC
2020-06-14 17:30           ` Nicolas Goaziou [this message]
2020-06-15  9:04           ` Eric S Fraga
  -- strict thread matches above, loose matches on Subject: below --
2020-05-18  7:10 Timothy

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=87imfteerv.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=tecosaur@gmail.com \
    /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).