How to turn gnucash-guide.xml into PostScript and PDF

Kenneth Stailey kstailey at yahoo.com
Sun Jul 11 16:46:35 EDT 2004


I'm using gentoo.  I installed these:

[I--] [  ] app-text/docbook-sgml-utils-0.6.12 (0)
[I--] [  ] app-text/docbook-sgml-dtd-3.0-r1 (3.0)
[I--] [  ] app-text/docbook-sgml-dtd-3.1-r1 (3.1)
[I--] [  ] app-text/docbook-sgml-dtd-4.0-r1 (4.0)
[I--] [  ] app-text/docbook-sgml-dtd-4.1-r1 (4.1)
[I--] [  ] app-text/sgml-common-0.6.3-r4 (0)
[I--] [  ] app-text/openjade-1.3.2-r1 (0)
[I--] [  ] app-text/jadetex-3.12 (0)
[I--] [  ] app-text/sgmltools-lite-3.0.3-r7 (0)
[I--] [  ] app-text/tetex-2.0.2-r3 (0)
[I--] [  ] media-libs/netpbm-9.12-r4 (0)
[I--] [M~] app-office/gnucash-1.8.9 (0)

Plus you need to fetch ldp.dsl from the linux documentation project.  I put
that in my home dir so it refer to it as ~/ldp.dsl below.

There might be more packages needed but it's a good start.

* Convert png images to postscript but call them .png anyway.

Create symlink "figures-l" to png figures in gnucash

lrwxrwxrwx  1 nutznboltz users 39 Jul 11 15:34 figures-l ->
/usr/share/gnome/hel
p/gnucash/C/figures

mkdir figures

for i in figures-l/*.png
do
  echo $i
  pngtopnm $i | pnmtops -noturn > figures/`basename $i`
done

* Convert from .xml to .tex

openjade -t tex -d ~/ldp.dsl /usr/share/sgml/xml.dcl gnucash-guide.xml

Yes, there are error messages.  Either fix them or ignore them.  I
ignored them.

* Convert from tex to dvi

jadetex gnucash-guide.tex

Again since there won't be an aux file after the first pass

jadetex gnucash-guide.tex

* Convert from dvi to ps

dvips -o gnucash-guide.ps gnucash-guide.dvi

* Print

(preview with ggv or another postscript viewer)

lpr gnucash-guide.ps

* Optionally convert from ps to pdf

ps2pdf14 gnucash-guide.ps gnucash-guide.pdf

output sizes:
96M     gnucash-guide.ps
2.1M    gnucash-guide.ps.bz2
3.4M    gnucash-guide.pdf





More information about the gnucash-user mailing list