TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I use moderntimeline without having to use moderncv as the document class?

The following code is what I've tried so far:




More specifically, what modifications to moderntimeline are required to get it to run with a more general document class?

share|improve this question
Nothing prevents you from "using" moderncv as the documentclass, but to refrain from using any of the moderncv commands while creating your own cv. You will miss the commands of e.g. article, but I doubt you would need them to create a cv. – Xavier Oct 10 '12 at 21:19
up vote 10 down vote accepted

I am not familiar with moderntimeline, but you need to add some definitions of lengths, and commands from moderncv.cls and some of its styles (moderncvstyleclassic.sty, for example); you also need to provide some colors.

At least, to make the main commands \tlcventry, \tllabelcventry, \tldatecventry, and \tldatelabelcventry available, and to behave as they would do in the classic style for moderncv, in another class you need something like the following:



    \ifthenelse{\equal{#4}{}}{}{, {\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{, #5}%
    \ifthenelse{\equal{#6}{}}{}{, #6}%
      \raggedleft\hintstyle{#2} &{#3}%



\tlcventry{1999}{2002}{WYSIWYG User}{Unnamed Company}
{Somewhere}{}{Tried hard to typeset documents}

\tllabelcventry[magenta]{2002}{2003}{July--November 2002}
{Scribus Student}{GNU School}
{The Internet}{}{Tried Scribus for a short while}

\tldatecventry[brown]{2011}{Trusted TeX.SX user}{}{tex.stackexchange.com}
{The Internet}{}{Achived 20k reputation on TeX.SX}

\tldatelabelcventry[blue!70!black]{2011}{Christmas 2011}{Happy TeXer}{}{Home}
{Townville}{}{Received Don Knuth’s \emph{3:16} as a gift.}


enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.