[lang_en]Documenting projects with Docbook[/lang_en]

[lang_en]One of the tasks presents on almost every job and position is to prepare documentation. There are different tools to create good documents, but if you are developer, and you need to create professional documents, then you may fall into two options: LaTeX and DocBook.

I’ll explain to you how to prepare good PDF from DocBook documents in 3 easy steps:

1) Create the structure of your document

[sourcecode language='xml']

"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">



Your first name
Your surname

foo@example.com



2000
Copyright string here

If your article has an abstract then it should go here.

This is the first section in my article.

This is the first sub-section in my article.


[/sourcecode]

2) Convert your Docbook XML into a FO object (using the xmlto tool)

xmlto fo document.xml

3) Finally, convert the FO object into a PDF document with Apache FOP

fop -fo document.fo -pdf document.pdf

The final result is here:

[/lang_en]

Tags: ,

Leave a Reply