GNOME Bugzilla – Bug 317406
Printable tutorial would be useful.
Last modified: 2007-06-06 16:18:44 UTC
It would be very useful to have access to a printable version of the tutorial either as a single-page html file or a pdf or ps file. Working on one screen the documentation is very tiresome as it requires switching workspaces or applications all the time while doing the examples. If I had any idea how to use the xml file to create a single file book I'd do it myself. (I've spent one hour now looking for appropriate documentation but I couldn't find any, sorry.)
Yes, it would be nice.
There's a thing called docbook-utils-pdf, though I haven't tried using it. It would be nice if you could experiment with that, and maybe create a patch to make gtkmm's build create a pdf when it creates the html.
I'm looking into this a little bit. I've gotten a pdf built from the docbook tutorial source, but it needs quite a bit of work before it's of acceptable quality. There are several places where code samples or screenshot images are too wide for the page and just get chopped at the edge of the page. Also, the links are displayed in the pdf, but the paths don't make any sense in a book format (e.g. ../../../examples/book/input). I'm using the docbook2pdf utility to convert to pdf, but docbook2pdf complains about XIncludes in the XML file so I've had to process it with `xmllint --xinclude` to do the inclusions before running it through docbook2pdf. The pdf is currently ~265 pages and 1.4MB
I suggest that you contact the gnome-doc people on one of their mailing lists if you need help. This should be a fairly generic GNOME documentation system issue.
I've committed preliminary support for this now. The output is not perfect, but it is now possible to generate a PDF of the tutorial by simply typing `make pdf`. The pdf is not yet built by default because it is not perfect and it takes quite a long time to build. If there are issues with the generated PDF (e.g. lines too long, pages split at weird places, etc), we should probably open new bugs to get those issues fixed. Closing this bug.