From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: highlighting latex code in org-mode Date: Wed, 9 May 2018 13:31:51 +0200 Message-ID: References: <8736z1p6nv.fsf@delle7240.chemeng.ucl.ac.uk> <8736z1uspg.fsf@nicolasgoaziou.fr> <871sel5fa0.fsf@gmail.com> <87tvrhtais.fsf@nicolasgoaziou.fr> <87efil3wi8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000000bbbf8056bc441b3" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGNKR-0004Gq-Ez for emacs-orgmode@gnu.org; Wed, 09 May 2018 07:32:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGNKQ-0006Qz-I6 for emacs-orgmode@gnu.org; Wed, 09 May 2018 07:32:15 -0400 Received: from mail-lf0-x231.google.com ([2a00:1450:4010:c07::231]:34885) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGNKQ-0006P2-80 for emacs-orgmode@gnu.org; Wed, 09 May 2018 07:32:14 -0400 Received: by mail-lf0-x231.google.com with SMTP id y72-v6so36685905lfd.2 for ; Wed, 09 May 2018 04:32:14 -0700 (PDT) In-Reply-To: <87efil3wi8.fsf@gmail.com> 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: Nicolas Goaziou , Joseph Vidal-Rosset , "Liste-emacs-orgmode@gnu.org" , Eric S Fraga --0000000000000bbbf8056bc441b3 Content-Type: text/plain; charset="UTF-8" Thanks for your help. At the moment I have in my init.el (in fact my user.el because I am using scimax with -q -l options): (require 'ox-latex) (setq org-src-fontify-natively t) (setq org-highlight-latex-and-related '(latex)) (setq org-highlight-latex-and-related '(latex script entities)) But nothing works for highlighting latex. Best wishes, Jo. 2018-05-09 13:21 GMT+02:00 Eric S Fraga : > On Wednesday, 9 May 2018 at 11:59, Nicolas Goaziou wrote: > > Eric S Fraga writes: > > > >> Okay. But I have this variable set, to (latex), and it does > >> nothing. The regex remains nil. Is there some other configuration > >> setting that we have to set to get LaTeX snippets etc. highlighted? > > > > You may need to reload Org mode in the current buffer. > > But I have this set from the start and also tried with > custom-set-variable... and I have tried reloading org. All to no > avail. > > The highlighting works if I try emacs -Q so obviously something else is > affecting this setting. Ummmm time to dive into my customization of > org. Any hints as to what could be affecting the actual highlighting > would be welcome, of course! > > thanks, > eric > > -- > Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4 > --0000000000000bbbf8056bc441b3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks for your help. At the moment I have= in my init.el=C2=A0 (in fact my user.el because I am using scimax with -q = -l options):

(require 'ox-latex)
(setq org-src-fontify-native= ly t)
(setq org-highlight-latex-and-related '(latex))
(setq org-h= ighlight-latex-and-related '(latex script entities))

But nothing works for highlighting latex.

Best wishes,


Jo.

2018-05-09 13:2= 1 GMT+02:00 Eric S Fraga <esflists@gmail.com>:
On Wednesday,= =C2=A0 9 May 2018 at 11:59, Nicolas Goaziou wrote:
> Eric S Fraga <esflists@gmail.= com> writes:
>
>> Okay.=C2=A0 But I have this variable set, to (latex), and it does<= br> >> nothing.=C2=A0 The regex remains nil.=C2=A0 Is there some other co= nfiguration
>> setting that we have to set to get LaTeX snippets etc. highlighted= ?
>
> You may need to reload Org mode in the current buffer.

But I have this set from the start and also tried with
custom-set-variable... and I have tried reloading org.=C2=A0 All to no
avail.

The highlighting works if I try emacs -Q so obviously something else is
affecting this setting.=C2=A0 Ummmm time to dive into my customization of org.=C2=A0 Any hints as to what could be affecting the actual highlighting<= br> would be welcome, of course!

thanks,
eric

--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4

--0000000000000bbbf8056bc441b3--