Skip to content
Snippets Groups Projects
Commit 0e99818e authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Added graphviz graph to latex report.

parent 2a836811
No related branches found
No related tags found
No related merge requests found
# Sander van Veen - 6167969 - University of Amsterdam - <sandervv@gmail.com>
#
# Basic Makefile used to simplify the compilation. Running "make" (without any
# arguments) from the command line is enough to build the report.
# arguments) from the command line will build the report for this assignment.
#
all: highlight compile
all: highlight graph compile
clean:
rm -v *.out *.aux *.toc foo.tex latex-answers.pdf
rm -v *.out *.aux *.toc foo.tex graph.tex latex-answers.pdf
compile:
pdflatex -interaction=nonstopmode latex-answers.tex
rm -v *.log
rm -vf *.log
highlight: foo.tex
@echo "Highlighting done."
graph: graph.dot
highlight: foo.py
%.py: %.tex
pygmentize -O style=colorful -o $^ $@
%.dot: %.tex
dot2tex --autosize --usepdflatex $@ | \
sed 's/\\\(use\|enl\|doc\|page\|\(end\|begin\){doc\).*//' > $^
%.tex: %.py
pygmentize -O style=colorful -o $@ $^
digraph A {
node [label="$q_0$"] q_0 ;
q_0 -> q_1;
q_1 -> q_1;
q_1 -> q_2;
q_2 -> q_0;
}
......@@ -2,9 +2,17 @@
\usepackage{float}
\usepackage{listings}
\usepackage{hyperref}
\usepackage{amsmath}
% Graphviz graph (using tikz)
\usepackage[x11names, rgb]{xcolor}
\usepackage{tikz}
\usetikzlibrary{snakes,arrows,shapes}
% Load code highlighter color scheme
\input{colors}
% Create a box around the code examples
\floatstyle{boxed}
\newfloat{program}{thp}{lop}
\floatname{program}{Program}
......@@ -90,6 +98,11 @@ $r_3c_1$ & $r_3c_2$ & $r_3c_3$ \\ \hline
% }}}
\subsection{Graph (GraphViz to PSTikz)} % {{{
\label{sub:Graph-GraphViz-to-PSTikz}
% \input{graph}
% }}}
% }}}
\section{Mathematics} % {{{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment