Skip to content
This repository has been archived by the owner on Jan 16, 2021. It is now read-only.

Latest commit

 

History

History
115 lines (95 loc) · 2.52 KB

org-help.org

File metadata and controls

115 lines (95 loc) · 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:

def

definition of def