all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: Myles English <mylesenglish@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>,
	Julien Cubizolles <j.cubizolles@free.fr>
Subject: Re: #+BEGIN_LaTeX deprecated
Date: Tue, 9 Feb 2016 19:07:03 -0500	[thread overview]
Message-ID: <CAFyQvY3FWoJim2czZYgSRJF2KbTukfdogGjPLOfKhz_OzefDxw@mail.gmail.com> (raw)
In-Reply-To: <87bn7pcuu1.fsf@gmail.com>

[-- 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 --]

  reply	other threads:[~2016-02-10  0:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-09 17:10 #+BEGIN_LaTeX deprecated Julien Cubizolles
2016-02-09 23:44 ` Myles English
2016-02-10  0:07   ` Kaushal Modi [this message]
2016-02-10 12:11     ` Nicolas Goaziou
2016-02-10 12:56       ` Julien Cubizolles

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFyQvY3FWoJim2czZYgSRJF2KbTukfdogGjPLOfKhz_OzefDxw@mail.gmail.com \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=j.cubizolles@free.fr \
    --cc=mylesenglish@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.