Orgmode syntax

From wikinotes
Revision as of 02:51, 1 February 2023 by Will (talk | contribs)

Documentation

syntax docs https://orgmode.org/quickstart.html
export-options https://orgmode.org/manual/Export-Settings.html

Components

Export Options

Headers

Tasks

Dates

  • deadlines
  • scheduled

Tags

Markup

# export-options at top of file
#+title: My Paper
#+author: Darth Vader

# headers
* Heading 1
** Heading 2

# markup
*bold*
/italic/
_underline_
+strikethrough+
~code~
=verbatim=

# lists
1. Foo
  - item a
  - item b
2. Bar
  - item a
  - item b

- [ ] check me
- [x] checked

# links
[[http://google.com]]
[[http://google.com][google]]
[[file:~/Pictures/foo.png]]

# code-blocks

#+begin_src python
def foo():
    print('hi')
#+end_src

Tags

https://orgmode.org/manual/Tags.html

  • tags support inheritance
  • you may pre-define tags globally, and complete them
  • you may pre-define tags for a specific file, and complete them
#                         +---+---- these are both tags
#                        /   /
** My Heading     :testing:heading: