emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: highlighting latex code in org-mode
Date: Wed, 09 May 2018 09:36:20 +0100	[thread overview]
Message-ID: <8736z1p6nv.fsf@delle7240.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <CAD-VTcFay0Pha19o-8H8mQEs29vMiEybBNHyhk_-=S0-pQqCUg@mail.gmail.com> (Joseph Vidal-Rosset's message of "Wed, 9 May 2018 10:17:57 +0200")

[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

On Wednesday,  9 May 2018 at 10:17, Joseph Vidal-Rosset wrote:
> Hello,
>
> I would be happy to highlight latex code in org-mode, but nothing works. It
> is a pity because this lack of highlighting latex code in org-mode entails
> troubles in exporting in latex and I have always to correct my source
> files.

There appears to be support for font-lock for LaTeX expressions in org
but the regex that is used to determine LaTeX snippets is nil:

    org-latex-and-related-regexp is a variable defined in ‘org.el’.
    Its value is nil

    Documentation:
    Regular expression for highlighting LaTeX, entities and sub/superscript.

Maybe play around with this?

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.7-475-g3ffc7d

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]

  reply	other threads:[~2018-05-09  8:36 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-09  8:17 highlighting latex code in org-mode Joseph Vidal-Rosset
2018-05-09  8:36 ` Eric S Fraga [this message]
2018-05-09  8:41   ` Nicolas Goaziou
2018-05-09  9:50     ` Eric S Fraga
2018-05-09  9:59       ` Nicolas Goaziou
2018-05-09 11:21         ` Eric S Fraga
2018-05-09 11:31           ` Joseph Vidal-Rosset
2018-05-09 12:05             ` Russell Adams
2018-05-09 14:04               ` Joseph Vidal-Rosset
2018-05-09 14:22                 ` Thomas Shannon
2018-05-09 15:27                   ` Russell Adams
2018-05-09 16:01                     ` Thomas Shannon
2018-05-09 17:15                       ` Joseph Vidal-Rosset
2018-05-09 15:02                 ` Eric S Fraga
2018-05-09 15:16                   ` Joseph Vidal-Rosset
2018-05-09 15:42                     ` Eric S Fraga
2018-05-09  8:38 ` Eric S Fraga

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=8736z1p6nv.fsf@delle7240.chemeng.ucl.ac.uk \
    --to=esflists@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=joseph.vidal.rosset@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).