这几天收集了一些使用的问题
设置 org project
这是我的org-publish-project-alist
org-publish-project-alist '(
("images"
:base-directory "~/ChiniBlogs/src/"
:base-extension "jpg\\|png\\|gif"
:publishing-directory "~/ChiniBlogs/html"
:recursive t
:publishing-function org-publish-attachment)
("static"
:base-directory "~/ChiniBlogs/static"
:base-extension "jpg\\|png\\|gif\\|css\\|js"
:publishing-directory "~/ChiniBlogs/html/static"
:recursive t
:publishing-function org-publish-attachment)
("wiki-html"
:base-directory "~/ChiniBlogs/src/"
:base-extension "org"
:publishing-directory "~/ChiniBlogs/html"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://gongzhitaao.org/orgcss/org.css\"/>"
:recursive t
:publishing-function org-html-publish-to-html
:auto-preamble t
:section-numbers nil
:author "Steiner"
:headline-levels 4)
("wiki-pdf"
:base-directory "~/ChiniBlogs/src/"
:base-extension "org"
:publishing-directory "~/ChiniBlogs/pdf"
:html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"http://gongzhitaao.org/orgcss/org.css\"/>"
:recursive t
:publishing-function org-pandoc-export-to-ms-pdf
:auto-preamble t
:section-numbers nil
:author "Steiner"
:headline-levels 4)
("chini-blog"
:components ("wiki-html" "wiki-pdf" "static" "images"))
这样在我的ChiniBlogs
目录下就定义好了4个项目,但有时候我想在一个编程项目里写文档,
这个项目里也有上述4个文档项目,我该如何指定在org
导出项目时,绑定:base-directory
为当前编程项目的根目录 ?
下划线字体的导出
一个发现
__
org中 下划线字体,若是前后没有一个空格,导出的时候两个下划线也会导出
在开头用下划线字体的时候无法正常导出
org-pandoc-export-ms-pdf 出错
对 buffer 单独使用时,发现
org-babel-exp process julia at position 484… Saving file /home/steiner/ChiniBlogs/src/image.tmp69WWS4.org… Wrote /home/steiner/ChiniBlogs/src/image.tmp69WWS4.org Running pandoc with args: (-f org -t ms -o /home/steiner/ChiniBlogs/src/image.pdf --standalone /home/steiner/ChiniBlogs/src/image.tmp69WWS4.org) debug :: sentinel enter! Error occured. pandoc: Unknown writer: ms
这他娘的什么玩样,上个月用这个函数的时候还好好的