-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrst.txt
82 lines (60 loc) · 1.49 KB
/
rst.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
See also python/sphinx.txt
# Back-quotes
`single` // no special meaning; for variables and files
``double`` // for code
# Converting markdown -> rst
pandoc -s file.rst -o file.html
pandoc -f markdown -to rst -o file.rst file.md
# Links
Header_ // link to Header
# Headings
=====
Title
=====
--------
Subtitle
--------
H1
== // Like # H1 in markdown
H2
--
H3
~~
# Links
http://www.sphinx-doc.org/en/stable/markup/inline.html#cross-referencing-arbitrary-locations
# Link to marks
.. _mark: // define mark
// blank line required
* must be unique across documents
* can be used across documents
:ref:`mark` // link to mark; title is next section header
:ref:`My title <mark>`
# Link to section
* Use :ref: instead
* Not unique across documents
`Section header`_
# Link to documents
:doc:`file` // extension not needed
:doc:`Title <file>`
:doc:`../relative_file`
:doc:`/absolute_file`
# Math, Latex equations
.. math::
\frac{ \sum_{t=0}^{N}f(t,k) }{N}
:math:`\frac{ \sum_{t=0}^{N}f(t,k) }{N}`
# Colored boxes
http://openalea.gforge.inria.fr/doc/openalea/doc/_build/html/source/sphinx/rest_syntax.html#colored-boxes-note-seealso-todo-and-warnings
.. note :: Foo bar
.. seealso :: Foo bar
.. warning :: Foo bar
# figure / image
.. image // without caption
.. figure // with caption
:scale: 50 % does not work!
:width: can be used without :height:
.. figure:: fig1.png
:width: 640 px
:align: left
:alt: DeepCpG model architecture and applications
**Figure title**
Figure caption.