2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

Improve quality of image

This commit is contained in:
Martin Thoma 2016-06-14 08:21:50 +02:00
parent 3d582b0d4d
commit 2042a162f3
3 changed files with 21 additions and 13 deletions

View file

@ -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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before After
Before After

View file

@ -3,7 +3,7 @@
\usetikzlibrary{shapes.geometric,positioning,calc,shapes.misc} \usetikzlibrary{shapes.geometric,positioning,calc,shapes.misc}
\begin{document} \begin{document}
\tikzstyle{polygon}=[very thick, fill=orange!25] \tikzstyle{polygon}=[very thick]
\tikzstyle{point}=[ultra thick,draw=gray,cross out,inner sep=0pt,minimum width=4pt,minimum height=4pt,] \tikzstyle{point}=[ultra thick,draw=gray,cross out,inner sep=0pt,minimum width=4pt,minimum height=4pt,]
\tikzstyle{line}=[red] \tikzstyle{line}=[red]
\begin{tikzpicture} \begin{tikzpicture}
@ -11,21 +11,27 @@
\coordinate[label=right:$B$] (B) at (3,0); \coordinate[label=right:$B$] (B) at (3,0);
\coordinate[label=right:$C$] (C) at (4,2); \coordinate[label=right:$C$] (C) at (4,2);
\coordinate[label=above:$D$] (D) at (3,4); \coordinate[label=above:$D$] (D) at (3,4);
\coordinate[label={[label distance=0.5cm]90:$E$}] (E) at (2,2); \coordinate[label={[label distance=0.5cm]270:$E$}] (E) at (2,2);
\coordinate[label=above:$F$] (F) at (1,4); \coordinate[label=above:$F$] (F) at (1,4);
\coordinate[label=left:$G$] (G) at (0,2); \coordinate[label=left:$G$] (G) at (0,2);
\draw[polygon, fill=orange!25] (A) -- (B) -- (C) -- (D) -- (E) -- (F) -- (G) -- cycle;
\coordinate[label={[label distance=0.05cm]270:$E$}] (E) at (2,2);
\node (P) [point] at (2,3.5) {};
\draw[line] (P.center) -- (A);
\draw[line] (P.center) -- (B);
\draw[line] (P.center) -- (C);
\draw[line] (P.center) -- (D);
\draw[line] (P.center) -- (E);
\draw[line] (P.center) -- (F);
\draw[line] (P.center) -- (G);
\node (P) [point, label={[above]{$P$}}] at (2,3.5) {};
\draw[polygon] (A) -- (B) -- (C) -- (D) -- (E) -- (F) -- (G) -- cycle; \draw[polygon] (A) -- (B) -- (C) -- (D) -- (E) -- (F) -- (G) -- cycle;
\node (P) [point, label={[right]{$P$}}] at (2,3.5) {};
\draw[line] (P) -- (A);
\draw[line] (P) -- (B);
\draw[line] (P) -- (C);
\draw[line] (P) -- (D);
\draw[line] (P) -- (E);
\draw[line] (P) -- (F);
\draw[line] (P) -- (G);
\end{tikzpicture} \end{tikzpicture}
\end{document} \end{document}