Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: SOT (Slightlt OffTopic): Scriptable Documentation system (HTML/PDF) ?
Date: Tue, 07 Feb 2017 20:54:28
Message-Id: o7dc51$9ke$1@blaine.gmane.org
In Reply to: [gentoo-user] SOT (Slightlt OffTopic): Scriptable Documentation system (HTML/PDF) ? by Meino.Cramer@gmx.de
1 On 2017-02-07, Meino.Cramer@×××.de <Meino.Cramer@×××.de> wrote:
2
3 > to create documentation about changes in the contents of releases,
4 > of the installation instruction and in system requirements I need a
5 > system, which is scriptable and therefore automatable.
6 >
7 > Current state is to make or changes manually in the different docs.
8 >
9 > Is TeX the right choice for the document generating backend?
10
11 Unless you need mathematics-heavy, camera-ready, perfectly typeset
12 layout to be sent to a book publisher, I'd go with something more
13 lightweight.
14
15 My current favorite is asciidoc (which generates HTML and docbook
16 directly, and various other formats indirectly).
17
18 https://en.wikipedia.org/wiki/AsciiDoc
19 http://asciidoc.org/
20
21 For smallish documents I use weasyprint to generate PDF from the html.
22
23 http://weasyprint.org/
24
25 For longer documents, I use a2x to generate PDF via docbook using the
26 fop backend.
27
28 http://www.methods.co.nz/asciidoc/a2x.1.html
29
30 The 'asciidoctor' alternative implimentation might be worth looking at
31 for new projects, since it's in more active development:
32
33 http://asciidoctor.org/
34
35 If you don't like the asciidoc markup language, you might want to look
36 at RST:
37
38 https://en.wikipedia.org/wiki/ReStructuredText
39 http://docutils.sourceforge.net/rst.html
40
41 Or markdown:
42
43 https://en.wikipedia.org/wiki/Markdown
44 http://daringfireball.net/projects/markdown/
45
46 If you _are_ generating a textbook or academic paper with a lot of
47 equations, there's still nothing that beats (or even comes close to)
48 TeX/LaTeX.
49
50 --
51 Grant Edwards grant.b.edwards Yow! I feel better about
52 at world problems now!
53 gmail.com