Aide-mémoire RST

Posted on Sun 03 October 2010 in tutoriels • 1 min read

Cette page est générée à partir du fichier rst_howto.rst et est destinée aux développeurs de ce site : test des plugins pelican, rappel de la syntaxe etc.

Documentation rst :

Doc sphinx

Mise en valeur (warnings, notes etc)

Note

This is a note box.

Avis

note the space between the directive and the text

Astuce

tip

Tableaux

<!— Function | MySQL / MaariaDB | PostgreSQL | SQLite —> <!— :—————— | :——————-| :——————-| :——————- —> <!— substr | :heavy_check_mark: | :white_check_mark: | :heavy_check_mark: —>

[jtable] Year,Make,Model,Length 1994,Ford,E350,2.34 2000,Mercury,Cougar,2.38 [/jtable]

Header 1 Header 2 Header 3
body row 1 column 2 column 3
body row 2 Cells may span columns.
body row 3 Cells may span rows.
  • Cells
  • contain
  • blocks.
body row 4
a title
name firstname age
Smith John 40
Smith John, Junior 20

stop

Inputs Output
A B A or B
False False False
True False True

Formules latex

.. math::

    \frac{\partial u(X, t)}{\partial t} = \chi_O(X)\lambda(u_D - u(X, t))

dans le fichier rst donne en html:

\begin{equation*} \frac{\partial u(X, t)}{\partial t} = \chi_O(X)\lambda(u_D - u(X, t)) \end{equation*}

Blocks de code

Python

153
154
 print('bonjour')
 import numpy as np

C++

int main()
{
cout << "rien" << endl;
}

Bash/console

ls
echo $LD_LIBRARY_PATH

Liens vers d’autres pages du même site

Lien vers une page en markdown

Lien vers une page en rst

Lien vers une ref dans une autre page

Les niveaux de titres

H1: document title

Introduction text.

Sample H2

Sample content.

Another H2

Sample H3