emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Subject: Re: columnview with #+INCLUDE:, org-export-org?
Date: Mon, 12 Mar 2012 11:59:21 +0000	[thread overview]
Message-ID: <8762eaxc6e.fsf@gmail.com> (raw)
In-Reply-To: <87k42qxftf.fsf@gmail.com> (Myles English's message of "Mon, 12 Mar 2012 10:40:44 +0000")

[-- Attachment #1: Type: text/plain, Size: 681 bytes --]

>> On Mon, 12 Mar 2012 10:40:44 +0000, Myles English said:

  > Hello, I would like to capture the columnview of a file including
  > the view of an org file specified using #+INCLUDE.  These includes
  > are currently only expanded during export so I am thinking maybe I
  > should export to a temporary org buffer first and then do a
  > columnview on the temporary buffer.

  > Has anyone else already solved this problem?  In particular, has
  > anyone already done org-export-org?  Any other comments, as I don't
  > really know my way around the code too well yet.

  > Thanks,

  > Myles

Turns out that everything is already included, and this works fine for
my purposes:


[-- Attachment #2: test-include.org --]
[-- Type: text/plain, Size: 994 bytes --]

#+TITLE:     test-include.org
#+DATE:      2012-03-12 Mon
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:

#+BEGIN_SRC emacs-lisp
(org-export-as-org nil nil nil nil nil nil)
(find-file "test-include-source.org")
(org-export-handle-include-files-recurse)
#+END_SRC

#+RESULTS:



* Prologue
#+INCLUDE: "./test-include-include.org" :lines "19-"


* colview							   :noexport:

#+BEGIN: columnview :hlines 5 :id file:test-include-source.org
| Task               | Effort | CLOCKSUM |
|--------------------+--------+----------|
| * Prologue         |        |          |
|--------------------+--------+----------|
| * Included heading |        |          |
#+END:

[-- Attachment #3: inline --]
[-- Type: text/plain, Size: 586 bytes --]

#+TITLE:     test-include-include.org
#+AUTHOR:    Myles English
#+EMAIL:     myles.english@ed.ac.uk
#+DATE:      2012-03-12 Mon
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:   
#+LINK_HOME: 
#+XSLT:


* Don't want this heading included

* Included heading
  This is included

[-- Attachment #4: Type: text/plain, Size: 34 bytes --]


Thanks again for orgmode.

Myles

      reply	other threads:[~2012-03-12 11:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-12 10:40 columnview with #+INCLUDE:, org-export-org? Myles English
2012-03-12 11:59 ` Myles English [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

  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=8762eaxc6e.fsf@gmail.com \
    --to=mylesenglish@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).