emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* #+BEGIN_LaTeX deprecated
@ 2016-02-09 17:10 Julien Cubizolles
  2016-02-09 23:44 ` Myles English
  0 siblings, 1 reply; 5+ messages in thread
From: Julien Cubizolles @ 2016-02-09 17:10 UTC (permalink / raw)
  To: emacs-orgmode

The #+BEGIN_LaTeX... #+END_LaTeX has been deprecated in favor of
#+BEGIN_EXPORT latex ... #+END_EXPORT. I have however a lot of older org
files that I will need to export again. I can manually change the
blocks but I was wondering if some automatic conversion function has
been implemented.

Julien.

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

* Re: #+BEGIN_LaTeX deprecated
  2016-02-09 17:10 #+BEGIN_LaTeX deprecated Julien Cubizolles
@ 2016-02-09 23:44 ` Myles English
  2016-02-10  0:07   ` Kaushal Modi
  0 siblings, 1 reply; 5+ messages in thread
From: Myles English @ 2016-02-09 23:44 UTC (permalink / raw)
  To: Julien Cubizolles; +Cc: emacs-orgmode

Hello Julien,

Julien Cubizolles writes:

> The #+BEGIN_LaTeX... #+END_LaTeX has been deprecated in favor of
> #+BEGIN_EXPORT latex ... #+END_EXPORT. I have however a lot of older org
> files that I will need to export again. I can manually change the
> blocks but I was wondering if some automatic conversion function has
> been implemented.

I don't know if there is such a function but, for the problem you
describe, I would try something like this:

sed -i 's/#+\(BEGIN\|END\)_LaTeX/#+\1_EXPORT/' myfile.org

If there are lots of files maybe (UNTESTED):

grep -rl "BEGIN_LaTeX\|END_LaTeX" | \
     xargs -IXX \
           sed -i's/#+\(BEGIN\|END\)_LaTeX/#+\1_EXPORT/' XX

Myles

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

* Re: #+BEGIN_LaTeX deprecated
  2016-02-09 23:44 ` Myles English
@ 2016-02-10  0:07   ` Kaushal Modi
  2016-02-10 12:11     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: Kaushal Modi @ 2016-02-10  0:07 UTC (permalink / raw)
  To: Myles English; +Cc: emacs-org list, Julien Cubizolles

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

Check out this announcement email about the syntax change:
https://lists.gnu.org/archive/html/emacs-orgmode/2015-12/msg00525.html

It has a snippet to convert the old syntax files to new syntax.

--
Kaushal Modi
On Feb 9, 2016 6:45 PM, "Myles English" <mylesenglish@gmail.com> wrote:

> Hello Julien,
>
> Julien Cubizolles writes:
>
> > The #+BEGIN_LaTeX... #+END_LaTeX has been deprecated in favor of
> > #+BEGIN_EXPORT latex ... #+END_EXPORT. I have however a lot of older org
> > files that I will need to export again. I can manually change the
> > blocks but I was wondering if some automatic conversion function has
> > been implemented.
>
> I don't know if there is such a function but, for the problem you
> describe, I would try something like this:
>
> sed -i 's/#+\(BEGIN\|END\)_LaTeX/#+\1_EXPORT/' myfile.org
>
> If there are lots of files maybe (UNTESTED):
>
> grep -rl "BEGIN_LaTeX\|END_LaTeX" | \
>      xargs -IXX \
>            sed -i's/#+\(BEGIN\|END\)_LaTeX/#+\1_EXPORT/' XX
>
> Myles
>
>

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

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

* Re: #+BEGIN_LaTeX deprecated
  2016-02-10  0:07   ` Kaushal Modi
@ 2016-02-10 12:11     ` Nicolas Goaziou
  2016-02-10 12:56       ` Julien Cubizolles
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2016-02-10 12:11 UTC (permalink / raw)
  To: Kaushal Modi; +Cc: Myles English, emacs-org list, Julien Cubizolles

Hello,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> Check out this announcement email about the syntax change:
> https://lists.gnu.org/archive/html/emacs-orgmode/2015-12/msg00525.html
>
> It has a snippet to convert the old syntax files to new syntax.

For completeness, the function is included in ORG-NEWS relative to Org
9.0.

Regards,

-- 
Nicolas Goaziou

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

* Re: #+BEGIN_LaTeX deprecated
  2016-02-10 12:11     ` Nicolas Goaziou
@ 2016-02-10 12:56       ` Julien Cubizolles
  0 siblings, 0 replies; 5+ messages in thread
From: Julien Cubizolles @ 2016-02-10 12:56 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Kaushal Modi <kaushal.modi@gmail.com> writes:
>
>> Check out this announcement email about the syntax change:
>> https://lists.gnu.org/archive/html/emacs-orgmode/2015-12/msg00525.html
>>
>> It has a snippet to convert the old syntax files to new syntax.
>
> For completeness, the function is included in ORG-NEWS relative to Org
> 9.0.

Thanks, it saved me a lot of manual changes.

Julien.

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

end of thread, other threads:[~2016-02-10 13:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-09 17:10 #+BEGIN_LaTeX deprecated Julien Cubizolles
2016-02-09 23:44 ` Myles English
2016-02-10  0:07   ` Kaushal Modi
2016-02-10 12:11     ` Nicolas Goaziou
2016-02-10 12:56       ` Julien Cubizolles

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).