Added graphviz graph to latex report.

parent 2a836811
# Sander van Veen - 6167969 - University of Amsterdam - <sandervv@gmail.com> # Sander van Veen - 6167969 - University of Amsterdam - <sandervv@gmail.com>
# #
# Basic Makefile used to simplify the compilation. Running "make" (without any # 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: clean:
rm -v *.out *.aux *.toc foo.tex latex-answers.pdf rm -v *.out *.aux *.toc foo.tex graph.tex latex-answers.pdf
compile: compile:
pdflatex -interaction=nonstopmode latex-answers.tex pdflatex -interaction=nonstopmode latex-answers.tex
rm -v *.log rm -vf *.log
highlight: foo.tex graph: graph.dot
@echo "Highlighting done."
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 @@ ...@@ -2,9 +2,17 @@
\usepackage{float} \usepackage{float}
\usepackage{listings} \usepackage{listings}
\usepackage{hyperref} \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} \input{colors}
% Create a box around the code examples
\floatstyle{boxed} \floatstyle{boxed}
\newfloat{program}{thp}{lop} \newfloat{program}{thp}{lop}
\floatname{program}{Program} \floatname{program}{Program}
...@@ -90,6 +98,11 @@ $r_3c_1$ & $r_3c_2$ & $r_3c_3$ \\ \hline ...@@ -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} % {{{ \section{Mathematics} % {{{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment