# Issue with moderntimeline and tllabelcventry

I am trying to get rid of an awkward issue. I have created my cv using moderncv and moderntimeline and it worked. At some point - without editing the header or any option of any used package - the timeline changed to a weird behaviour. I am using \tllabelcventry to add a description to the bar (e.g. to include the month of starting and ending date). No matter what I am trying now, the endyear is displayed as a label (but not the month).

Here is a minmal example:

\documentclass{moderncv}
\moderncvtheme[blue]{casual}
\usepackage[firstyear=1985, lastyear=2021]{moderntimeline/moderntimeline}
\tlwidth{0.8ex}
\tltext{\tiny}

\firstname{John}
\familyname{Doe}

\begin{document}

\makecvtitle

\tllabelcventry{2000/7}{2020/12}{07/2000--12/2020}{Engineer}{Testing Corporation}{}{}{}
\tllabelcventry{2000/7}{2020/12}{07/2000--12/2020}{}{}{}{}{}

\tlcventry{2000/7}{2020/12}{Engineer}{Testing Corporation}{}{}{}
\tlcventry{2000/7}{2020/12}{}{}{}{}{}

\end{document}


And here you can see how it is compiled:

As you can see I am trying to draw a bar for an employment from July 2000 till December 2020 (as an example). The bar is drawn correctly, the description ("07/2000--12/2020") is shown properly, but the end year ("2020") is displayed nontheless in contradiction to the package description of moderntimeline:

"The \tllabelcventry macro is similar to \tlcventry, but it takes yet a third\tllabelcventry additional argument, which lets you set a label for the time line. When this is used, the dates are not typeset around the time line, only the label is placed where the start date would normally be."

How do I get rid of the additional and redundant display of the end year ("2020") in the description of the cventry?

The timeline puts the end date in the bottom right, unless the position is still held (and 0 was used as the end date).

In any case, the label is too long. Use the /// separator to enhance the timeline and make the 2020 disappear.

\documentclass{moderncv}
\moderncvtheme[blue]{casual}
\usepackage[firstyear=1985, lastyear=2021]{moderntimeline}
\tlwidth{0.8ex}
\tltext{\tiny}

\firstname{John}
\familyname{Doe}

\begin{document}

\makecvtitle

\tllabelcventry{2000/7}{2020/12}{07/2000--12/2020}{Engineer}{Testing Corporation}{}{}{}
\tllabelcventry{2000/7}{2020/12}{07/2000--12/2020}{}{}{}{}{}

\tlcventry{2000/7}{2020/12}{Engineer}{Testing Corporation}{}{}{}
\tlcventry{2000/7}{2020/12}{}{}{}{}{}

\tllabelcventry{2000/7}{2020/12}{07/2000///12/2020}{Engineer}{Testing Corporation}{}{}{}
\tllabelcventry{2000/7}{2020/12}{07/2000///12/2020}{}{}{}{}{}

{\tltextstart[base east]{\tiny} % move the label to the left
\tllabelcventry{2021/1}{2021/8}{01/2021///08/2021}{Engineer}{}{}{}{}
}

\end{document}

• Ok, another Problem occurs in this case. If the time span is short, the layout gets broken (the starting date is rendered at the start of the bar, so if you add an item for the last few month, the start date gets rendered into the description text). E.g. the entry \tllabelcventry{2021/1}{2021/8}{01/2021///08/2021}{}{}{}{}{} will result in a broken box ("01/2021" will be drawn above the "." off the description box). Any ideas how to fix that?
– Jan
Aug 30, 2021 at 14:02
• @Jan I updated the answer to take care of overflowing labels. Aug 30, 2021 at 16:53
• With this manipulation it should be possible to also move the label not using the "///"-seperator, isn't it? So it should be possible to use these and just delete the rendering of the end-year (just to have the choice and compare both styles)? Do you also know how to fix that? Thanks anyway, you helped a lot!
– Jan
Aug 30, 2021 at 17:11