diff --git a/tikz/url-structure/Makefile b/tikz/url-structure/Makefile index 1a765de..d9fbad5 100644 --- a/tikz/url-structure/Makefile +++ b/tikz/url-structure/Makefile @@ -1,14 +1,14 @@ SOURCE = url-structure 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 @@ -25,7 +25,11 @@ 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 diff --git a/tikz/url-structure/Readme.md b/tikz/url-structure/Readme.md new file mode 100644 index 0000000..eaae703 --- /dev/null +++ b/tikz/url-structure/Readme.md @@ -0,0 +1,3 @@ +Compiled example +---------------- +![Example](url-structure.png) diff --git a/tikz/url-structure/url-structure.png b/tikz/url-structure/url-structure.png new file mode 100644 index 0000000..c64a168 Binary files /dev/null and b/tikz/url-structure/url-structure.png differ diff --git a/tikz/url-structure/url-structure.tex b/tikz/url-structure/url-structure.tex index d832e16..fd34448 100644 --- a/tikz/url-structure/url-structure.tex +++ b/tikz/url-structure/url-structure.tex @@ -23,21 +23,22 @@ \begin{tikzpicture} -\node [mybox] (box){ - \begin{minipage}{0.9\textwidth} - $\underbrace{\text{http}}_{\text{protocol}} - \text{://} - \underbrace{ + \node [mybox] (box){ + \begin{minipage}{0.9\textwidth} + $\underbrace{\text{http}}_{\text{protocol}} + \text{://} + \underbrace{ \overbrace{\text{martin-thoma}}^\text{2\textsuperscript{nd} level domain} \text{.} \overbrace{\text{com}}^\text{TLD} - }_\text{hostname} - \underbrace{\text{/why-to-study-math/}}_\text{path} - \text{\#} - \underbrace{\text{Math\_is\_fun}}_\text{Fragment identifier}$ - \end{minipage} -}; -\node[fancytitle, right=10pt] at (box.north west) {The URL}; + }_\text{hostname} + \underbrace{\text{/why-to-study-math/}}_\text{path} + \text{\#} + \underbrace{\text{Math\_is\_fun}}_\text{Fragment identifier}$ + \end{minipage} + }; + \node[fancytitle, right=10pt] at (box.north west) {The URL}; \end{tikzpicture} + \end{preview} \end{document}