mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
added banner
This commit is contained in:
parent
77e1bd7edd
commit
e7556e9ddd
4 changed files with 87 additions and 0 deletions
BIN
presentations/Diskrete-Mathematik/LaTeX/Graphentheorie-I.pdf
Normal file
BIN
presentations/Diskrete-Mathematik/LaTeX/Graphentheorie-I.pdf
Normal file
Binary file not shown.
35
tikz/graph-banner/Makefile
Normal file
35
tikz/graph-banner/Makefile
Normal file
|
@ -0,0 +1,35 @@
|
|||
SOURCE = graph-banner
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 1366
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
make
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
||||
rsvg-convert -a -w $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
|
||||
inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
|
||||
rm $(SOURCE)2.svg
|
1
tikz/graph-banner/README.md
Normal file
1
tikz/graph-banner/README.md
Normal file
|
@ -0,0 +1 @@
|
|||
I've asked for help on [tex.stackexchange.com](http://tex.stackexchange.com/q/82821/5645)
|
51
tikz/graph-banner/graph-banner.tex
Normal file
51
tikz/graph-banner/graph-banner.tex
Normal file
|
@ -0,0 +1,51 @@
|
|||
\documentclass{article}
|
||||
\usepackage[pdftex,active,tightpage]{preview}
|
||||
\setlength\PreviewBorder{2mm}
|
||||
|
||||
\usepackage{xcolor}
|
||||
\definecolor{pink}{HTML}{FF00FF}
|
||||
\definecolor{purple}{HTML}{800080}
|
||||
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{arrows,positioning, calc,lindenmayersystems,decorations.pathmorphing,intersections}
|
||||
\tikzstyle{vertex}=[draw,
|
||||
fill=black,
|
||||
circle,minimum size=10pt,inner sep=0pt]
|
||||
\tikzstyle{selected edge} = [draw,line width=5pt,-,red!50]
|
||||
\tikzstyle{markedCircle}=[line width=1pt,rotate=90,decorate,decoration={snake, segment length=2mm, amplitude=0.4mm}]
|
||||
|
||||
\begin{document}
|
||||
\pgfdeclarelayer{background}
|
||||
\pgfsetlayers{background,main}
|
||||
|
||||
\begin{preview}
|
||||
\begin{tikzpicture} [scale=1.2]
|
||||
\node (a)[vertex] at (1,1) {};
|
||||
\node (b)[vertex] at (2,5) {};
|
||||
\node (c)[vertex] at (3,3) {};
|
||||
\node (d)[vertex] at (5,4) {};
|
||||
\node (e)[vertex] at (3,6) {};
|
||||
\node (f)[vertex] at (5,6) {};
|
||||
\node (g)[vertex] at (7,6) {};
|
||||
\node (h)[vertex] at (7,4) {};
|
||||
\node (i)[vertex] at (6,2) {};
|
||||
\node (j)[vertex] at (8,7) {};
|
||||
\node (k)[vertex] at (9,5) {};
|
||||
\node (l)[vertex] at (13,6) {};
|
||||
\node (m)[vertex] at (11,7) {};
|
||||
\node (n)[vertex] at (15,7) {};
|
||||
\node (o)[vertex] at (16,4) {};
|
||||
\node (p)[vertex] at (10,2) {};
|
||||
\node (q)[vertex] at (13,1) {};
|
||||
\node (r)[vertex] at (16,1) {};
|
||||
\node (s)[vertex] at (17,4) {};
|
||||
\node (t)[vertex] at (19,6) {};
|
||||
\node (u)[vertex] at (18,3) {};
|
||||
\node (v)[vertex] at (20,2) {};
|
||||
\node (w)[vertex] at (15,4) {};
|
||||
|
||||
\foreach \from/\to in {a/c,c/b,c/d,d/f,f/g,g/h,h/d,d/g,h/f,i/k,k/j,k/l,l/m,m/n,n/o,o/t,t/v,v/u,s/r,o/q,q/p,u/t}
|
||||
\draw[line width=2pt] (\from) -- (\to);
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue