使用Emacs Org mode做笔记

0

Emacs Org mode具备基本的文本修饰功能,还可以实现层级结构 、标签,以及基于GTD的日程管理,和cdlatex结合就更可以得到强大的数学公式的支持。因此,相对于重量级的Office Word,用它来做日常的笔记、心得记录还是挺方便的。对于通常的格式修饰符,前人之述备矣(可以参考这一篇)。但由于格式修饰符的前后需要有空格分开,这对于英文单词来说还是合适的,但对于中文文档来说,就有问题了。不过还好,基本的格式修饰完全可以通过直接插入HTML代码来解决,原有的功能就可以弃之不用了。为了使用HTML标签对文本进行局部修饰,需要在标签前加上符号@,如,

@<font color=red>red text@</font>

就被转化为:

red text

对于<与>符号,在Org mode中可以直接书写,除非在上面所述的HTML环境下,其均会在导出时被自动转换为&lt;与&gt;。

对于代码的修饰和引用可以使用如下几种区块环境:

  • #+begin_example / #+end_example:将环境内部的文本原样保留,并用<pre class="example"></pre>标签包含。
  • #+begin_verse / #+end_verse:将环境内部的文本保留,并用<p class="verse"></p>标签包含。
  • #+begin_quote / #+end_quote:将环境内部文本用<blockquote></blockquote>标签包含。
  • #+begin_html / #+end_html:将环境内部文本当作HTML源码输出。
  • #+begin_src emacs-mode / #+end_src:将内部文本以指定的emacs-mode用htmlize导出。其中,可以将变量org-export-htmlize-output-type设置为'css,以css class的形式输出。

Related Posts:

Comments

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!: