Restructered text syntax example

Please have alook at the rwa code to see how these examples are implemented.

See reStructuredText Primer

Figure

I usually put figure as png into an img folder within my docs folder.

_images/figure.png

Figure Caption

Table

One way of making a table (csv table). There are others…

Example table
  xmin xmax xsteps
state      
battery 0 3 4
heat-storage 0 5 2

Math

..note: Make sure you added sphinx.ext.mathjax extension to your conf.py. See Extension .

Math support in sphinx

In line math code \(S^\text{M}\) example

Or like this:

\[nn = [R\; S^\text{1}\; S^\text{2}\; ...\; S^\text{M}]\]

Code

Python

python code like this:

print('Hello World')

or this:

print('Hello World')

Restructured text

Example section
----------------

Java

public class HelloWorld
{

           public static void main (String[] args)
           {
                         // Ausgabe Hello World!
                         System.out.println("Hello World!");
           }
}

R

myString <- "Hello, World!"
print ( myString)

Feel free to add more…