emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Julien Cubizolles <j.cubizolles@free.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: #+BEGIN_LaTeX deprecated
Date: Tue, 09 Feb 2016 23:44:38 +0000	[thread overview]
Message-ID: <87bn7pcuu1.fsf@gmail.com> (raw)
In-Reply-To: <87wpqdn726.fsf@free.fr>

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

  reply	other threads:[~2016-02-09 23:44 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 [this message]
2016-02-10  0:07   ` Kaushal Modi
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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87bn7pcuu1.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=j.cubizolles@free.fr \
    /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 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).