From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan L Tyree Subject: Re: Export each top level heading to separate file Date: Sun, 05 Jan 2014 10:41:53 +1100 Message-ID: <52C89C41.70506@gmail.com> References: <52C88F11.4050601@verizon.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vzapl-0001pp-2T for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 18:40:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vzapg-0006C8-MV for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 18:40:48 -0500 Received: from mail-pb0-x22a.google.com ([2607:f8b0:400e:c01::22a]:37229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vzapg-0006Bx-6c for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 18:40:44 -0500 Received: by mail-pb0-f42.google.com with SMTP id uo5so17060914pbc.15 for ; Sat, 04 Jan 2014 15:40:42 -0800 (PST) Received: from [192.168.1.1] (202.63.32.163.static.rev.eftel.com. [202.63.32.163]) by mx.google.com with ESMTPSA id z10sm154917090pas.6.2014.01.04.15.40.40 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 04 Jan 2014 15:40:41 -0800 (PST) In-Reply-To: <52C88F11.4050601@verizon.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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: If I understood your question properly. Cheers, Alan -- Alan L Tyree http://www2.austlii.edu.au/~alan Tel: 04 2748 6206 sip:typhoon@iptel.org