mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
added compiled example
This commit is contained in:
parent
88308d67d3
commit
c460235d04
4 changed files with 22 additions and 14 deletions
|
@ -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
tikz/url-structure/Readme.md
Normal file
3
tikz/url-structure/Readme.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
Compiled example
|
||||
----------------
|
||||

|
BIN
tikz/url-structure/url-structure.png
Normal file
BIN
tikz/url-structure/url-structure.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue