| 1 |
#+OPTIONS: toc:nil |
| 2 |
* captions, custom attributes and more |
| 3 |
#+CAPTION: and _multiple_ |
| 4 |
#+CAPTION: lines of *captions*! |
| 5 |
#+ATTR_HTML: :class a b |
| 6 |
#+ATTR_HTML: :id it :class c d |
| 7 |
#+BEGIN_SRC sh |
| 8 |
echo "a bash source block with custom html attributes" |
| 9 |
#+END_SRC |
| 10 |
|
| 11 |
and an image with custom html attributes and a caption |
| 12 |
#+CAPTION: kittens! |
| 13 |
#+ATTR_HTML: :style height: 100%; :id overwritten |
| 14 |
#+ATTR_HTML: :style border: 10px solid black; :id kittens |
| 15 |
[[https://placekitten.com/200/200#.png]] |
| 16 |
|
| 17 |
#+NAME: foo |
| 18 |
named paragraph |
| 19 |
|
| 20 |
#+NAME: bar |
| 21 |
#+begin_src |
| 22 |
named block |
| 23 |
#+end_src |
| 24 |
|
| 25 |
# comments must have whitespace after the hashtag |
| 26 |
#not a comment because there's no space after the hashtag |
| 27 |
|
| 28 |
* table of contents |
| 29 |
A table of contents can be rendered anywhere in the document by using |
| 30 |
#+begin_src org |
| 31 |
,#+TOC: headlines $n |
| 32 |
#+end_src |
| 33 |
Where =$n= is the max headline lvl that will be included. You can use =headlines 0= to include all headlines. |
| 34 |
#+TOC: headlines 0 |