Kaynağa Gözat

Adjust Makefile

Martin Thoma 9 yıl önce
ebeveyn
işleme
2f0480a826

+ 6 - 5
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}

+ 3 - 5
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

+ 5 - 3
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