diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/graphviz/test |
Initial commit
Diffstat (limited to 'macros/latex/contrib/graphviz/test')
-rw-r--r-- | macros/latex/contrib/graphviz/test/Makefile | 40 | ||||
-rw-r--r-- | macros/latex/contrib/graphviz/test/body.tex | 9 | ||||
-rw-r--r-- | macros/latex/contrib/graphviz/test/pdf-singlefile-tmpdir.tex | 3 | ||||
-rw-r--r-- | macros/latex/contrib/graphviz/test/pdf-singlefile.tex | 3 | ||||
-rw-r--r-- | macros/latex/contrib/graphviz/test/pdf-tmpdir.tex | 3 | ||||
-rw-r--r-- | macros/latex/contrib/graphviz/test/pdf.tex | 3 | ||||
-rw-r--r-- | macros/latex/contrib/graphviz/test/ps.tex | 3 |
7 files changed, 64 insertions, 0 deletions
diff --git a/macros/latex/contrib/graphviz/test/Makefile b/macros/latex/contrib/graphviz/test/Makefile new file mode 100644 index 0000000000..5253fffd00 --- /dev/null +++ b/macros/latex/contrib/graphviz/test/Makefile @@ -0,0 +1,40 @@ +.PHONY: all clean clobber + +TPDF = $(shell find . -maxdepth 1 -type f -name 'pdf*.tex' | sort) +TPS = $(shell find . -maxdepth 1 -type f -name 'ps*.tex' | sort) +PS = $(TPS:.tex=.ps) +PDF = $(TPDF:.tex=.pdf) + + +all: $(PS) $(PDF) + +%.pdf: %.tex + pdflatex -shell-escape $< + pdflatex -shell-escape $< + +%.dvi: %.tex + latex -shell-escape $< + latex -shell-escape $< + +%.ps: %.dvi + dvips $< + +clean: + rm -rf ./tmp + rm -f master.gvpr + rm -f master.graphviz + rm -f *~ + rm -f *.dot + rm -f *.ps + rm -f *.pdf + rm -f *.aux + rm -f *.glo + rm -f *.gls + rm -f *.idx + rm -f *.ilg + rm -f *.log + rm -f *.dvi + +clobber: clean + rm -f $(PS) + rm -f $(PDF) diff --git a/macros/latex/contrib/graphviz/test/body.tex b/macros/latex/contrib/graphviz/test/body.tex new file mode 100644 index 0000000000..c426f983ee --- /dev/null +++ b/macros/latex/contrib/graphviz/test/body.tex @@ -0,0 +1,9 @@ +\begin{document} + +\section{Dot} +\digraph[scale=0.5]{abc}{rankdir=LR; a->b->c; b->d;} + +\section{Neato} +\neatograph[scale=0.5]{xyz}{rankdir=LR; w--y; x--y--z;} + +\end{document} diff --git a/macros/latex/contrib/graphviz/test/pdf-singlefile-tmpdir.tex b/macros/latex/contrib/graphviz/test/pdf-singlefile-tmpdir.tex new file mode 100644 index 0000000000..b551f95716 --- /dev/null +++ b/macros/latex/contrib/graphviz/test/pdf-singlefile-tmpdir.tex @@ -0,0 +1,3 @@ +\documentclass{article} +\usepackage[pdf,singlefile,tmpdir]{graphviz} +\input{body} diff --git a/macros/latex/contrib/graphviz/test/pdf-singlefile.tex b/macros/latex/contrib/graphviz/test/pdf-singlefile.tex new file mode 100644 index 0000000000..dc8db4a585 --- /dev/null +++ b/macros/latex/contrib/graphviz/test/pdf-singlefile.tex @@ -0,0 +1,3 @@ +\documentclass{article} +\usepackage[pdf,singlefile]{graphviz} +\input{body} diff --git a/macros/latex/contrib/graphviz/test/pdf-tmpdir.tex b/macros/latex/contrib/graphviz/test/pdf-tmpdir.tex new file mode 100644 index 0000000000..981805d745 --- /dev/null +++ b/macros/latex/contrib/graphviz/test/pdf-tmpdir.tex @@ -0,0 +1,3 @@ +\documentclass{article} +\usepackage[pdf,tmpdir]{graphviz} +\input{body} diff --git a/macros/latex/contrib/graphviz/test/pdf.tex b/macros/latex/contrib/graphviz/test/pdf.tex new file mode 100644 index 0000000000..127ff89f98 --- /dev/null +++ b/macros/latex/contrib/graphviz/test/pdf.tex @@ -0,0 +1,3 @@ +\documentclass{article} +\usepackage[pdf]{graphviz} +\input{body} diff --git a/macros/latex/contrib/graphviz/test/ps.tex b/macros/latex/contrib/graphviz/test/ps.tex new file mode 100644 index 0000000000..d6097672da --- /dev/null +++ b/macros/latex/contrib/graphviz/test/ps.tex @@ -0,0 +1,3 @@ +\documentclass{article} +\usepackage[ps]{graphviz} +\input{body} |