Add admonitions (attention, danger and hint)
This commit is contained in:
parent
945c118acd
commit
b5e53e8ce6
|
@ -11,6 +11,7 @@
|
|||
<meta name="description" content="Org mode syntax example" />
|
||||
<meta name="keywords" content="org-mode, syntax, quick reference, cheat sheet, recommended practices, latex, beamer, html" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<link rel="stylesheet" type="text/css" href="d:/Users/fni/src/org-html-themes/styles/readtheorg/css/htmlize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="d:/Users/fni/src/org-html-themes/styles/readtheorg/css/readtheorg.css" />
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js" type="text/javascript">
|
||||
</script>
|
||||
|
@ -1084,7 +1085,7 @@ See:
|
|||
<div class="outline-text-3" id="text-orgheadline51">
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-org">
|
||||
<span class="org-org-meta-line">#+CAPTION:</span> <span class="org-org-block">Org mode logo</span>
|
||||
<span class="org-org-meta-line">#+caption:</span> <span class="org-org-block">Org mode logo</span>
|
||||
<span class="org-org-link"><a href="file:images/org-mode-unicorn.png">file:images/org-mode-unicorn.png</a></span>
|
||||
</pre></div>
|
||||
<div class="figure">
|
||||
|
@ -1265,6 +1266,15 @@ Caution
|
|||
<div class="caution">
|
||||
<p>Caution</p>
|
||||
</div>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-org">
|
||||
<span class="org-org-block-begin-line">#+begin_attention</span>
|
||||
Attention
|
||||
<span class="org-org-block-end-line">#+end_attention</span>
|
||||
</pre></div>
|
||||
<div class="attention">
|
||||
<p>Attention</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgheadline62" class="outline-3">
|
||||
|
@ -1289,6 +1299,15 @@ Important
|
|||
<div class="important">
|
||||
<p>Important</p>
|
||||
</div>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-org">
|
||||
<span class="org-org-block-begin-line">#+begin_hint</span>
|
||||
Hint
|
||||
<span class="org-org-block-end-line">#+end_hint</span>
|
||||
</pre></div>
|
||||
<div class="hint">
|
||||
<p>Hint</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgheadline63" class="outline-3">
|
||||
|
@ -1303,6 +1322,15 @@ Error
|
|||
<div class="error">
|
||||
<p>Error</p>
|
||||
</div>
|
||||
<div class="org-src-container">
|
||||
<pre class="src src-org">
|
||||
<span class="org-org-block-begin-line">#+begin_danger</span>
|
||||
Danger
|
||||
<span class="org-org-block-end-line">#+end_danger</span>
|
||||
</pre></div>
|
||||
<div class="danger">
|
||||
<p>Danger</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgheadline64" class="outline-3">
|
||||
|
@ -1941,7 +1969,7 @@ Did you know...
|
|||
It is possible to define named footnotes<span class="org-org-footnote">[fn:myfootnote]</span>, or ones with automatic
|
||||
anchors<span class="org-org-footnote">[fn:2]</span>.
|
||||
</pre></div>
|
||||
<p>It is possible to define named footnotes<sup><a id="fnr.1" class="footref" href="#fn.1" name="fnr.1">1</a></sup>, or ones with automatic anchors<sup><a id="fnr.2" class="footref" href="#fn.2" name="fnr.2">2</a></sup>.</p>
|
||||
<p>It is possible to define named footnotes<sup><a id="fnr.1" class="footref" href="#fn.1" name="fnr.1">1</a></sup>, or ones with automatic anchors<sup><a id="fnr.2" class="footref" href="#fn.2" name="fnr.2">2</a></sup>. It is possible to define named footnotes<sup><a id="fnr.1.100" class="footref" href="#fn.1" name="fnr.1.100">1</a></sup>, or ones with automatic anchors<sup><a id="fnr.2.100" class="footref" href="#fn.2" name="fnr.2.100">2</a></sup>.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div id="outline-container-orgheadline111" class="outline-2">
|
||||
|
|
|
@ -538,7 +538,7 @@ You can insert *image* files of different *formats* to a document:
|
|||
** Inline picture
|
||||
|
||||
#+begin_src org
|
||||
#+CAPTION: Org mode logo
|
||||
#+caption: Org mode logo
|
||||
[[file:images/org-mode-unicorn.png]]
|
||||
#+end_src
|
||||
|
||||
|
@ -556,13 +556,13 @@ Books usually align/float images on the right/left of the contents.
|
|||
|
||||
*** Image is centered
|
||||
|
||||
#+NAME: test
|
||||
#+name: test
|
||||
#+begin_src R :exports results :file-ext pdf :results graphics :width 8 :height 3
|
||||
plot(runif(100))
|
||||
#+end_src
|
||||
|
||||
#+attr_latex: :float t :placement [b]
|
||||
#+RESULTS: test
|
||||
#+results: test
|
||||
[[file:test.pdf]]
|
||||
|
||||
** Image attributes and values
|
||||
|
@ -620,27 +620,28 @@ Common admonitions are:
|
|||
|
||||
** List of supported admonitions :noexport:
|
||||
|
||||
| Total | | rST | RTD | AsciiDoc | DocBook | MoinMoin (Modern) | Bootstrap | DocOnce | Confluence | SuperCollider |
|
||||
|--------+-----------+-----+-----+----------+---------+-------------------+-----------+---------+------------+---------------|
|
||||
| 6 | note | 1 | 1 | 1 | 1 | 1 | | | 1 | 1 |
|
||||
| 8 | warning | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
||||
| 6 | tip | 1 | 1 | 1 | 1 | 1 | | | 1 | |
|
||||
|--------+-----------+-----+-----+----------+---------+-------------------+-----------+---------+------------+---------------|
|
||||
| 5 | important | 1 | 1 | 1 | 1 | 1 | | | | |
|
||||
| 5 | caution | 1 | 1 | 1 | 1 | 1 | | | | |
|
||||
|--------+-----------+-----+-----+----------+---------+-------------------+-----------+---------+------------+---------------|
|
||||
| 3 | danger | 1 | 1 | | | | 1 | | | |
|
||||
| 2 | attention | 1 | 1 | | | | | | | |
|
||||
| 2 | error | 1 | 1 | | | | | | | |
|
||||
| 2 | hint | 1 | 1 | | | | | | | |
|
||||
| #ERROR | seealso | | ? | | | | | | | |
|
||||
| #ERROR | todo | | ? | | | | | | | |
|
||||
| 2 | info | | | | | | 1 | | 1 | |
|
||||
| 1 | notice | | | | | | | 1 | | |
|
||||
| 1 | question | | | | | | | 1 | | |
|
||||
| 1 | summary | | | | | | | 1 | | |
|
||||
| 1 | success | | | | | | 1 | | | |
|
||||
#+TBLFM: $1=vsum($3..$10)
|
||||
| Total | | docutils | rST | RTD | AsciiDoc | DocBook | MoinMoin (Modern) | Bootstrap | DocOnce | Confluence | SuperCollider |
|
||||
|--------+-----------+----------+-----+-----+----------+---------+-------------------+-----------+---------+------------+---------------|
|
||||
| 7 | note | 1 | 1 | 1 | 1 | 1 | 1 | | | 1 | 1 |
|
||||
| 9 | warning | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
||||
| 7 | tip | 1 | 1 | 1 | 1 | 1 | 1 | | | 1 | |
|
||||
|--------+-----------+----------+-----+-----+----------+---------+-------------------+-----------+---------+------------+---------------|
|
||||
| 6 | important | 1 | 1 | 1 | 1 | 1 | 1 | | | | |
|
||||
| 6 | caution | 1 | 1 | 1 | 1 | 1 | 1 | | | | |
|
||||
|--------+-----------+----------+-----+-----+----------+---------+-------------------+-----------+---------+------------+---------------|
|
||||
| 4 | danger | 1 | 1 | 1 | | | | 1 | | | |
|
||||
| 3 | attention | 1 | 1 | 1 | | | | | | | |
|
||||
| 3 | error | 1 | 1 | 1 | | | | | | | |
|
||||
| 3 | hint | 1 | 1 | 1 | | | | | | | |
|
||||
|--------+-----------+----------+-----+-----+----------+---------+-------------------+-----------+---------+------------+---------------|
|
||||
| #ERROR | seealso | | | ? | | | | | | | |
|
||||
| #ERROR | todo | | | ? | | | | | | | |
|
||||
| 2 | info | | | | | | | 1 | | 1 | |
|
||||
| 1 | notice | | | | | | | | 1 | | |
|
||||
| 1 | question | | | | | | | | 1 | | |
|
||||
| 1 | summary | | | | | | | | 1 | | |
|
||||
| 1 | success | | | | | | | 1 | | | |
|
||||
#+TBLFM: $1=vsum($3..$11)
|
||||
|
||||
** Note
|
||||
|
||||
|
@ -680,6 +681,12 @@ Caution
|
|||
,#+end_caution
|
||||
#+end_src
|
||||
|
||||
#+begin_src org
|
||||
,#+begin_attention
|
||||
Attention
|
||||
,#+end_attention
|
||||
#+end_src
|
||||
|
||||
** Tip
|
||||
|
||||
A tip box is displayed as follows:
|
||||
|
@ -696,6 +703,12 @@ Important
|
|||
,#+end_important
|
||||
#+end_src
|
||||
|
||||
#+begin_src org
|
||||
,#+begin_hint
|
||||
Hint
|
||||
,#+end_hint
|
||||
#+end_src
|
||||
|
||||
** Error
|
||||
|
||||
#+begin_src org
|
||||
|
@ -704,6 +717,12 @@ Error
|
|||
,#+end_error
|
||||
#+end_src
|
||||
|
||||
#+begin_src org
|
||||
,#+begin_danger
|
||||
Danger
|
||||
,#+end_danger
|
||||
#+end_src
|
||||
|
||||
** Todo
|
||||
|
||||
# See example at http://docs.ckan.org/en/latest/contributing/python.html
|
||||
|
@ -1244,6 +1263,10 @@ It is possible to define named footnotes[fn:myfootnote], or ones with automatic
|
|||
anchors[fn:2].
|
||||
#+end_src
|
||||
|
||||
#+results:
|
||||
It is possible to define named footnotes[fn:myfootnote], or ones with automatic
|
||||
anchors[fn:2].
|
||||
|
||||
* Useful extensions
|
||||
|
||||
** Todo extension
|
||||
|
|
Loading…
Reference in New Issue