Emacs Org Note

本文记录Emacs Org的相关笔记
  • TODO items
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
*** TODO write letter

* organize party [33%]
** TODO call people [0/2]
*** TODO Peter
*** TODO sarah
** TODO Buy food
** DONE talk to neighbor
   CLOSED: [2019-03-12 二 14:28]
# check box
* TODO organize party [0/4]
- [-] call people[1/2]
  - [ ] Peter
  - [X] sarah
- [ ]
- [ ] order food

设置TODO list 检索的文件
(setq org-agenda-files (list "~/org/work.org"
                             "~/org/school.org"
                             "~/org/home.org"))
设置启动打开org文件

设置TODO item CLOSED NOTE:
(setq org-log-done 'note)


#+STARTUP: overview
#+STARTUP: content
#+STARTUP: showall
#+STARTUP: showeverything

快捷键

ctrl-c ctrl-t   改变TODO item 状态
shift-alt enter   插入一个新的TODO item
ctrl-c a t   展示全局的TODO list
C-c ,  设置优先级
S-up/down   升优先级/降优先级
C-c C-c  激活任务计算[%]  [/]
C-c C-s to run org-schedule.
C-c a a   A display of this week's scheduled items are displayed
press "l" (lowercase L) to turn on log display.
  • 常用快捷键
Shift-TAB   收起/展开所有内容

  • IMAGE
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#insert image and link a image in line
see [[fig:1][figure1]]
#+CAPTION: pi layer time cost and output data size
#+NAME:  fig:1
[[./img.png]]

`M + /`:  file  name/ address  auto complete
` C + c C + x C + v`   display the image
`C+c C+l` modify link in minibuffer
 org export to html css set

#+OPTIONS: tex:t
#+STARTUP: latexpreview
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="http://gongzhitaao.org/orgcss/org.css"/>

  • Insert template with export options
1
2
3
4
5
6
7
`C-c C-e #`
#+TITLE: the title to be shown
#+AUTHOR:  the author (default taken from user-full-name)
#+DATE:  a date, fixed, or an Org timestamp
#+EMAIL:  his/her email address (default from user-mail-address)
#+LANGUAGE:  language, e.g. ‘en’ (org-export-default-language)
#+OPTIONS:  H:2 num:t toc:t \n:nil ::t |:t ^:t f:t tex:t ...
  • shortcut for inser block mark
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
`<s 然后按tab键,会自动展开为源代码块标签:`
#+BEGIN_SRC

#+END_SRC

Or use "Ctr+c Ctr+'"

#Others
s    #+begin_src ... #+end_src
e    #+begin_example ... #+end_example  : 单行的例子以冒号开头
q    #+begin_quote ... #+end_quote      通常用于引用,与默认格式相比左右都会留出缩进
v    #+begin_verse ... #+end_verse      默认内容不换行,需要留出空行才能换行
c    #+begin_center ... #+end_center
l    #+begin_latex ... #+end_latex
L    #+latex:
h    #+begin_html ... #+end_html
H    #+html:
a    #+begin_ascii ... #+end_ascii
A    #+ascii:
i    #+index: line
I    #+include: line
  • 中文pdf输出支持
1
2
3
4
#先转tex文件,再转pdf
#其中需要在tex文件中添加xeCJK包
/usepackage{xeCJK}
#使用编译引擎xelatex

或者在 org 文件头部添加

1
2
3
4
5
6
7
#+OPTIONS: ^:nil _:nil f:nil toc:t num:t
#+TITLE: Reas Design
#+AUTHOR: liudy
#+LATEX_COMPILER: xelatex
#+LATEX_HEADER: \usepackage{xeCJK}
#+LATEX_HEADER: \usepackage{tabularx}
#+LATEX_HEADER: \usepackage{listings}
  • 写Latex 公式
1
2
3
 $a^2=b$ or \( b=2 \)
 $$ a=+\sqrt{2} $$
 \[ a=-\sqrt{2} \]
  • Latex preview
1
2
3
4
5
6
7
8
`#+STARTUP: latexpreview`

`C+c C+x C+l`  预览latex公式
#设置预览字体大小
` M-x customize-group <RET> org-latex <RET>` in order to customize these variables, or use the menus for it.
set variable preview-scale-function


  • Journal
`C+c c`  打开日记模板
`C+c C+c` 回到之前的buff,保存日记
updatedupdated2022-04-272022-04-27