From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Docbook XML file does not exist Date: Wed, 04 May 2011 18:39:47 +0530 Message-ID: <818vumy5lw.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHbq4-0008Le-Ef for emacs-orgmode@gnu.org; Wed, 04 May 2011 09:10:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHbq0-0002A6-E4 for emacs-orgmode@gnu.org; Wed, 04 May 2011 09:10:00 -0400 Received: from mail-pw0-f41.google.com ([209.85.160.41]:50855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHbq0-00029t-5P for emacs-orgmode@gnu.org; Wed, 04 May 2011 09:09:56 -0400 Received: by pwi10 with SMTP id 10so724442pwi.0 for ; Wed, 04 May 2011 06:09:55 -0700 (PDT) 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: Belpaire Cc: emacs-orgmode@gnu.org Belpaire writes: > Hello, > > can somebody help me in setting up the Docbook export? I cannot help but I can definitely share my experience. I am more of a "one off" user of docbook exporter. > > My OS is Windows XP with Cygwin installed. Same here. > > Org-mode creates the Docbook xml file, but thinks it doesn't exist when > org-mode wants to process it. I ran into same issues. The "impression" I got was that it has something to do with the way docbook exporter shell quotes it's arguments. I didn't investigate further and this is what I ended up with finally. Export to xml from within emacs and export to pdf from within shell. (shell is bash within cygwin). There are two variations of shell command that I use: 1. Variation 1: #+begin_src sh xsltproc -stringparam admon.graphics 1 --output test.fo /usr/share/sgml/docbook/xsl-stylesheets/fo/docbook.xsl test.xml ~/bin/fop-1.0/fop ./test.fo test.pdf open test.pdf #+end_src 2. Variation 2: #+begin_src sh dblatex test.xml #+end_src The advantage of using variation 1 is that it produces a better looking output and the inline images do get embedded. The disadvantage is that you have to configure quite a good number of variables (3 variables right?) before you bite the dust :-). . The disadvantage of variation 2 is that it is a simple command that converts directly from xml to pdf and hides the presence of all the backdoor jugglery like the presence of xsl file, fo file and fop converter (Does dblatex use these internally - not sure). The problem is the resulting document has the inline images stripped off and the output is sloppy (relatively speaking). Here is what I would recommend as a minor enhancement to docbook exporter: Provide a `single' variable setting that takes the user from xml to pdf in a single step. Make dblatex the default converter of org-docbook.el. HTH, Jambunathan K.