Emacsorg-mode 是非常强大的工具,阅读了 weychen 的文章之后 我按照文章的流程搭建了我的工作流,同时写下了这篇文章去简单介绍下 org-mode 的语法。

Org-mode实例

标题

使用星号还表示第一级到第六级的标题,星号数目代表等级,星号与代码之间需要空格。

第三级标题

  • 第四级标题
    • 第五级标题
      • 第六级标题

图片

42d1c2f6-156e-4f25-9d7c-76ab0c1c366d.jpg

列表

无序列表

加号可以用来生成无序列表,列表之间的父子等级可以使用缩进来表示。

  • 无序列表1
  • 无序列表2
  • 无序列表3
    • 无序子列表1
    • 无序子列表2
    • 无序子列表3
  • 无序列表4

有序列表

  1. 有序列表1
  2. 有序列表2
  3. 有序列表3
    1. 有序子列表1
    2. 有序字列表2
    3. 有序字列表3

抽屉

这是一个抽屉

:SECRET:

抽屉里面藏着秘密

:END:

抽屉结束

字体

粗体: bold

斜体: italic

下划线: underline

代码: code

逐字解析: verbatim

删除线: strike-through

脚注

这是一个脚注1

注释

单行注释:

多行注释:

引用

引用文字:

引用了一些文字
另一行引用的文字 同一行引用的文字

段落之间至少要有一空行。如果你想实现段内分行,可以在行后加上 \\
或者采用正常格式化分行:

Great clouds overhead
Tiny black birds rise and fall
Snow covers Emacs

    – AlexSchroeder

文本居中:

Everything should be made as simple as possible,
but not any simpler

纯文本

一般纯文本:

里面的文字会等宽排版
Here is an example
   : Some example from a text file.

代码插入:

function foo() {
console.log(123)
}
foo()

表格

Name Phone sub1 sub2 total
Ali 134**** aaa bbb aaabbb
Bill 138**** aaaa bbbb aaaabbbb

公式

简单符号

简单的符号可以直接使用,包括直接转义的符号字母和数字上下标

希腊字母:

α, β and γ.

下标:

a1× a22

公式和方程组块状居中

\begin{equation} \sum\limits_{i=1}^n(单项评分_i * 权重) \end{equation} \begin{equation} \frac{1^p+2^p+\cdot\cdot\cdot+n^p}{n^{1+p}} \end{equation} \begin{equation} \stackrel{abc}{\longrightarrow} \end{equation} \begin{equation} Y=\left\{ \begin{aligned} +1 & , & if & & X \geq \theta \\ -1 & , & if & & X < \theta \end{aligned} \right. \end{equation}

公式和方程组嵌入语句

我们可以看到这个流程 \(op_1\stackrel{abc}{\longrightarrow}op_2\) 以及 \(\sum\limits_{i=1}^n(单项评分_i * 权重)\)

Apollo的样式

警示仍然有效

“我引用了自己所说的一段话。”

音乐和视频也依然有效:

Footnotes:

1

The link is: http://orgmode.org

Last Updated 2017-12-11 一 02:18.
Render by hexo-renderer-org with Emacs 25.3.1 (Org mode 8.2.10)