Creating Nice ClaRa Documentation
Created Monday 07 January 2013
Layout
to be conform with the ClaRa colour scheme:
- copy the ./ClaRa.conf into styles\ClaRa.conf in your Zim configuration folder:
- Windows: <USERNAME>\AppData\Roaming\zim\config\zim or <USERNAME>\.config\zim\styles
- LINUX: ~/.config/zim/)
- set the profile name to ClaRa either graphically via file->properties or directly in the respective notebook.zim. Its crucial to enter the name without its path or file extension!
to use the ClaRa colors within the LaTEX equation environment:
- copy the template ./equationeditor.tex to your Zim template folder:
- LINUX: ~/.local/share/zim/templates/plugins/
- Windows: <USERNAME>\AppData\Roaming\zim\data\zim\templates\plugins
- the following colours are available via the LaTEX package color: dynblue, dynred, dyngreen, dyngrey, dynorange
Exporting a zim notebook to html
can be easily performed. For this html-Templeates are used.
The default ones are located in
Windows: <Path to Zim.exe>/share/zim/templates/html
LINUX: ~/.local/share/zim/templates
These are css style sheets together with a zim template wiki.
This defines how a wiki page is translated to html.
However upon exporting, one can also choose template-->other-->browse
in order to use an individual style. Such a style should be adapted from
"Path to zim.exe"\share\zim\templates\html\Default_with_index.html
or
"Path to zim.exe"\share\zim\templates\html\Print.html
or one of the other files in this folder.
ALWAYS export to separate files for each of the wiki pages. It enables prper navigation in the html file structure.
Exporting a zim notebook to pdf
To create nice LaTEX generated pdf documentation from a zim wiki the following steps are to be considered:
- ALWAYS export to a single tex file! Name the file as the Library is named, e.g. ClaRa.tex. The file ending is essential
- in order to ensure that the figures are scaled appropriately modify the Python function creating the LaTEX source code (which can be found under Linux in /usr/share/pyshareim/formats/latex.py )as follows:
- replace line 189 to 199. This will make all figures having a width of the half textwidth. Therefore arrange at maximum two figures next to each other
- replace text in line 187. This will allow also non-equation elements in the ZIM equation elements to be compiled.
NEW: return [equation]
- make sure that the \begin{align*} and \end{align*} are commented out as done in ./equationeditor.tex . This requires all equations to be within a math environment (\begin{math}... \end{math}) but also allow non-equation content within the equation objects.
- To allow longtables for nomenclature display make sure that the following lines are included in
- \usepackage{multirow}
\setlength{\paperheight}{800mm}
\setlength{\textheight}{500mm}
- A template for creating appropriate long tables is included in the templates for the Function , Physical Model and Replaceable Model
Further Reading
Notice the dyncap color color scheme defined in ./Dyncap_Manual_2013_v2.pdf