mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
added my TikZ examples
This commit is contained in:
parent
dc9eb91aa2
commit
fef9415b3d
92 changed files with 3624 additions and 0 deletions
43
tikz/url-structure/url-structure.tex
Normal file
43
tikz/url-structure/url-structure.tex
Normal file
|
@ -0,0 +1,43 @@
|
|||
\documentclass{article}
|
||||
\usepackage[pdftex,active,tightpage]{preview}
|
||||
\setlength\PreviewBorder{2mm}
|
||||
\usepackage{tikz}
|
||||
\usetikzlibrary{shapes,snakes}
|
||||
\usepackage{amsmath,amssymb}
|
||||
|
||||
\begin{document}
|
||||
\begin{preview}
|
||||
|
||||
|
||||
% Define box and box title style
|
||||
\tikzstyle{mybox} = [
|
||||
draw=red,
|
||||
fill=blue!20,
|
||||
very thick,
|
||||
rectangle,
|
||||
rounded corners,
|
||||
inner sep=10pt,
|
||||
inner ysep=20pt
|
||||
]
|
||||
\tikzstyle{fancytitle} =[fill=red, text=white]
|
||||
|
||||
|
||||
\begin{tikzpicture}
|
||||
\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};
|
||||
\end{tikzpicture}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue