all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Embedded LaTeX fontification
@ 2016-09-09 12:06 Kai von Fintel
  2016-09-09 15:42 ` Charles C. Berry
  0 siblings, 1 reply; 7+ messages in thread
From: Kai von Fintel @ 2016-09-09 12:06 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

When I embed LaTeX code in a `#+BEGIN_SRC latex` block and 
`org-src-fontify-natively` is set to `t`, the code is fontified as LaTeX 
code. But when the code is embedded in a `#+BEGIN_LaTeX` block, there's 
no fontification. Is that as intended? Am I missing some setting? Or 
could that functionality be added?

-- Kai.

[-- Attachment #2: Type: text/html, Size: 1060 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Embedded LaTeX fontification
  2016-09-09 12:06 Embedded LaTeX fontification Kai von Fintel
@ 2016-09-09 15:42 ` Charles C. Berry
  0 siblings, 0 replies; 7+ messages in thread
From: Charles C. Berry @ 2016-09-09 15:42 UTC (permalink / raw)
  To: Kai von Fintel; +Cc: emacs-orgmode

On Fri, 9 Sep 2016, Kai von Fintel wrote:

> When I embed LaTeX code in a `#+BEGIN_SRC latex` block and 
> `org-src-fontify-natively` is set to `t`, the code is fontified as LaTeX 
> code. But when the code is embedded in a `#+BEGIN_LaTeX` block, there's no 
> fontification. Is that as intended? Am I missing some setting?

See ORG-NEWS

* Version 9.0
** Incompatible changes
*** New syntax for export blocks
[...]

and use the function provided there to update your *.org files.

> Or could that functionality be added?

It is already there in the new export blocks.

HTH,

Chuck

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Embedded LaTeX fontification
       [not found] <e7d95743181c4e59ba6e775ad3124659@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-09-09 15:48 ` Eric S Fraga
  2016-09-09 16:44   ` Kai von Fintel
  2016-09-10  3:17   ` s j
  0 siblings, 2 replies; 7+ messages in thread
From: Eric S Fraga @ 2016-09-09 15:48 UTC (permalink / raw)
  To: Kai von Fintel; +Cc: emacs-orgmode@gnu.org

On Friday,  9 Sep 2016 at 12:06, Kai von Fintel wrote:
> When I embed LaTeX code in a #+BEGIN_SRC latex block and
> org-src-fontify-natively is set to t, the code is fontified as LaTeX
> code. But when the code is embedded in a #+BEGIN_LaTeX block, there's
> no fontification. Is that as intended? Am I missing some setting? Or
> could that functionality be added?

What version of org are you using?  In latest versions, begin_latex is
now
#+begin_export latex
...
#+end_export
and this does fontify correctly for me.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Embedded LaTeX fontification
  2016-09-09 15:48 ` Eric S Fraga
@ 2016-09-09 16:44   ` Kai von Fintel
  2016-09-10  3:17   ` s j
  1 sibling, 0 replies; 7+ messages in thread
From: Kai von Fintel @ 2016-09-09 16:44 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Kai von Fintel, emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 860 bytes --]

On 9 Sep 2016, at 11:48, Eric S Fraga wrote:

> On Friday,  9 Sep 2016 at 12:06, Kai von Fintel wrote:
>> When I embed LaTeX code in a #+BEGIN_SRC latex block and
>> org-src-fontify-natively is set to t, the code is fontified as LaTeX
>> code. But when the code is embedded in a #+BEGIN_LaTeX block, there's
>> no fontification. Is that as intended? Am I missing some setting? Or
>> could that functionality be added?
>
> What version of org are you using?  In latest versions, begin_latex is
> now
> #+begin_export latex
> ...
> #+end_export
> and this does fontify correctly for me.

Hmm, I *thought* I was up to date: Org-mode version 8.3.5 
(8.3.5-8-gd2cb29-elpaplus @ 
/Users/fintel/.emacs.d/elpa/org-plus-contrib-20160905/). I guess I have 
to somehow get Spacemacs to use the bleeding edge version of org rather 
than the latest stable version?

-- Kai.

