Description Use spacemacs + org

Table of Contents

  1. Backbone structure
    1. chapter
    2. List
    3. form
  2. Special ingredients
    1. insert
    2. footnote
    3. link
    4. all
      1. priority
      2. Subdivision
    5. time
    6. label

Note: All articles with "vim" mode

Backbone structure

These can learn to write some basic content.

chapter

* 主标题
** 副标题
*** 三级题 
**** 还可以一直写下去
* 主标题

This title asterisk and have the space, EMACS will use special color-coded.

TAB The title folded under the cursor
S+TAB Folding Global
M-h/l Decrease / increase the number of stages of the cursor
M-k/j Heading down swap
C-c C-n/C-p Up / Down titles
C-c C-b/C-f Up / Down sibling title
C-c C-u Return to the previous title

List

1. 有序表
2) 只有这两种       : 这是描述
- 无序表            : 这些表都是可折叠的
  + 也只有这丙种
C-c C-c Changing checkboxes ([X])
C-c - Replacement way / + - At 1/1) /
M-h/j/k/l Operation with title
O The establishment of a new line, and add the list down
TAB Level adjustment

form

Enter multiple "|" and press TAB to automatically generate a table, you want more on-line press RET. Here are four "|" generated table.

|  |  |  |
|  |  |  |
|  |  |  |
C-c C-c Adjust table
TAB Adjustment table, move to the next field, the next line if not a new row
RIGHT Adjustment table, move to next, equally new
C-c - Adding a horizontal line under the cursor
M-k/j Move up and down the line
M-h/l Move around columns
M-S-k/h Delete the current row / column
M-S-j/l Down / Right new row / column

Multiple forms can also be calculated using the formula.
Create a new table, the table has all subjects, we can write in the average. ($ + Column number)

| Name   | Math | Chinese | English | average       |
| dog    |   55 |      80 |      70 | =($2+$3+$4)/3 |
| cat    |   80 |      59 |      80 |               |
| monkey |   90 |      22 |      66 |               |

SPC u Cc Cc obtained following table and after a TBLFM.

| Name   | Math | Chinese | English | (Math + Chinese + English) / 3 |
| dog    |   55 |      80 |      70 |                      68.333333 |
| cat    |   80 |      59 |      80 |                             73 |
| monkey |   90 |      22 |      66 |                      59.333333 |
#+TBLFM: $5=($2+$3+$4)/3

Special ingredients

insert

#+BEGIN_SRC     ... #+END_SRC 
#+BEGIN_EXAMPLE ... #+END_EXAMPLE :单行的例子以冒号开头
#+BEGIN_QUOTE   ... #+END_QUOTE   :通常用于引用,与默认格式相比左右都会留出缩进
#+BEGIN_VERSE   ... #+END_VERSE   :默认内容不换行,需要留出空行才能换行
#+BEGIN_CENTER  ... #+END_CENTER 
#+BEGIN_LATEX   ... #+END_LATEX 
#+LATEX: 
#+BEGIN_HTML    ... #+END_HTML 
#+HTML: 
#+BEGIN_ASCII   ... #+END_ASCII 
#+ASCII: 
#+INDEX: LINE 
#+INCLUDE: LINE

Commonly used generally:

#+BEGIN_SRC     ... #+END_SRC 
#+BEGIN_EXAMPLE ... #+END_EXAMPLE
#+BEGIN_QUOTE   ... #+END_QUOTE
#+BEGIN_CENTER  ... #+END_CENTER 

BEGIN_SRC To add the name of the programming language used later.

footnote

在这句话中的[fn:1]使用方法,像这样导出时会在右上方有一个小的数字标号
[fn:2]
...
[fn:1]http://www.baidu.com
[fn:2]可以是其它内容
...

Footnotes are clickable, Click-jumps

SPC m i f Insert a footnote
C-c C-c Footnotes Jump
C-c C-x f Multi-function mobile

link

To insert some documents, pictures, URL.
Web page:

[[http://www.baidu.com][百度]]
[[http://www.baidu.com]]

Export results are respectively yes.
Baidu
http://www.baidu.com

C-c C-l In the current position of the insertion or modification of a link
C-c C-o Open this link

file:

[[file://~/Pictures/desk.jpg][插入 desk.jpg 图片]]
[[file://~/code/hello_word.c][打开 hello_word.c]]
[[file://~/code/hello_word.c::7][打开 hello_word.c 转到第七行]]

all

** TODO buy food
C-c C-t Set the title for the TODO state
C-c / t Show all TODO

priority

A total of three priorities A, B, C;

** TODO [#A] read
** TODO [#B] cook
** TODO [#C] play
C-c , 设置优先级,或者 SPC 键消除优先级
S-up/down 调整优先级

细分

** TODO party [0/2]
 + [ ] drink
 + [-] play [50%]
  - [X] sing
  - [ ] swim

在表或标题后空一格输入[ ] C-c C-c 可改变[ ]状态为[X]。
在末尾输入[/][%]表示进度。

时间

时间戳主要有两种状态:

* 事件一 <2019-02-13 三> :激活状态
* 事件二 [2019-02-13 三] :非激活状态
C-c . 激活状态的时间戳
C-c ! 非激活状态的时间戳
S-down/up 更改时间,单位看光标
<2019-02-14 四--<2019-02-15 五>

连着两次 C-c . 变为时间段。

** TODO writing 
 DEADLINE: <2019-02-13 三>
** TODO reading
 SCHEDULED: <2019-02-13 三>
C-c C-d 最后期限 DEADLINE
C-c C-s 日程安排 SCHEDULED

标签

* meeting                            :work:
** friend                               :life:
** client                               :career:money:
C-c C-q 进行设置。可以同时设置两个标签
C-c / m 搜索所有标签构造稀疏树

Guess you like

Origin www.cnblogs.com/chaoyiyang/p/11486492.html