From 2f0480a826a701cd6a495d688bbcc7ab171c97fc Mon Sep 17 00:00:00 2001 From: Martin Thoma Date: Sun, 12 Jun 2016 13:21:47 +0200 Subject: [PATCH] Adjust Makefile --- tikz/dot-product-5/dot-product-5.tex | 11 ++++++----- tikz/parse-tree/Makefile | 8 +++----- tikz/triangle-heronian/Makefile | 8 +++++--- 3 files changed, 14 insertions(+), 13 deletions(-) diff --git a/tikz/dot-product-5/dot-product-5.tex b/tikz/dot-product-5/dot-product-5.tex index 2bbc3e6..4f923ba 100644 --- a/tikz/dot-product-5/dot-product-5.tex +++ b/tikz/dot-product-5/dot-product-5.tex @@ -2,7 +2,8 @@ \usepackage[pdftex,active,tightpage]{preview} \setlength\PreviewBorder{2mm} \usepackage{tikz} -\usetikzlibrary{arrows,positioning, calc} +\usetikzlibrary{arrows, positioning, calc, arrows.meta} +\tikzstyle{arrow}=[arrows={-{Latex[scale=0.5]}}, very thick, line cap=round] \tikzset{ %Define standard arrow tip >=stealth', @@ -28,11 +29,11 @@ \coordinate[label=right:$B$] (B) at (5,0); \coordinate[label=above:$C$] (C) at (3,3); \ - \draw[->, very thick] (A) to[] node[above] {$\vec c$} (B); - \draw[->, very thick] (C) to[] node[above] {$\vec b$} (A); - \draw[->, very thick] (C) to[] node[above=0.1cm] {$\vec a$} (B); + \draw[arrow] (A) to[] node[below] {$\vec c$} (B); + \draw[arrow] (C) to[] node[above] {$\vec b$} (A); + \draw[arrow] (C) to[] node[above=0.1cm] {$\vec a$} (B); - \coordinate[label=-90:$c$] (c) at ($(A)!0.5!(B)$); + \coordinate[label=+90:$c$] (c) at ($(A)!0.5!(B)$); \coordinate[label=-120:$a$] (a) at ($(B)!0.5!(C)$); \coordinate[label=-45:$b$] (b) at ($(C)!0.5!(A)$); \end{tikzpicture} diff --git a/tikz/parse-tree/Makefile b/tikz/parse-tree/Makefile index b21ae5d..21261d8 100644 --- a/tikz/parse-tree/Makefile +++ b/tikz/parse-tree/Makefile @@ -25,11 +25,9 @@ transparentGif: 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 + inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg + rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg + rm $(SOURCE)1.svg diff --git a/tikz/triangle-heronian/Makefile b/tikz/triangle-heronian/Makefile index 2f72b7b..95a6e5b 100644 --- a/tikz/triangle-heronian/Makefile +++ b/tikz/triangle-heronian/Makefile @@ -1,14 +1,14 @@ SOURCE = triangle-heronian DELAY = 80 DENSITY = 300 -WIDTH = 500 +WIDTH = 512 make: pdflatex $(SOURCE).tex -output-format=pdf make clean clean: - rm -rf $(TARGET) *.class *.html *.log *.aux + rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot gif: pdfcrop $(SOURCE).pdf @@ -28,4 +28,6 @@ svg: #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 + inkscape $(SOURCE).svg --export-width=$(WIDTH) --export-plain-svg=$(SOURCE)1.svg + rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg + rm $(SOURCE)1.svg