Commit f52cf36e authored by Matthieu Moy's avatar Matthieu Moy

Vertical label

parent 9042d46e
......@@ -404,6 +404,17 @@
\end{tikzpicture}
\section{Vertical Labels}
\begin{tikzpicture}
\tline{A}{0};
% Actually draw the timelines (#2 is the horizontal length):
\ttimeline{A}{5};
\tbox{A}{3}{Horizontal};
\tvertbox{A}{1}{Ver};
\end{tikzpicture}
\end{document}
%%% Local Variables:
......
......@@ -80,7 +80,7 @@ ellipse callout, draw, drop shadow={shadow xshift=1pt,shadow yshift=-1pt}]
}
\newcommand{\tcaption}[2]{
\draw (start#1) ++(-.1,0) node[anchor=east] {#2};
\draw (start#1) ++(-.1,0) node[anchor=east] (label#1) {#2};
}
\newcommand{\tadvance}[3]{
......@@ -98,6 +98,15 @@ ellipse callout, draw, drop shadow={shadow xshift=1pt,shadow yshift=-1pt}]
}
}
\newcommand{\tvertbox}[3]{
\tadvance{#1}{#2}{
\path (current#1) +(0,\boxheight) coordinate (topleft#1);
\path (next#1) +(0,-\boxheight) coordinate (bottomright#1);
\draw[tbox] (topleft#1) rectangle (bottomright#1);
\draw (barycentric cs:current#1=.5,next#1=.5) node[anchor=center,rotate=90] {#3};
}
}
\newcommand{\tsmallbox}[3]{
\tskip{#1}{.05};
\tbox{#1}{#2-.1}{#3};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment