[lxml-dev] (patch) Generating PDF documentation
![](https://secure.gravatar.com/avatar/e134a7c1546bb254d8fee3eb90cfa235.jpg?s=120&d=mm&r=g)
As this is my first post to this list, let me start from great thanks for this excellent library. Now to the subject. HTML documentation is nice for online reference, but when one starts learning the library, it is nice to have single printable document. I created quick&dirty patch which adds "make pdf" target to the lxml Makefile, generating latex files and then pdflatex-ing them to obtain the PDF book. The result is surely unpolished (some LaTeX presentation tuning could make sense, also the section structure should be imported from common file instead of being copied), but nevertheless may be useful. I diff-ed it against the current subversion tip (rev 53799), but it should apply to other versions too (the patch consists of small Makefile change and two new python files in doc subdirectory) Best regards. -- ---------------------------------------------------------------------- | Marcin Kasperski | If Staff, Scope and Schedule are all fixed, | http://mekk.waw.pl | managers will have no options, other than | | prayer. (Martin) ----------------------------------------------------------------------
![](https://secure.gravatar.com/avatar/8b97b5aad24c30e4a1357b38cc39aeaa.jpg?s=120&d=mm&r=g)
Hi, Marcin Kasperski wrote:
As this is my first post to this list, let me start from great thanks for this excellent library.
:)
I created quick&dirty patch which adds "make pdf" target to the lxml Makefile, generating latex files and then pdflatex-ing them to obtain the PDF book.
I fixed up the patch a little and committed it to the trunk. If there are no objection, I'll just add the generated PDF to the source release, that's not even 1MB more.
The result is surely unpolished (some LaTeX presentation tuning could make sense, also the section structure should be imported from common file instead of being copied), but nevertheless may be useful.
It definitely is. I already thought about that a couple of times, but didn't really take a shot on it. So, thanks a lot for the contribution. Polish will come over time. I take more patches here. :) Stefan
participants (2)
-
Marcin Kasperski
-
Stefan Behnel