From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: highlighting latex code in org-mode Date: Wed, 09 May 2018 09:36:20 +0100 Message-ID: <8736z1p6nv.fsf@delle7240.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGKaK-0005jA-6c for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:36:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGKaG-0000nN-5v for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:36:28 -0400 Received: from mail-wr0-x22d.google.com ([2a00:1450:400c:c0c::22d]:34621) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGKaF-0000lh-Va for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:36:24 -0400 Received: by mail-wr0-x22d.google.com with SMTP id p18-v6so34894003wrm.1 for ; Wed, 09 May 2018 01:36:23 -0700 (PDT) In-Reply-To: (Joseph Vidal-Rosset's message of "Wed, 9 May 2018 10:17:57 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Joseph Vidal-Rosset Cc: "Liste-emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=98org.el= =E2=80=99. Its value is nil Documentation: Regular expression for highlighting LaTeX, entities and sub/superscript. Maybe play around with this? =2D-=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.7-475-g3ffc7d --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWvKzBAAKCRDIkZPY//z2 fYM3AKCI/LW5TgqGf93+DNmT4tsRJKZ5VgCfTev+jWmTHxEDUOGjkI6FNBh+zws= =9OX1 -----END PGP SIGNATURE----- --=-=-=--