Діаграми з pic/[g]roff
Простенька діаграма — справді простенька, можливостей значно більше:
.PS
A: box "foo" fill 0.2; move;
B: box "moo";
arrow right at 1/4 <A.e,A.ne>;
arrow left at 1/4 <B.w,B.sw>;
.PE
.PS
A: box "moo" fill 0.2; move;
B: box "foo"; move;
C: box "moo";
arrow right at 0 <A.e,A.ne>;
arrow right at 1/3 <B.e,B.ne>;
arrow left at 1/3 <C.w,C.sw>;
.PE
.PS
A: box "moo" fill 0.2; move;
B: box "foo";
arrow right at 0 <A.e,A.ne>;
.PE
\"
\" Make it:
\" groff -Tpdf -p test.roff > test.pdf
\"
\" Manual:
\" https://www.complang.tuwien.ac.at/doc/groff-base/html/pic.html |
.PS
A: box "foo" fill 0.2; move;
B: box "moo";
arrow right at 1/4 <A.e,A.ne>;
arrow left at 1/4 <B.w,B.sw>;
.PE
.PS
A: box "moo" fill 0.2; move;
B: box "foo"; move;
C: box "moo";
arrow right at 0 <A.e,A.ne>;
arrow right at 1/3 <B.e,B.ne>;
arrow left at 1/3 <C.w,C.sw>;
.PE
.PS
A: box "moo" fill 0.2; move;
B: box "foo";
arrow right at 0 <A.e,A.ne>;
.PE
\"
\" Make it:
\" groff -Tpdf -p test.roff > test.pdf
\"
\" Manual:
\" https://www.complang.tuwien.ac.at/doc/groff-base/html/pic.html

Posted 29 листопада 2018 under Misc. Tags: Linux, Нотатки
RSS 2.0 feed.
Leave a comment, or trackback.