廿TT

譬如水怙牛過窓櫺 頭角四蹄都過了 因甚麼尾巴過不得

よく状態空間モデルの説明で出てくる図を tikz で書く

f:id:abrahamcow:20170725224336p:plain

¥documentclass[dvipdfmx]{standalone}
¥usepackage{tikz}
¥usetikzlibrary{shapes, positioning,arrows,automata}
¥begin{document}
¥begin{tikzpicture}[->, auto,thick]
    ¥node[state, fill=gray, text=white] (a1) {$¥alpha_1$};
    ¥node[state, fill=gray, text=white][right = of a1] (a2) {$¥alpha_2$};
    ¥node[state, fill=gray, text=white][right = of a2] (a3) {$¥alpha_3$};
    ¥node[state, fill=gray, text=white][right = of a3] (aT) {$¥alpha_T$};;
    ¥node[state][below = of a1] (y1)  {$y_1$};
    ¥node[state][below = of a2] (y2)  {$y_2$};
    ¥node[state][below = of a3] (y3)  {$y_3$};
    ¥node[state][below = of aT] (yT)  {$y_T$};    
    ¥path[->](a1) edge  (a2);
    ¥path[->](a2) edge  (a3);
    ¥path[->](a3) edge[dotted]  (aT);
    ¥path[->](a1) edge  (y1);
    ¥path[->](a2) edge  (y2);
    ¥path[->](a3) edge  (y3);
    ¥path[->](aT) edge  (yT);
¥end{tikzpicture}
¥end{document}

[改訂第7版]LaTeX2ε美文書作成入門

[改訂第7版]LaTeX2ε美文書作成入門