Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
116 lines (95 sloc) 2.52 KB

Org Mode Primer

Things to remember: Org likes to be like TeX and collapse extra spaces, and considers single line breaks to be an author’s formatting aid, not a formatting choice. Two line breaks result in a paragraph break. To force a single line break, use \\ (only works at the end of lines here)

Headings:

* h1
** h2
*** h3
**** h4
***** h5
****** h6

h1

h2

h3

h4

h5
h6

Links:

[[https://www.smilebasicsource.com][link text]],
[[#wow][wow anchors]]
** wow
image: [[http://kland.smilebasicsource.com/i/lapjj.png]]

link text, wow anchors

wow

http://kland.smilebasicsource.com/i/lapjj.png

Formatting:

/italic/
*bold*
__underline__
+strikethrough+
~monospace~
=verbatim=
force \\
line \\ break

italic bold strikethrough monospace verbatim force
line \ break

github can’t handle bold-italic, but…

Inline HTML:

Unfortunately inline HTML only supports the few ‘clean’ tags, but it’s still worth mentioning…

#+HTML: <b><i>bold italic</i></b>
#+HTML: <marquee>ww</marquee>
bold italic ww

Code blocks:

#+BEGIN_SRC lang
code
#+END_SRC
code

supposedly github will highlight it if you have a language supported by some list I forget where to find but I wouldn’t rely on it.

Tables:

| Name  | Phone | Age |
|-------+-------+-----|
| Peter |  1234 |  17 |
| Anna  |  4321 |  25 |
NamePhoneAge
Peter123417
Anna432125

columns don’t have to be aligned but it’s a lot nicer. If you edit using orgmode in emacs it’ll handle ascii-mode formatting for you.

More??

Footnotes:

(You may need #+OPTIONS: f:t in the preamble.)

#+OPTIONS: f:t
Using numbers [fn:0]

Using letters and not defined in the footnote [fn:abc]

Using letters and defined in the footnote [fn:def:definition of abc]

[fn:0] Footnote definition

Using numbers 0

Using letters and not defined in the footnote abc

Using letters and defined in the footnote def

0 Footnote definition

Footnotes:

defdefinition of def

You can’t perform that action at this time.