Documentation Strategy » History » Version 12
Detlef Hühnlein, 10/17/2012 07:46 AM
1 | 12 | Detlef Hühnlein | h1. Document Creation Process |
---|---|---|---|
2 | 1 | Detlef Hühnlein | |
3 | In order to allow distributed and convenient editing using the wiki |
||
4 | 12 | Detlef Hühnlein | *AND* producing documents with high quality typesetting, the document creation process |
5 | as depicted in !process.png(Document Creation Process)! is implemented. |
||
6 | 1 | Detlef Hühnlein | |
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 | 10 | Detlef Hühnlein | This includes the following replacements: |
29 | 1 | Detlef Hühnlein | |
30 | 10 | Detlef Hühnlein | <pre><code> |
31 | 11 | Detlef Hühnlein | 1. <pre><code class="XXX"> --> \begin{minted}[bgcolor=bg]{XXX} |
32 | 2. </code></pre> --> \end{minted} |
||
33 | 3. "[LABEL]":http://url --> \cite{LABEL} |
||
34 | 4. [[WikiRef]] --> ... |