moderntimeline icon indicating copy to clipboard operation
moderntimeline copied to clipboard

Incompatibility with \usetikzlibrary{positioning}

Open tobiasBora opened this issue 1 year ago • 3 comments

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}

tobiasBora avatar Nov 10 '23 14:11 tobiasBora

Result:

image

tobiasBora avatar Nov 10 '23 14:11 tobiasBora

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.

tobiasBora avatar Nov 10 '23 15:11 tobiasBora

Here we go https://github.com/raphink/moderntimeline/pull/29

tobiasBora avatar Nov 10 '23 15:11 tobiasBora