From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastien Vauban Subject: Re: BEGIN_LATEX_HEADER [cont] Date: Fri, 20 Jun 2014 09:51:38 +0200 Message-ID: <864mzghvcl.fsf@somewhere.org> References: <87wqccbgvj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Aaron Ecay wrote: > 2014ko ekainak 19an, Ken Mankoff-ek idatzi zuen: >> I'm following up on a thread suggesting a method to easily include >> large amounts of LaTeX header material. See >> https://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg00480.html >>=20 >> Is there a way to automatically tangle one just this section each >> time I export the file? Or automatically all sections (but just in >> this file)? > > Something like (untested): > > ,---- > | #+begin_src emacs-lisp > | (org-babel-goto-named-src-block "preamble") > | (org-babel-tangle) > | #+end_src > |=20 > | #+name: preamble > | #+begin_src latex :tangle preamble.tex > | % code goes here > | #+end_src > `---- > > You=E2=80=99ll need to use some combination of =E2=80=9C:exports none=E2= =80=9D or a headline > tagged :noexport: to avoid these src blocks showing up in the exported > output. Another solution which would be fine would be to have =E2=80=98#+BEGIN_LaTeX_HEADER ... #+END_LaTeX_HEADER=E2=80=99 blocks. Dunno if easy, however; but it'd be more straightforward for most users (no need to rely on Babel to tangle first). Best regards, Seb --=20 Sebastien Vauban