From: Alan Schmitt <alan.schmitt@polytechnique.org>
To: emacs-orgmode@gnu.org
Subject: Re: #+LINK abbrevs possible in #+INCLUDEs ?
Date: Thu, 30 Apr 2015 13:30:45 +0200 [thread overview]
Message-ID: <m2egn1j1ju.fsf@charm-ecran.irisa.fr> (raw)
In-Reply-To: <87k2wvotz2.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Wed, 29 Apr 2015 17:05:37 +0200")
[-- Attachment #1: Type: text/plain, Size: 1295 bytes --]
On 2015-04-29 17:05, Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Hello,
>
> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
>
>> Does this mean that #+INCLUDE is now a superset of #+SETUPFILE (I've had
>> some cases where I needed to do both)?
>
> No, it isn't.
>
> INCLUDE are expanded only during export. SETUPFILE are read whenever you
> open a document or use C-c C-c on a keyword.
I see. So is this a correct characterization:
SETUPFILΕ behaves as if all the "#+" lines of the pointed file were in
the current file.
INCLUDE behaves as if all the lines of the pointed file were in the
current file during export.
Hence if a file only has "#+" lines, as in:
--8<---------------cut here---------------start------------->8---
#+author: Programmation Fonctionnelle
#+date: Année 2014-2015
#+options: toc:nil d:RESULTS
#+property: header-args:ocaml :tangle yes
#+LaTeX_CLASS_OPTIONS: [a4paper]
#+latex_header: \usepackage{color}
#+latex_header: \usepackage{minted}
--8<---------------cut here---------------end--------------->8---
then I only need to SETUPFILE it (but I cannot just INCLUDE it because
of the tangle property that needs to be set when the file is opened).
Thanks,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 494 bytes --]
prev parent reply other threads:[~2015-04-30 11:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 14:59 #+LINK abbrevs possible in #+INCLUDEs ? Detlef Steuer
2015-04-27 15:49 ` Nicolas Goaziou
2015-04-27 17:55 ` Detlef Steuer
2015-04-27 18:46 ` Nicolas Goaziou
2015-04-28 15:02 ` Detlef Steuer
2015-04-29 11:42 ` Alan Schmitt
2015-04-29 15:05 ` Nicolas Goaziou
2015-04-30 11:30 ` Alan Schmitt [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2egn1j1ju.fsf@charm-ecran.irisa.fr \
--to=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.