ditaa org-mode

emacs ditaa 配置

ditaa 工具能够帮我们把ASCII图转成漂亮的图片,结合emacs in org-mode,用artist-mode,可以方便画出 漂亮的流程图。官方主页:ditaa –DIagrams Through Ascii Art

1 下载安装

http://ditaa.sourceforge.net/#download

unzip ditaa_xx.zip cp ditaa_xx.jar ~/.emacs.d/plugins/ditaa

2 emacs 配置

参考:http://doc.norang.ca/org-mode.html#sec-13-1

(setq org-ditaa-jar-path “~/.emacs.d/plugins/ditaa/ditaa0_9.jar”) ;(setq org-plantuml-jar-path “~/java/plantuml.jar”)

(add-hook ‘org-babel-after-execute-hook ‘org-display-inline-images ‘append)

(org-babel-do-load-languages (quote org-babel-load-languages) (quote ((emacs-lisp . t) (dot . t) (ditaa . t) (R . t) (python . t) (ruby . t) (gnuplot . t) (clojure . t) (sh . t) (ledger . t) (org . t) (plantuml . t) (latex . t))))

; Do not prompt to confirm evaluation ; ; This may be dangerous - make sure you understand the consequences ; ; of setting this – see the docstring for details (setq org-confirm-babel-evaluate nil)

3 didtaa 使用

由于中文支持不太好,要配置ditaa编码,建议使用UTF-8,org-mode #+LANGUAGE 设置成: #+LANGUAGE: zh_cn

  • ———–+
  • —-+——+
cBLU
你好
——
 cPNK
 世界
  • 效果 ::
  • ———–+
  • —-+——+
cBLU
你好
——
 cPNK
 世界
  • Tips :: 结合org-mode TeX 或 Tex beamer 可以写各种漂亮的slide和文档了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值