用EMACS生成腦圖(mind-map)

本文鏈接 https://blog.csdn.net/Ming2017123123/article/details/99109748

繪製腦圖

  • org-mind-map 是一個創建graphviz有向圖的emacs包
  • 可導出多種格式

安裝

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

emacs 環境

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
      )
    

使用

* 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
    生成的png格式的圖片
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章