From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Shannon Subject: Re: highlighting latex code in org-mode Date: Wed, 09 May 2018 09:22:35 -0500 Message-ID: <95FCBA7A-4554-4B13-903F-6F7AB51ACAE5@me.com> References: <8736z1p6nv.fsf@delle7240.chemeng.ucl.ac.uk> <8736z1uspg.fsf@nicolasgoaziou.fr> <871sel5fa0.fsf@gmail.com> <87tvrhtais.fsf@nicolasgoaziou.fr> <87efil3wi8.fsf@gmail.com> <20180509120550.GB8772@volibear> Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_7D0F8759-74B7-4E0D-A2B0-A50ED6DDCF82" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48336) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGPzT-0005rY-At for emacs-orgmode@gnu.org; Wed, 09 May 2018 10:22:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGPzP-0007Ct-Bm for emacs-orgmode@gnu.org; Wed, 09 May 2018 10:22:47 -0400 Received: from mr26p50im-ztdg04111301.me.com ([17.120.69.157]:19273) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGPzO-00077E-Se for emacs-orgmode@gnu.org; Wed, 09 May 2018 10:22:43 -0400 Received: from process-dkim-sign-daemon.mr26p50im-ztdg04111301.me.com by mr26p50im-ztdg04111301.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P8G00700T49VH00@mr26p50im-ztdg04111301.me.com> for emacs-orgmode@gnu.org; Wed, 09 May 2018 14:22:40 +0000 (GMT) In-reply-to: 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" --Apple-Mail=_7D0F8759-74B7-4E0D-A2B0-A50ED6DDCF82 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 HI, Joseph. Its not the most elegant solution but if I=E2=80=99m doing extensive = latex editing I usually just enter latex mode (esc-x latex-mode). This = allows me to use auctex as well. =20 Of course, you have to switch back to org-mode after editing. So its = not a great solution if you are switching back and forth a lot. Tom S. > On May 9, 2018, at 9:04 AM, Joseph Vidal-Rosset = wrote: >=20 > Yes, I have just tried this solution:=20 >=20 > = https://emacs.stackexchange.com/questions/27866/syntax-highlighting-in-org= -mode-begin-latex-block/27891 = >=20 > i.e. =20 >=20 > #+BEGIN_LaTeX latex >=20 >=20 > #+END_LaTeX >=20 > and it seems that is the best option for me, but sometimes I meet = error with the export into the latex file. But the highlightings works.=20= >=20 > Thanks ! >=20 > Best wishes=20 >=20 > 2018-05-09 14:05 GMT+02:00 Russell Adams >: > On Wed, May 09, 2018 at 01:31:51PM +0200, Joseph Vidal-Rosset wrote: > > But nothing works for highlighting latex. >=20 > Have you considered making a latex block, and editing it? It'll have = full latex > syntax highlighting while in the block. >=20 > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com >=20 > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ = >=20 > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 >=20 >=20 --Apple-Mail=_7D0F8759-74B7-4E0D-A2B0-A50ED6DDCF82 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 HI, = Joseph.

Its not the = most elegant solution but if I=E2=80=99m doing extensive latex editing I = usually just enter latex mode (esc-x latex-mode).  This allows me = to use auctex as well.  

Of course, you have to switch back to = org-mode after editing.  So its not a great solution if you are = switching back and forth a lot.

Tom S.

On May = 9, 2018, at 9:04 AM, Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> wrote:

i.e.  =

#+BEGIN_LaTeX latex


#+END_LaTeX

and it = seems that is the best option for me, but sometimes I meet error with = the export into the latex file. But the highlightings works.

Thanks = !

Best = wishes

2018-05-09 14:05 GMT+02:00 Russell = Adams <RLAdams@adamsinfoserv.com>:
On = Wed, May 09, 2018 at 01:31:51PM +0200, Joseph Vidal-Rosset wrote:
> But nothing works for highlighting latex.

Have you considered making a latex block, and editing it? It'll = have full latex
syntax highlighting while in the block.

------------------------------------------------------------------
Russell Adams                =             RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3        =    http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 = 1160 DCB3



= --Apple-Mail=_7D0F8759-74B7-4E0D-A2B0-A50ED6DDCF82--