From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: highlighting latex code in org-mode Date: Wed, 09 May 2018 10:41:15 +0200 Message-ID: <8736z1uspg.fsf@nicolasgoaziou.fr> References: <8736z1p6nv.fsf@delle7240.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGKf6-00028w-4S for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:41:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGKf2-00007Z-58 for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:41:24 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:40221) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGKf1-00005Z-UM for emacs-orgmode@gnu.org; Wed, 09 May 2018 04:41:20 -0400 In-Reply-To: <8736z1p6nv.fsf@delle7240.chemeng.ucl.ac.uk> (Eric S. Fraga's message of "Wed, 09 May 2018 09:36:20 +0100") 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" Hello, Eric S Fraga writes: > 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 entai= ls >> 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/superscri= pt. > > Maybe play around with this? This is an internal variable. The OP should tweak `org-highlight-latex-and-related' instead. Regards, --=20 Nicolas Goaziou