Documentation Strategy » History » Version 4
Detlef Hühnlein, 10/16/2012 06:16 PM
1 | 1 | Detlef Hühnlein | h1. Documentation Strategy |
---|---|---|---|
2 | |||
3 | In order to allow distributed and convenient editing using the wiki |
||
4 | *AND* producing documents with high quality typesetting, the following documentation |
||
5 | strategy is implemented: |
||
6 | |||
7 | h2. Wiki is primary source |
||
8 | |||
9 | The primary editing is performed in the present Wiki, which uses the |
||
10 | Textile-markup as explained "here":http://www.redmine.org/projects/redmine/wiki/RedmineTextFormatting. |
||
11 | |||
12 | h2. Rules for Wiki-based documentation |
||
13 | |||
14 | In order to allow conversion to LaTeX, the following rules MUST be considered: |
||
15 | |||
16 | 4 | Detlef Hühnlein | # A Wiki-page corresponds to a LaTeX-chapter and hence a Wiki-page SHOULD NOT include sub-Wiki-pages. |
17 | # References to literature MAY be included, if they are included as link with brackets [ ] around the "LABEL" (e.g. "[BSI-TR-03112-7]":http://docs.ecsec.de/BSI-TR-03112-7), |
||
18 | where the LABEL SHOULD be defined in an appropriate BibTeX-file. |
||
19 | 1 | Detlef Hühnlein | |
20 | h2. RedCloth conversion to raw LaTeX |
||
21 | |||
22 | The Textile-markup from the Wiki can be converted to LaTeX using "RedCloth":http://redcloth.org/. |
||
23 | |||
24 | h2. Cleaning up LaTeX using awk |
||
25 | |||
26 | 4 | Detlef Hühnlein | In order to support references to documents (e.g. "[BSI-TR-03112-7]":http://docs.ecsec.de/BSI-TR-03112-7) or |
27 | 1 | Detlef Hühnlein | the inclusion of pretty-printed XML- or Java-code (e.g. <pre><code class="xml"><xml> ... </xml></code></pre>), the raw LaTeX document needs to be cleaned up with "awk":https://de.wikipedia.org/wiki/Awk. |
28 | This includes the following steps: |
||
29 | 4 | Detlef Hühnlein | |
30 | # Replacing <pre><pre><code class="XXX"></pre> by <pre>\begin{minted}[bgcolor=bg]{XXX}</pre> |