<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>For sure</span></div><div><br><span></span></div><div><span>Step 1 - Dblatex</span></div><div><span>------------------------<br></span></div><div><span>First of all be sure that you have dblatex installed<br></span></div><div><br></div><div>since I am on Ubuntu Lucid, I've did</div><div><br></div><div>apt-get install -y dblatex</div><div><br></div><div>Notice: I've tryied it with dblatex 0.2.12-4 (Ubuntu Lucid) and with the last version 0.3 available from dblatex.sf.net.</div><div>The two versions are Ok for me. However I am not able to confirm that my commands will work for dblatex < 0.2.12<br></div><div><br></div><div>Then </div><div><br></div><div>Step 2 - Generating the PDF</div><div>-------------------------------------<br></div><div># As usual, generate the XML file</div><div>cd
doc/adminguide<br></div><div>make slony.xml<br></div><div><br></div><div># we need to make a few changes: replacing 'article' by 'sect1' else we will not be able to use Latex<br></div><div>sed -i "s:<article:<sect1:g;s:</article:</sect1:g" slony.xml;</div><div><br></div><div># We use dblatex to generate a temporary Tex file named (for example) 'slony-tmp.tex'<br>dblatex -t tex -o slony-tmp.tex slony.xml</div><div><br></div><div># We drop bad lines "\end{document}" generated by dblatex<br>grep -vE '^(\\end{document}|\\subsection\*)$' slony-tmp.tex > slony.tex</div><div><br></div><div># We put the required '\end{document}' at the end of the Tex file<br></div><div>echo "\end{document}" >> slony.tex</div><div><br></div><div># Latex required to run the following command 3 times in order to generating the TOC of the document</div><div><br></div><div>pdflatex slony.tex</div><div>pdflatex slony.tex</div><div>pdflatex
slony.tex<br></div><div><br></div><div>Then the PDF file is generated.</div><div><br></div><div>That's all.<br><span></span></div><div><br><span></span></div><div><span></span></div><div><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">De :</span></b> Steve Singer <ssinger@ca.afilias.info><br><b><span style="font-weight: bold;">À :</span></b> David TECHER <davidtecher@yahoo.fr><br><b><span style="font-weight: bold;">Cc :</span></b> Devrim GÜNDÜZ <devrim@gunduz.org>; Slony Hackers <slony1-hackers@lists.slony.info><br><b><span style="font-weight: bold;">Envoyé le :</span></b> Lundi 24 Octobre 2011 16h22<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [Slony1-hackers] Re : Re : Slony 2.1.0 PDF
Documentation available<br></font><br>On 11-10-23 12:44 PM, David TECHER wrote:<br>> If you are interested, the files used to generated the pdf are joined to<br>> this mail.<br>><br>> slony.xml:<br>><br>> The file you've got when you do<br>><br>> make slony.xml<br>><br>> I had to modify it manually.<br>><br>> slony.tex:<br>><br>> do<br>><br>> pdflatex slony.tex<br>><br>> Be sure to have the image 'complexenv.png' in the same directory where<br>> the command is executed<br><br>To include this in the -doc tar builds going forward I need to know what <br>commands to execute to build the PDF from the xml sources.<br><br>$ cd doc/adminguide<br>$ make slony.xml<br><br>then what? Do I need to run<br><br>$ make slony.pdf<br><br>or something else?<br><br>><br>> ------------------------------------------------------------------------<br>> *De :* David TECHER <<a
ymailto="mailto:davidtecher@yahoo.fr" href="mailto:davidtecher@yahoo.fr">davidtecher@yahoo.fr</a>><br>> *À :* Devrim GÜNDÜZ <<a ymailto="mailto:devrim@gunduz.org" href="mailto:devrim@gunduz.org">devrim@gunduz.org</a>><br>> *Cc :* Slony Hackers <<a ymailto="mailto:slony1-hackers@lists.slony.info" href="mailto:slony1-hackers@lists.slony.info">slony1-hackers@lists.slony.info</a>><br>> *Envoyé le :* Dimanche 23 Octobre 2011 17h53<br>> *Objet :* [Slony1-hackers] Re : Slony 2.1.0 PDF Documentation available<br>><br>> Devrim,<br>><br>> I hope so.<br>><br>> Thanks for your mail.<br>><br>> David.<br>><br>> ------------------------------------------------------------------------<br>> *De :* Devrim GÜNDÜZ <<a ymailto="mailto:devrim@gunduz.org" href="mailto:devrim@gunduz.org">devrim@gunduz.org</a>><br>> *À :* David TECHER <<a ymailto="mailto:davidtecher@yahoo.fr"
href="mailto:davidtecher@yahoo.fr">davidtecher@yahoo.fr</a>><br>> *Cc :* Slony Hackers <<a ymailto="mailto:slony1-hackers@lists.slony.info" href="mailto:slony1-hackers@lists.slony.info">slony1-hackers@lists.slony.info</a>><br>> *Envoyé le :* Samedi 22 Octobre 2011 10h42<br>> *Objet :* Re: [Slony1-hackers] Slony 2.1.0 PDF Documentation available<br>><br>> On Fri, 2011-10-21 at 23:50 +0100, David TECHER wrote:<br>> ><br>> > The documentation is available at<br>> > <a href="http://www.davidgis.fr/documentation/slony/2.1.0/pdf/slony-2.1.0.pdf" target="_blank">http://www.davidgis.fr/documentation/slony/2.1.0/pdf/slony-2.1.0.pdf</a><br>> ><br>> > I did not attached the PDF to the mail (big file 1M even if<br>> > compressed).<br>> ><br>> > Let me know if you want to put it on slony.info :)<br>><br>> Thanks for the work!<br>><br>>
I really want to see it in slony.info, so that I can push this PDF along<br>> with RPMs.<br>><br>> Regards,<br>> --<br>> Devrim GÜNDÜZ<br>> Principal Systems Engineer @ EnterpriseDB: <a href="http://www.enterprisedb.com" target="_blank">http://www.enterprisedb.com</a><br>> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer<br>> Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr<br>> <a href="http://www.gunduz.org" target="_blank">http://www.gunduz.org</a> Twitter: <a href="http://twitter.com/devrimgunduz" target="_blank">http://twitter.com/devrimgunduz</a><br>><br>><br>><br>> _______________________________________________<br>> Slony1-hackers mailing list<br>> <a ymailto="mailto:Slony1-hackers@lists.slony.info" href="mailto:Slony1-hackers@lists.slony.info">Slony1-hackers@lists.slony.info</a> <mailto:<a ymailto="mailto:Slony1-hackers@lists.slony.info"
href="mailto:Slony1-hackers@lists.slony.info">Slony1-hackers@lists.slony.info</a>><br>> <a href="http://lists.slony.info/mailman/listinfo/slony1-hackers" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-hackers</a><br>><br>><br>><br>><br>> _______________________________________________<br>> Slony1-hackers mailing list<br>> <a ymailto="mailto:Slony1-hackers@lists.slony.info" href="mailto:Slony1-hackers@lists.slony.info">Slony1-hackers@lists.slony.info</a><br>> <a href="http://lists.slony.info/mailman/listinfo/slony1-hackers" target="_blank">http://lists.slony.info/mailman/listinfo/slony1-hackers</a><br><br><br><br></div></div></div></body></html>