From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Making DocBook xml books from org mode? Date: Sun, 02 Oct 2016 17:23:56 -0400 Message-ID: References: <1475172280.399769.741096521.05684B25@webmail.messagingengine.com> <878tuajysi.fsf@fastmail.fm> <1475187422.3176053.741333169.0906F627@webmail.messagingengine.com> <1475250249.663446.742041297.1ACDFDFD@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqoEx-0000dp-EI for emacs-orgmode@gnu.org; Sun, 02 Oct 2016 17:24:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bqoEt-00042c-6h for emacs-orgmode@gnu.org; Sun, 02 Oct 2016 17:24:06 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:51370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bqoEs-00041z-0F for emacs-orgmode@gnu.org; Sun, 02 Oct 2016 17:24:03 -0400 In-Reply-To: <1475250249.663446.742041297.1ACDFDFD@webmail.messagingengine.com> (Peter Davis's message of "Fri, 30 Sep 2016 11:44:09 -0400") 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 Peter Davis writes: > To follow up ... > > On Thu, Sep 29, 2016, at 06:17 PM, Peter Davis wrote: >> On Thu, Sep 29, 2016, at 03:23 PM, Joost Kremers wrote: >> > >> > 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. >> > > I did manage to get this working. I found I had to export to Pandoc > instead of running pandoc from a command line with the org file as > input. Otherwise, the embedded dot code I used would not link to an > image, but simply contain the dot code as source. > > Unfortunately, in trying to export to a file, I'm getting > > Unable to resolve link "www.gimp.org/downloads" > > I don't know where this is coming from, or how to fix it. > > Finally, the 'Export with Pandoc' menu item only gives me two choices: > [P] Markdown to buffer > [p] To file > > I assume it's just generating Markdown, which would then have to be > converted to docbook or whatever in a separate step. Any way to export > to docbook directly, using Pandoc implicitly? I'm trying this again, on a Mac instead of Windows. I managed to get ox-pandoc working. (It now displays an org export menu too big to fit on my screen, and I can't figure out how to scroll it.) When I try to export to docbook via pandoc (C-c C-e p d), I get Running pandoc with args: (-f org -t docbook5 -o /Users/peterdavis/Dropbox/HMH/my_file.dbk --parse-raw --mathjax --standalone /Users/peterdavis/Dropbox/HMH/my_file.tmp3362h9T.org) Error occured. pandoc: Unknown writer: docbook5 Any guesses? Is there something additional I need to install in pandoc? Thanks! -pd