绘制脑图

  • org-mind-map 是一个创建graphviz有向图的emacs包

安装

org-mind-map 包的github 主页 https://github.com/theodorewiles/org-mind-map

emacs 环境

  • 下载安装EMACS,自带org环境
  • 安装 org-mind-map 包

graphviz 环境

官网 http://graphviz.org/

添加配置

  • 添加到配置文件里

    ;; This is an Emacs package that creates graphviz directed graphs from
    ;; the headings of an org file
    (use-package org-mind-map
      :init
      (require 'ox-org)
      :ensure t
      ;; Uncomment the below if 'ensure-system-packages` is installed
      ;;:ensure-system-package (gvgen . graphviz)
      :config
      (setq org-mind-map-engine "dot")       ; Default. Directed Graph
      ;; (setq org-mind-map-engine "neato")  ; Undirected Spring Graph
      ;; (setq org-mind-map-engine "twopi")  ; Radial Layout
      ;; (setq org-mind-map-engine "fdp")    ; Undirected Spring Force-Directed
      ;; (setq org-mind-map-engine "sfdp")   ; Multiscale version of fdp for the layout of large graphs
      ;; (setq org-mind-map-engine "twopi")  ; Radial layouts
      ;; (setq org-mind-map-engine "circo")  ; Circular Layout
      )
    

使用

  • 在 .org 文档中写
* example tree
** branch A 
** branch B
*** sub-branch 1
*** sub-branch 2 
*** sub-branch 3 
  • M+x org-mind-map-write 生成图片
  • 可选格式 png, pdf, jpeg, svg, eps, gif, tiff

xiaoguotu