summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/dottex/example.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/dottex/example.tex
Initial commit
Diffstat (limited to 'macros/latex/contrib/dottex/example.tex')
-rw-r--r--macros/latex/contrib/dottex/example.tex22
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/latex/contrib/dottex/example.tex b/macros/latex/contrib/dottex/example.tex
new file mode 100644
index 0000000000..a5a861f263
--- /dev/null
+++ b/macros/latex/contrib/dottex/example.tex
@@ -0,0 +1,22 @@
+\documentclass[a4paper]{article}
+
+\usepackage[pdf]{dottex}
+
+\begin{document}
+
+\begin{dotpic}[width=.5\textwidth]
+ a -> b;
+ a -> c;
+ b -> d;
+ d -> a;
+\end{dotpic}
+
+\begin{neatopic}
+ a -- b;
+ b -- c;
+ a -- g;
+ e -- f;
+ g -- c;
+\end{neatopic}
+
+\end{document}