From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Making DocBook xml books from org mode? Date: Thu, 29 Sep 2016 18:17:02 -0400 Message-ID: <1475187422.3176053.741333169.0906F627@webmail.messagingengine.com> References: <1475172280.399769.741096521.05684B25@webmail.messagingengine.com> <878tuajysi.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpjdf-0003JX-L3 for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 18:17:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpjdb-000271-Dg for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 18:17:10 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpjda-000264-7E for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 18:17:07 -0400 In-Reply-To: <878tuajysi.fsf@fastmail.fm> 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" To: Joost Kremers Cc: emacs-orgmode@gnu.org Dear Joost, On Thu, Sep 29, 2016, at 03:23 PM, Joost Kremers wrote: > > On Thu, Sep 29 2016, Peter Davis wrote: > > > > but the PDFs I'm getting still look like articles. (I copied the > > above from some examples posted on this list a while ago. Thanks!) > > Your LaTeX_CLASS is set to `koma-article', so that makes sense. > Ah, yes! Thanks. > > > 2. Are there any advantages to considering MarkDown or AsciiDoc as > > opposed to org markup? (Again, my familiarity with org is a strong > > incentive here, but I'm willing to consider other options.) > > There is a (IMHO) excellent markdown-mode available on Melpa, and if you > use Pandoc[1] to convert your documents you have a lot of flexibility. > There's also `pandoc-mode' (of which I'm the author), a minor mode that > makes interacting with pandoc from within Emacs easier. > Bravo! Thank you again. > > > 3. The direct route from org to DocBook xml seems to be missing. From > > what I gather, I can get there somehow via texi (but I don't even have > > that in org currently), or perhaps export to HTML and then convert that > > to db xml. Am I missing something? Is there some other route I should > > consider? > > Pandoc can convert to Docbook, so that might be an option. Note that > Pandoc also converts *from* Org, (although it cannot handle all of Org's > capabilities), so depending on your needs, that might be a way to go > directly from Org to Docbook. > Thank you. I did succeed in exporting from org to texi, and then makeinfo'ing that into a DocBook xml, though a bit of hand editing was necessary. > > > 4. [LONGSHOT] Is there any way to /import/ docbook xml into org mode? > > Pandoc also converts *from* Docbook, and can convert *to* Org, so again, > that might be of help. > > Of course, whether Pandoc can be useful to you really depends on your > needs. Pandoc's internal document representation is based on Markdown, > and by its very nature Markdown is more limited in it capabilities than > Org. In essence, anything that cannot be handled by (Pandoc's version > of) Markdown, cannot be handled by Pandoc in other formats. > Thanks. Sounds like Pandoc should really be in my toolkit. > > HTH Definitely! Thanks, -pd -- Peter Davis www.techcurmudgeon.com