From: Rob Richmond <robbyr@gmail.com>
To: emacs-orgmode@gnu.org
Subject: INCLUDE heading
Date: Wed, 17 Sep 2014 16:04:21 -0700 [thread overview]
Message-ID: <CAGgQopKhjOzZ0+PvdNx3zz46=Tia4nBR5V7tf5pwGnLvGow2KQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]
Hi all,
I use org-mode to write both papers and slides. The code to generate tables
and figures is placed in source blocks. Most of the time I use the same
tables in my slides as in my papers, but a lot of preprocessing code is
needed to generate the tables. I'd like to put the generation of these
tables in its own org-mode file and just be able to include certain
headings in the paper or slide document. For example, I would have an
org-mode document called mytables.org:
* Heading 1
** Regressions
#+BEGIN_SRC R
cat("hello world")
#+END_SRC R
* Heading 2
And another document mypaper.org:
* Section 1
#+INCLUDE: "mytables.org" :heading "Heading 1/Regressions"
* Section 2
The content from below the ** Regression headline in mytables.org would be
included on export in mypaper.org. It would also be great to be able to
follow the INCLUDE to the file with C-c '. Org provides some facilities for
these includes, but does not allow for headings (
http://orgmode.org/manual/Include-files.html ). Obviously org does not have
the :heading parameter, but any suggestions for a solution to make this
work are greatly appreciated. It looks like org-export-expand-include-keyword
is doing a lot of the magic of including the files, but I'm not sure where
to go from there.
Thanks for any help.
[-- Attachment #2: Type: text/html, Size: 5958 bytes --]
next reply other threads:[~2014-09-17 23:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-17 23:04 Rob Richmond [this message]
2015-04-01 18:44 ` INCLUDE heading Joon Ro
2015-04-01 19:42 ` Rasmus
2015-04-01 19:53 ` Joon Ro
2015-04-01 20:14 ` Rasmus
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='CAGgQopKhjOzZ0+PvdNx3zz46=Tia4nBR5V7tf5pwGnLvGow2KQ@mail.gmail.com' \
--to=robbyr@gmail.com \
--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 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).