Procházet zdrojové kódy

added compiled example

Martin Thoma před 12 roky
rodič
revize
c460235d04

+ 6 - 2
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

+ 3 - 0
tikz/url-structure/Readme.md

@@ -0,0 +1,3 @@
+Compiled example
+----------------
+![Example](url-structure.png)

binární
tikz/url-structure/url-structure.png


+ 13 - 12
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}