Re: [O] Separate Org file from Subtree

2015-08-04 Thread Bastien Guerry
Hi Simon, with a recent Org (>8.0) : - load ox-org.el (require 'ox-org) - go to your heading - trigger the export menu with C-c C-e - restrict to the subtree with C-s - export as an Org file with O o HTH, -- Bastien

Re: [O] Separate Org file from Subtree

2015-02-16 Thread simon
That's perfect John, works a treat! Thank you very much. Simon. --- On Mon, 16 Feb 2015, at 02:59 PM, John Kitchin wrote: > I think if you change (org-org-export-as-org nil t t) to > (org-org-export-as-org nil t) you would get the section content. I > didn't test it though. > > si...@psilas

Re: [O] Separate Org file from Subtree

2015-02-16 Thread John Kitchin
I think if you change (org-org-export-as-org nil t t) to (org-org-export-as-org nil t) you would get the section content. I didn't test it though. si...@psilas.com writes: > Thanks very much for this John. As you say, the normal export "C-c C-e > C-s O o" does not work as expected. Your function

Re: [O] Separate Org file from Subtree

2015-02-16 Thread simon
Thanks very much for this John. As you say, the normal export "C-c C-e C-s O o" does not work as expected. Your function exported the properties properly, but seemed to work on the visible text only and wouldn't export the content of headings (unless I unfold them all prior to import). If the art

Re: [O] Separate Org file from Subtree

2015-02-16 Thread John Kitchin
Change :EXPORT_FILENAME: an-interesting-article to :EXPORT_FILE_NAME: an-interesting-article Then, C-c C-e C-s O o should export to that file. I notice in the org export that the properties are not getting exported, and even the headline is not exported as the title though. Here is a function t

[O] Separate Org file from Subtree

2015-02-16 Thread simon
Hi there, I think I must be missing something. I have a collection of articles in one org file (under separate headings). I can export these as a subtree using Org's normal export function as html etc., but I want to export the selected subtree as an individual org file using the properties unde