[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Export each top level heading to separate file
From: |
Alan L Tyree |
Subject: |
Re: [O] Export each top level heading to separate file |
Date: |
Sun, 05 Jan 2014 13:44:41 +1100 |
User-agent: |
mu4e 0.9.9.5; emacs 24.3.1 |
Ista Zahn writes:
> On Sat, Jan 4, 2014 at 6:41 PM, Alan L Tyree <address@hidden> wrote:
>> On 05/01/14 09:45, Charles Millar wrote:
>>>
>>> Ista and all,
>>>
>>> On 1/4/2014 5:29 PM, Ista Zahn wrote:
>>>>
>>>> Hi all,
>>>>
>>>> I'm looking for a way to export each top-level heading to a separate
>>>> markdown file. Ideally I would like to have the exported files named
>>>> according to the heading. For example I would like this org file
>>>>
>>>> -----------------------------------
>>>> * Section one
>>>> Section one text
>>>> * Section two
>>>> ** Section two a
>>>> Section two text
>>>> * Section three
>>>> Section three text
>>>> -----------------------------------
>>>>
>>>> To generate three files:
>>>>
>>>> --- Section one.md ---
>>>> Section one text
>>>>
>>>> -----------------------------------
>>>>
>>>> --- Section two.md---
>>>> ## Section two a
>>>>
>>>> Section two text
>>>>
>>>> -----------------------------------
>>>>
>>>> --- Section three.md -
>>>> # Section three
>>>>
>>>> Section three text
>>>>
>>>> -----------------------------------
>>>>
>>>> I suspect that the publishing framework might support this, but I've
>>>> thus far avoided it because it looks pretty complicated to set up.
>>>> Before I dive in I'd like to know if the publishing framework is the
>>>> correct place to look for this functionality or if there is an easier
>>>> way to do it.
>>>>
>>>>
>>>
>>> I have a similar question regarding LaTeX export. How to export a heading
>>> (any heading, regardless of level) within a file to heading.tex instead of
>>> file.tex? So far the only solution I have cobbled together is to C-x C-f
>>> 'file.tex" and then C-x C-w "heading.tex" . I then typeset heading.tex
>>> using TeXworks. Perhaps I should note that my exported heading is tagged so
>>> that the heading is ignored.
>>>
>>> Charlie Millar
>>>
>>> ---
>>> This email is free from viruses and malware because avast! Antivirus
>>> protection is active.
>>> http://www.avast.com
>>>
>>>
>>>
>> Use properties to set the export file name -- example:
>> :PROPERTIES:
>> :EXPORT_TITLE: Internet banking fraud
>> :EXPORT_FILE_NAME: internet-fraud
>> :EXPORT_AUTHOR: Alan L Tyree
>> :Citation: (2011) 22 JBFLP 214
>> :EXPORT_OPTIONS: num:nil toc:nil
>> :END:
>
> Thanks, gets me half the way there. Setting properties as you
> described and exporting each sub-tree works properly. Now how can I do
> this for all the top-level headings in a file?
Sorry, that's beyond my pay grade :-). I would also be interested in
knowing the answer.
Cheers,
Alan
>
> Best,
> Ista
>
>>
>> If I understood your question properly.
>>
>> Cheers,
>> Alan
>>
>>
>>
>> --
>> Alan L Tyree http://www2.austlii.edu.au/~alan
>> Tel: 04 2748 6206 sip:address@hidden
>>
>>
--
Alan L Tyree http://www2.austlii.edu.au/~alan
Tel: 04 2748 6206 sip:address@hidden
- [O] Export each top level heading to separate file, Ista Zahn, 2014/01/04
- Re: [O] Export each top level heading to separate file, Charles Millar, 2014/01/04
- Re: [O] Export each top level heading to separate file, Alan L Tyree, 2014/01/04
- Re: [O] Export each top level heading to separate file, Ista Zahn, 2014/01/04
- Re: [O] Export each top level heading to separate file,
Alan L Tyree <=
- Re: [O] Export each top level heading to separate file, John Kitchin, 2014/01/05
- Re: [O] Export each top level heading to separate file, Ista Zahn, 2014/01/05
- Re: [O] Export each top level heading to separate file, John Kitchin, 2014/01/05
- Re: [O] Export each top level heading to separate file, Ista Zahn, 2014/01/05
- Re: [O] Export each top level heading to separate file, Charles Millar, 2014/01/05