[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] #+BEGIN_LaTeX deprecated
From: |
Myles English |
Subject: |
Re: [O] #+BEGIN_LaTeX deprecated |
Date: |
Tue, 09 Feb 2016 23:44:38 +0000 |
User-agent: |
mu4e 0.9.15; emacs 24.5.1 |
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