emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] highlighting latex code in org-mode


From: Nicolas Goaziou
Subject: Re: [O] highlighting latex code in org-mode
Date: Wed, 09 May 2018 10:41:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Eric S Fraga <address@hidden> 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 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?

This is an internal variable. The OP should tweak
`org-highlight-latex-and-related' instead.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]