From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Millar Subject: Re: Export each top level heading to separate file Date: Sat, 04 Jan 2014 17:45:37 -0500 Message-ID: <52C88F11.4050601@verizon.net> References: 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]:48473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzZyi-00052j-ST for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 17:46:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzZyd-00010V-Sh for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 17:46:00 -0500 Received: from vms173005pub.verizon.net ([206.46.173.5]:46358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzZyd-00010R-N8 for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 17:45:55 -0500 Received: from [127.0.0.1] ([unknown] [70.209.139.16]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0MYW0005YF82ZC70@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 04 Jan 2014 16:45:39 -0600 (CST) In-reply-to: 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 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