标记语法

Org 提供了一种完整的标记语言,可以帮助构建文档,并在导出到其他格式(如 HTML 或 LaTeX)时尽可能准确地反映出来。

结构体

文件名

#+TITLE: This is the title of the document

切片

* First level
** Second level

清单

Ordered list (items can also be numbered like '1)', with a perenthesis):
1. foo
2. bar
3. baz
Unordered list (items can also start with '+' or '*'):
- foo
- bar
- baz
Description
- lorem ipsum::this is example text
- foo bar::these are placeholder words

复选框

通过使用字符串’[]‘开始,可以将普通列表中的每个项目设置为复选框。

* TODO [2/4] (or [50%])
  - [-] call people [1/3]
    - [ ] Peter
      - [X] Sarah
      - [ ] Sam
  - [X] order food
  - [ ] think about what music to play
  - [X] talk to the neighbors
  • C-c C-c ORG-肘复选框
  • C-c C-x C-b ORG-肘复选框
  • M-S- ORG-插入 - 待办事项航向
  • C-c C-x o ORG-切换有序属性
  • C-c # 有机更新统计饼干

重点和等宽

You can make words *bold*, /italic/, _underlined_, =verbatim=
and ~code~, and, if you must, ‘+strike-through+’.

代码和逐字字符串中的文本不是针对 Org 模式特定语法处理的,而是逐字导出的。

链接和参考

链接

组织模式将识别 URL 格式并将其激活为可点击链接。但是,链接可以像这样显式声明:

You will find more information in the [[http://orgmode.org/org.html][Org Manual]].

或者:

The org manual is located here: [[http://orgmode.org/org.html]]

脚注

脚注可以命名为:

See the org manual[fn:manual] to get more details.
...
[fn:manual] You will find it here: http://orgmode.org/org.html

或匿名和内联:

See the org manual[fn:: You will find it here: http://orgmode.org/org.html]
to get more details.