[-- Attachment #2: Type: text/html, Size: 1803 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Embedded LaTeX fontification
  2016-09-09 15:48 ` Eric S Fraga
  2016-09-09 16:44   ` Kai von Fintel
@ 2016-09-10  3:17   ` s j
  2016-09-10  3:40     ` Nick Dokos
  1 sibling, 1 reply; 7+ messages in thread
From: s j @ 2016-09-10  3:17 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Kai von Fintel, emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]

I am using the org-plus-contrib package in org ELPA.

  

The export block

  

#+begin_export latex

...

#+end_export

  

does not work properly.

It produces

  

\begin{export}

...

\end{export}

  

in the .tex file and causes error.

  

Instead, I still need to use

  

#+begin_latex

...

#+end_latex

.

  

Is the version in org EPLA an out-dated one?

  

Jiang

  

  
On Sep 9 2016, at 12:23 pm, Eric S Fraga <e.fraga@ucl.ac.uk> wrote:  

> On Friday, 9 Sep 2016 at 12:06, Kai von Fintel wrote:  
> When I embed LaTeX code in a #+BEGIN_SRC latex block and  
> org-src-fontify-natively is set to t, the code is fontified as LaTeX  
> code. But when the code is embedded in a #+BEGIN_LaTeX block, there's  
> no fontification. Is that as intended? Am I missing some setting? Or  
> could that functionality be added?

>

> What version of org are you using? In latest versions, begin_latex is  
now  
#+begin_export latex  
...  
#+end_export  
and this does fontify correctly for me.

>

> \--  
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa


[-- Attachment #2: Type: text/html, Size: 1713 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Embedded LaTeX fontification
  2016-09-10  3:17   ` s j
@ 2016-09-10  3:40     ` Nick Dokos
  2016-09-10  6:50       ` s j
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2016-09-10  3:40 UTC (permalink / raw)
  To: emacs-orgmode

s j <jsj.register@gmail.com> writes:

> I am using the org-plus-contrib package in org ELPA. 
>
> The export block
>
> #+begin_export latex
> ...
> #+end_export
>
> does not work properly. 
> It produces
>
> \begin{export}
> ...
> \end{export}
>
> in the .tex file and causes error.
>
> Instead, I still need to use
>
> #+begin_latex
> ...
> #+end_latex
> .
>
> Is the version in org EPLA an out-dated one?
>

No: it is the stable version. No new features, only bug fixes, are
applied to it.

You are right that it does not recognize #+begin_export
latex...#+end_export.  That is a feature that has been introduced in
the master branch (which will become the stable version at some point
in the future).

-- 
Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Embedded LaTeX fontification
  2016-09-10  3:40     ` Nick Dokos
@ 2016-09-10  6:50       ` s j
  0 siblings, 0 replies; 7+ messages in thread
From: s j @ 2016-09-10  6:50 UTC (permalink / raw)
  To: Nick Dokos; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 906 bytes --]

Thanks for the clarification!

  

Jiang

  
On Sep 9 2016, at 8:41 pm, Nick Dokos <ndokos@gmail.com> wrote:  

> s j <jsj.register@gmail.com> writes:

>

> > I am using the org-plus-contrib package in org ELPA.  
>  
> The export block  
>  
> #+begin_export latex  
> ...  
> #+end_export  
>  
> does not work properly.  
> It produces  
>  
> \begin{export}  
> ...  
> \end{export}  
>  
> in the .tex file and causes error.  
>  
> Instead, I still need to use  
>  
> #+begin_latex  
> ...  
> #+end_latex  
> .  
>  
> Is the version in org EPLA an out-dated one?  
>

>

> No: it is the stable version. No new features, only bug fixes, are  
applied to it.

>

> You are right that it does not recognize #+begin_export  
latex...#+end_export. That is a feature that has been introduced in  
the master branch (which will become the stable version at some point  
in the future).

>

> \--  
Nick


[-- Attachment #2: Type: text/html, Size: 1335 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-09-10  6:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-09 12:06 Embedded LaTeX fontification Kai von Fintel
2016-09-09 15:42 ` Charles C. Berry
     [not found] <e7d95743181c4e59ba6e775ad3124659@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-09-09 15:48 ` Eric S Fraga
2016-09-09 16:44   ` Kai von Fintel
2016-09-10  3:17   ` s j
2016-09-10  3:40     ` Nick Dokos
2016-09-10  6:50       ` s j

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.