Powerpointでスライドを作成する際、GUIでのフローチャートが面倒だったので作成を決意。簡単なフローチャートのみの対応。
以下のようなmermaidの入力はパースできる想定
graph TD
define["input(n,m,f)"]
com1{{"n==m"}}
com2{{"n>m"}}
cal1["f=m+n"]
cal2["f=n-m"]
cal3["f=m-n"]
start --> define
define --> com1
com1--true-->cal1
com1--false-->com2
com2--true-->cal2
com2--false-->cal3
cal1-->exit
cal2-->exit
cal3-->exit
結果イメージ
graph TD
define["input(n,m,f)"]
com1{{"n==m"}}
com2{{"n>m"}}
cal1["f=m+n"]
cal2["f=n-m"]
cal3["f=m-n"]
start --> define
define --> com1
com1--true-->cal1
com1--false-->com2
com2--true-->cal2
com2--false-->cal3
cal1-->exit
cal2-->exit
cal3-->exit
ほか、graph LRも使用可能。
基本、簡単なフローチャート以外の出力は不可
例: hoge --> huge --> foo
(3つ並行で連結を記述)`
graph LRと宣言すると、mermaidでは横書きになるが、スライドのフローチャートには日本語を載せたいため、文字が縦書きになるように
Once you have cloned this and got into the directory, enter the following:
[1]
cargo build --release
[2]
./target/release/mmd2pdf INPUT_FILE OUTPUT_FILE