From: Sebastien Vauban <sva-news-D0wtAvR13HarG/iDocfnWg@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: BEGIN_LATEX_HEADER [cont]
Date: Fri, 20 Jun 2014 09:51:38 +0200 [thread overview]
Message-ID: <864mzghvcl.fsf@somewhere.org> (raw)
In-Reply-To: 87wqccbgvj.fsf@gmail.com
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
>>
>> 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
> |
> | #+name: preamble
> | #+begin_src latex :tangle preamble.tex
> | % code goes here
> | #+end_src
> `----
>
> You’ll need to use some combination of “:exports none” 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
‘#+BEGIN_LaTeX_HEADER ... #+END_LaTeX_HEADER’ 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
--
Sebastien Vauban
next prev parent reply other threads:[~2014-06-20 7:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-19 23:37 BEGIN_LATEX_HEADER [cont] Ken Mankoff
2014-06-19 23:48 ` Aaron Ecay
2014-06-20 7:51 ` Sebastien Vauban [this message]
2014-06-20 8:50 ` Nicolas Goaziou
2014-06-20 11:17 ` Ken Mankoff
2014-06-20 11:52 ` Fabrice Popineau
2014-06-20 12:11 ` Nicolas Goaziou
2014-06-21 5:43 ` Aaron Ecay
2014-06-21 8:16 ` Nicolas Goaziou
2014-06-22 0:42 ` Aaron Ecay
2014-06-22 2:00 ` [ANN] ox-extras (was: BEGIN_LATEX_HEADER [cont]) Aaron Ecay
2014-06-22 22:07 ` [ANN] ox-extras Rasmus
2014-06-22 22:08 ` Rasmus
2014-06-23 19:57 ` Nicolas Goaziou
2014-06-23 20:29 ` Thomas S. Dye
2014-06-22 2:19 ` BEGIN_LATEX_HEADER [cont] Ken Mankoff
2014-06-22 9:36 ` Nicolas Goaziou
2014-06-22 9:35 ` Nicolas Goaziou
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=864mzghvcl.fsf@somewhere.org \
--to=sva-news-d0wtavr13harg/idocfnwg@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/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).