From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: BEGIN_LATEX_HEADER [cont] Date: Thu, 19 Jun 2014 19:48:32 -0400 Message-ID: <87wqccbgvj.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxm4J-0007Of-J4 for emacs-orgmode@gnu.org; Thu, 19 Jun 2014 19:48:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wxm4I-00052K-OJ for emacs-orgmode@gnu.org; Thu, 19 Jun 2014 19:48:35 -0400 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:62730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxm4I-00051S-KR for emacs-orgmode@gnu.org; Thu, 19 Jun 2014 19:48:34 -0400 Received: by mail-qg0-f52.google.com with SMTP id f51so2768251qge.39 for ; Thu, 19 Jun 2014 16:48:34 -0700 (PDT) In-Reply-To: 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@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff , emacs-orgmode@gnu.org Cc: Rasmus Hi Ken, 2014ko ekainak 19an, Ken Mankoff-ek idatzi zuen: >=20 > Hi, >=20 > I'm following up on a thread suggesting a method to easily include=20 > large > amounts of LaTeX header material. See > https://lists.gnu.org/archive/html/emacs-orgmode/2013-03/msg00480.html=20 >=20 > Please consider this a +1 for that feature request. >=20 > One suggestion was: >> You could have a LaTeX block and tangle it to preamble.tex and=20 >> input >> preamble.tex in a LATEX_HEADER. >=20 > Which seems like an OK work-around.=20 >=20 > I have two follow-up questions about this. >=20 > 1) I can't seem to get >=20 > #+BEGIN_LATEX :tangle preamble.tex >=20 > to work. It needs to be >=20 > #+BEGIN_SRC latex :tangle preamble.tex Correct. The former is only for export, and doesn=E2=80=99t work with babel features (incl. tangling) >=20 > Is this correct? >=20 > Secondly, is there a way to automatically tangle one just this=20 > section > each time I export the file? Or automatically all sections (but=20 > 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. HTH, --=20 Aaron Ecay