User Tools

Site Tools


how_to_edit_this_wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
how_to_edit_this_wiki [2022/01/04 10:17] himicshow_to_edit_this_wiki [2022/11/07 10:23] (current) – external edit 127.0.0.1
Line 36: Line 36:
   <code>{{:wiki:picture.png?nolink|}}</code>   <code>{{:wiki:picture.png?nolink|}}</code>
   * The hierarchy of the section headers (levels) might need to be revised after the conversion, depending on where the converted document will be inserted in the CAPRI wiki   * The hierarchy of the section headers (levels) might need to be revised after the conversion, depending on where the converted document will be inserted in the CAPRI wiki
-  +  * Be careful with spacing in latex math mode. Sometimes the Word formulas include white spaces that are converted to strange symbols in the dokuwiki version. More about the white spaces in math mode [[http://www.emerson.emory.edu/services/latex/latex_119.html | here]] 
 + 
 + 
 + 
 +===== Equation editing in the wiki ===== 
 + 
 + 
 +In the doku wiki we are using the a plugin called MathJax (https://www.mathjax.org/) which is parsing equations in TeX math expressions in wiki pages. The plugin use is described here: https://www.dokuwiki.org/plugin:mathjax with some more links. The plug in also includes automatic equation numbering.  
 + 
 +<code html> 
 +\begin{equation} 
 +\text{min} \quad hp=1000 \sum_{1<t<T-1}({y_{t+1}^*-y_{t-1}^*})^2 + \sum_{t}({y_t^*-y_t})^2 
 +\end{equation} 
 + 
 +\begin{equation} 
 +\left( 
 +    \begin{array}{c} 
 +      n \\ 
 +      r 
 +    \end{array} 
 +  \right) = \frac{n!}{r!(n-r)!} 
 +\end{equation} 
 + 
 +</code> 
 + 
 +which is rendered as: 
 + 
 +\begin{equation} 
 +\text{min} \quad hp=1000 \sum_{1<t<T-1}({y_{t+1}^*-y_{t-1}^*})^2 + \sum_{t}({y_t^*-y_t})^2 
 +\end{equation} 
 + 
 + 
 +\begin{equation} 
 +\left( 
 +    \begin{array}{c} 
 +      n \\ 
 +      r 
 +    \end{array} 
 +  \right) = \frac{n!}{r!(n-r)!} 
 +\end{equation} 
 + 
 + 
 +How to write a formular see: https://en.wikibooks.org/wiki/LaTeX/Mathematics 
 + 
 +====== CAPRI documentation as PDF ====== 
 + 
 +Necessary Programs: 
 +  - Python: https://www.python.org/downloads 
 +  - Any LateXenvironment capable of LuaLaTex e.g. https://www.tug.org/texlive/ 
 +  - Pyton Script: https://colab.research.google.com/drive/1fynIuIyn2ZKLFLKe7Eoa21vZxFZPj61v?usp=sharing 
 + 
 +Executing the Pythonscript creates the folder "mmddyyCapri", in which the content of the Wiki gets downloaded. 
 +The tex.files get modified to allow for LuaLaTeX PDFexport, to do so open the "mmddyyCapri.tex" in the created directory 
 +and choose LuaLaTeX then start PDF generation. 
 +Table of content and intradocument references will display correctly after second run of LuaLaTeX. 
 +This creates "mmddyyCapri.pdf" in the "mmddyyCapri" directory (the current Wikicontent in PDFformat). 
 + 
 +### Known Issues (work in progress)### 
 +1. Longtables can be wider then the page (easiest to adapt manually) 
 +3. Cells with rowbreak are not completly outlined (maybe fix manually, will try to catch in the code) 
 +4. figures only seperated by empty line (in the Wiki) appear beside each other not under, results in wrongly scaled figures. 
 + 
 + 
 +====== List of CAPRI manuals in pdf format ====== 
 + 
 +[[https://www.capri-model.org/docs/CapriJan2022.pdf|Version 2022 January]] 
 + 
 + 
 +https://svn1.agp.uni-bonn.de/!/#capri/view/r10002/trunk/gams/biofuel/bio_trendsbf2.gms?line=39
  
  
how_to_edit_this_wiki.txt · Last modified: 2022/11/07 10:23 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki