On Fri, Jan 10, 2014 at 10:41 AM, Andrea Aime
<andrea.aime@anonymised.com>wrote:
Hi,
the PDF documentation has not been generated for the past few releases.
I'm wondering if we can automate its generation any way, or if we should
simply drop it
as something we're failing to deliver?
Doh, I gave it another crack (never really worked on my machine) and this
time I've found this page:
http://jimmyg.org/blog/2009/sphinx-pdf-generation-with-latex.html
So the trick is, you have to install the texlive-full monster (1GB
download, 1.8GB installed on disk)
to have the PDF generation work (eeek!).
And then the generated PDF really sucks as all the images are ridiculously
big... but a quick
search on the internet shows latex can rescale the images if instructed to,
so for example the following
command makes the images 50% of their original size in the tex file:
sed "s/includegraphics/includegraphics[scale=0.5]/g"
GeoServerUserManual.tex > manual.tex
and then pdflatex can be invoked so that it does not require manual
intervention (we still have a million
issues in the generated tex file) like this:
pdflatex -interaction batchmode manual.tex
which in turn generates the following pdf file (still 900+ pages, please
please don't print this thing...):
http://demo.geo-solutions.it/share/manual.pdf
The images are at least not completely ridiculous in this output.. although
it seems it's still missing
a table of contents, good luck navigating it without it...
Wondering if the above could be replicated on the build server, to automate
the PDF production during
the release process... we'd need to have texlive-full there to have things
working though.
Cheers
Andrea
--
== Our support, Your Success! Visit http://opensdi.geo-solutions.it for
more information ==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------