David TECHER davidtecher at yahoo.fr
Mon Oct 24 15:47:24 PDT 2011
For sure

Step 1 - Dblatex
------------------------

First of all be sure that you have dblatex installed


since I am on Ubuntu Lucid, I've did

apt-get install -y dblatex

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.
The two versions are Ok for me. However I am not able to confirm that my commands will work for dblatex < 0.2.12


Then 

Step 2 - Generating the PDF
-------------------------------------

# As usual, generate the XML file
cd doc/adminguide

make slony.xml


# we need to make a few changes: replacing 'article' by 'sect1' else we will not be able to use Latex

sed -i "s:<article:<sect1:g;s:</article:</sect1:g" slony.xml;

# We use dblatex to generate a temporary Tex file named (for example) 'slony-tmp.tex'
dblatex -t tex -o slony-tmp.tex slony.xml

#  We drop bad lines "\end{document}" generated by dblatex
grep -vE '^(\\end{document}|\\subsection\*)$' slony-tmp.tex > slony.tex

# We put the required '\end{document}' at the end of the Tex file

echo "\end{document}" >>  slony.tex

# Latex required to run the following command 3 times in order to generating the TOC of the document

pdflatex slony.tex
pdflatex slony.tex
pdflatex slony.tex


Then the PDF file is generated.

That's all.





________________________________
De : Steve Singer <ssinger at ca.afilias.info>
À : David TECHER <davidtecher at yahoo.fr>
Cc : Devrim GÜNDÜZ <devrim at gunduz.org>; Slony Hackers <slony1-hackers at lists.slony.info>
Envoyé le : Lundi 24 Octobre 2011 16h22
Objet : Re: [Slony1-hackers] Re : Re : Slony 2.1.0 PDF Documentation available

On 11-10-23 12:44 PM, David TECHER wrote:
> If you are interested, the files used to generated the pdf are joined to
> this mail.
>
> slony.xml:
>
> The file you've got when you do
>
> make slony.xml
>
> I had to modify it manually.
>
> slony.tex:
>
> do
>
> pdflatex slony.tex
>
> Be sure to have the image 'complexenv.png' in the same directory where
> the command is executed

To include this in the -doc tar builds going forward I need to know what 
commands to execute to build the PDF from the xml sources.

$ cd doc/adminguide
$ make slony.xml

then what?  Do I need to run

$ make slony.pdf

or something else?

>
> ------------------------------------------------------------------------
> *De :* David TECHER <davidtecher at yahoo.fr>
> *À :* Devrim GÜNDÜZ <devrim at gunduz.org>
> *Cc :* Slony Hackers <slony1-hackers at lists.slony.info>
> *Envoyé le :* Dimanche 23 Octobre 2011 17h53
> *Objet :* [Slony1-hackers] Re : Slony 2.1.0 PDF Documentation available
>
> Devrim,
>
> I hope so.
>
> Thanks for your mail.
>
> David.
>
> ------------------------------------------------------------------------
> *De :* Devrim GÜNDÜZ <devrim at gunduz.org>
> *À :* David TECHER <davidtecher at yahoo.fr>
> *Cc :* Slony Hackers <slony1-hackers at lists.slony.info>
> *Envoyé le :* Samedi 22 Octobre 2011 10h42
> *Objet :* Re: [Slony1-hackers] Slony 2.1.0 PDF Documentation available
>
> On Fri, 2011-10-21 at 23:50 +0100, David TECHER wrote:
>  >
>  > The documentation is available at
>  > http://www.davidgis.fr/documentation/slony/2.1.0/pdf/slony-2.1.0.pdf
>  >
>  > I did not attached the PDF to the mail (big file 1M even if
>  > compressed).
>  >
>  > Let me know if you want to put it on slony.info :)
>
> Thanks for the work!
>
> I really want to see it in slony.info, so that I can push this PDF along
> with RPMs.
>
> Regards,
> --
> Devrim GÜNDÜZ
> Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
> PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
> Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
> http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz
>
>
>
> _______________________________________________
> Slony1-hackers mailing list
> Slony1-hackers at lists.slony.info <mailto:Slony1-hackers at lists.slony.info>
> http://lists.slony.info/mailman/listinfo/slony1-hackers
>
>
>
>
> _______________________________________________
> Slony1-hackers mailing list
> Slony1-hackers at lists.slony.info
> http://lists.slony.info/mailman/listinfo/slony1-hackers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.slony.info/pipermail/slony1-hackers/attachments/20111024/518d3ff9/attachment.htm 


More information about the Slony1-hackers mailing list