mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
Adjust Makefile
This commit is contained in:
parent
cd112a990f
commit
2f0480a826
3 changed files with 14 additions and 13 deletions
|
@ -2,7 +2,8 @@
|
||||||
\usepackage[pdftex,active,tightpage]{preview}
|
\usepackage[pdftex,active,tightpage]{preview}
|
||||||
\setlength\PreviewBorder{2mm}
|
\setlength\PreviewBorder{2mm}
|
||||||
\usepackage{tikz}
|
\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{
|
\tikzset{
|
||||||
%Define standard arrow tip
|
%Define standard arrow tip
|
||||||
>=stealth',
|
>=stealth',
|
||||||
|
@ -28,11 +29,11 @@
|
||||||
\coordinate[label=right:$B$] (B) at (5,0);
|
\coordinate[label=right:$B$] (B) at (5,0);
|
||||||
\coordinate[label=above:$C$] (C) at (3,3);
|
\coordinate[label=above:$C$] (C) at (3,3);
|
||||||
\
|
\
|
||||||
\draw[->, very thick] (A) to[] node[above] {$\vec c$} (B);
|
\draw[arrow] (A) to[] node[below] {$\vec c$} (B);
|
||||||
\draw[->, very thick] (C) to[] node[above] {$\vec b$} (A);
|
\draw[arrow] (C) to[] node[above] {$\vec b$} (A);
|
||||||
\draw[->, very thick] (C) to[] node[above=0.1cm] {$\vec a$} (B);
|
\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=-120:$a$] (a) at ($(B)!0.5!(C)$);
|
||||||
\coordinate[label=-45:$b$] (b) at ($(C)!0.5!(A)$);
|
\coordinate[label=-45:$b$] (b) at ($(C)!0.5!(A)$);
|
||||||
\end{tikzpicture}
|
\end{tikzpicture}
|
||||||
|
|
|
@ -25,11 +25,9 @@ transparentGif:
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
svg:
|
svg:
|
||||||
make
|
|
||||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||||
# Necessary, as pdf2svg does not always create valid svgs:
|
# 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 $(WIDTH) -f svg $(SOURCE).svg -o $(SOURCE)2.svg
|
rsvg-convert -a -w 720 -f svg $(SOURCE)1.svg -o $(SOURCE).svg
|
||||||
inkscape $(SOURCE)2.svg --export-plain-svg=$(SOURCE).svg
|
rm $(SOURCE)1.svg
|
||||||
rm $(SOURCE)2.svg
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
SOURCE = triangle-heronian
|
SOURCE = triangle-heronian
|
||||||
DELAY = 80
|
DELAY = 80
|
||||||
DENSITY = 300
|
DENSITY = 300
|
||||||
WIDTH = 500
|
WIDTH = 512
|
||||||
|
|
||||||
make:
|
make:
|
||||||
pdflatex $(SOURCE).tex -output-format=pdf
|
pdflatex $(SOURCE).tex -output-format=pdf
|
||||||
make clean
|
make clean
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(TARGET) *.class *.html *.log *.aux
|
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||||
|
|
||||||
gif:
|
gif:
|
||||||
pdfcrop $(SOURCE).pdf
|
pdfcrop $(SOURCE).pdf
|
||||||
|
@ -28,4 +28,6 @@ svg:
|
||||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||||
# Necessary, as pdf2svg does not always create valid svgs:
|
# 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue