moderntimeline
moderntimeline copied to clipboard
Incompatibility with \usetikzlibrary{positioning}
Thanks for this cool packase. But if I add \usetikzlibrary{positioning}
, the label of \tlcventry
are misplaced (flying like 5cm above).
MWE:
\documentclass[11pt,a4paper]{moderncv}
\moderncvtheme[blue]{classic}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{enumitem}
\usepackage{xcolor}
\usepackage{tikz}
\usepackage{moderntimeline}
\usetikzlibrary{positioning} % ?? This breaks moderntimeline?? See the flying 2018?
\tlmaxdates{2012}{2024}
\tlrunningcolor{gray}
\firstname{foo}
\familyname{bar}
\title{foo}
\address{}
\email{}
\begin{document}
\vspace*{10cm}
\section{Test}
\tlcventry{2018}{2019}{Some stuff}{Some place}{Foo}{Bla}{See that the 2018 is flying? Disabling \texttt{\textbackslash usetikzlibrary\{positioning\}} fixes it, but of course this is not a proper solution since one might need this library.}
\end{document}
Result:
I found the issue: the line above=\tl@textstartabove,
should be above=\tl@textstartabove pt,
(see the pt
) as \tl@textstartabove
has no unit due to how \pgfmathsetmacro
works. I'll create a PR.
Here we go https://github.com/raphink/moderntimeline/pull/29