From: Jambunathan K <kjambunathan@gmail.com>
To: Belpaire <eric.belpaire@orange.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Docbook XML file does not exist
Date: Wed, 04 May 2011 18:39:47 +0530 [thread overview]
Message-ID: <818vumy5lw.fsf@gmail.com> (raw)
In-Reply-To: loom.20110504T120608-260@post.gmane.org
Belpaire <eric.belpaire@orange.fr> 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.
next prev parent reply other threads:[~2011-05-04 13:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-04 10:53 Docbook XML file does not exist Belpaire
2011-05-04 13:09 ` Jambunathan K [this message]
2011-05-04 14:00 ` Jambunathan K
2011-05-07 20:36 ` Eric Belpaire
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=818vumy5lw.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=eric.belpaire@orange.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.