KTUG 한국 텍 사용자 그룹

Menu

KTUG :: 마당정보글 › Graphviz

yihoze | 2020.10.05 16:55:58 | 메뉴 건너뛰기 쓰기

저는 tikz를 좋아하지 않습니다. 문법이 너무 난해한 데다, 들이는 품에 비해 알아서 해주는 것이 좀 미흡하다 싶어서 애써 익히고 싶은 마음이 생기지 않습니다. 레이텍 컴파일을 통해 그림을 만드는 것이, 편한 점도 있지만, 그다지 합리적이라고 생각되지도 않습니다. 대안으로 metapost와 asymptote를 들여다봤는데 ... 긁적긁적 ...

Graphviz가 용하다는 소문을 듣고 살펴봤는데 관계도 같은 것에만 국한해서 tikz의 대안이 될 수 있겠더군요. 

digraph G {
    rankdir=TB;
    node [fontname=Arial, fontsize=10, penwidth=0.25];
    edge [arrowhead=vee, arrowsize=0.5, fontname=Arial, fontsize=9];
    node [shape=ellipse, style=filled, fillcolor=lightgrey];
        { rank=same; tex [label="foo.tex"]; pdf[label="foo.pdf"]; }
        { rank=same; idx [label="foo.idx"]; aux[label="foo.aux"]; toc[label="foo.toc"];  log[label="foo.log"]; }
        { rank=same; ind [label="foo.ind"]; bbl[label="foo.bbl"]; }
    node [shape=box, style=filled, fillcolor=lightblue];
        latex [shape=box];
        { rank=same; makeindex; bibtex; }
    latex -> {pdf; log}
    tex -> latex -> idx -> makeindex;
    makeindex -> ind [label="goo.ist", fontcolor=brown];
    latex -> {aux; toc} [dir=both, arrowtail=vee];
    aux -> bibtex [label=" ref.bib", fontcolor=brown];
    bibtex -> bbl [label="hoo.bst", fontcolor=brown];
    { ind; bbl } -> latex;
}

latex_process_graphviz.png

 

첨부 [1]

댓글 [12]

댓글 쓰기

목록

KTUG 한국 텍 사용자 그룹