Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I've just seen an amazing thing, created by

\usepackage{moderntimeline}

But this was only for a moderncv document. I am now trying to build up a beamer latex, where I do need a timeline and I'd wish to use this package. My header is as follows:

\documentclass{beamer}
\usepackage[german]{babel}
\usepackage[latin1]{inputenc}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{amssymb}

\usepackage{beamerthemesplit}
\usetheme{PaloAlto}

\usepackage{tikz}
\usetikzlibrary{decorations}
\usepackage{textcomp} 
\usetikzlibrary{snakes}

\begin{document} ... \end{document}

I would be super happy for any help. For an impression of what I am looking for, see

Putting a timeline for dates in moderncv

Thanks! Best, maad

share|improve this question
    
Welcome to TeX.SX. –  Claudio Fiandrino Feb 21 '13 at 11:50
add comment

1 Answer

up vote 6 down vote accepted

You will need to load the moderntimeline and ifthen packages, to add in the preamble some of the definitions from moderncv and to make some further adjustments; something along the lines illustrated in the following example (allowing the use of \tlcventry, \tllabelcventry, \tldatecventry, and \tldatelabelcventry in beamer):

\documentclass{beamer}
\usepackage[german]{babel}
\usepackage[latin1]{inputenc}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{decorations}
\usepackage{textcomp} 
\usetikzlibrary{snakes}
\usepackage{ifthen}
\usepackage[firstyear=1999,lastyear=2012]{moderntimeline}

\usepackage{beamerthemesplit}
\usetheme{PaloAlto}

\makeatletter
% change these colors according to your needs
\colorlet{color0}{blue}
\colorlet{color1}{olive}

\newcommand*{\hintfont}{}
\newcommand*{\hintstyle}[1]{{\hintfont\textcolor{color0}{#1}}}
\newcommand*{\listitemsymbol}{a~}
\newcommand*{\cventry}[7][.25em]{%
  \cvitem[#1]{#2}{%
    {\bfseries\raggedright #3}%
    \ifthenelse{\equal{#4}{}}{}{, \raggedright{\slshape#4}}%
    \ifthenelse{\equal{#5}{}}{}{,  \raggedright#5}%
    \ifthenelse{\equal{#6}{}}{}{, \raggedright#6}%
    .\strut%
    \ifx&#7&%
      \else{\newline{}\begin{minipage}[t]{\linewidth}\small\raggedright#7\end{minipage}}\fi}}
\newcommand*{\cvitem}[3][.25em]{%
  \begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%
      \raggedleft\hintstyle{#2} & {#3}%
  \end{tabular}%
  \par\addvspace{#1}}
\tlmaxdates{2001}{2012}
\newlength{\quotewidth}
\newlength{\hintscolumnwidth}
\setlength{\hintscolumnwidth}{0.175\textwidth}
\newlength{\separatorcolumnwidth}
\setlength{\separatorcolumnwidth}{0.025\textwidth}
\newlength{\maincolumnwidth}
\newlength{\doubleitemmaincolumnwidth}
\newlength{\listitemsymbolwidth}
\settowidth{\listitemsymbolwidth}{\listitemsymbol}
\newlength{\listitemmaincolumnwidth}
\newlength{\listdoubleitemmaincolumnwidth}

\setlength{\maincolumnwidth}{\dimexpr0.9\linewidth-\separatorcolumnwidth-\hintscolumnwidth\relax}
\makeatother


\begin{document}

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

\tllabelcventry[magenta,below]{2002}{2003}{Jul.--Nov. 2002}
{Scribus Student}{GNU School}
{The Internet}{}{Tried Scribus for a short while}

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

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

\end{document}

enter image description here

share|improve this answer
    
RTFLMAO! +1 for the example slide :) –  tohecz Feb 21 '13 at 13:14
    
@tohecz :-) the example texts come from the moderntimeline documentation, so the credit goes to ℝaphink. –  Gonzalo Medina Feb 21 '13 at 13:19
    
Yeah, he is the one I was thinking of! Great job, ℝaphink!! Thanks Gonzalo!! –  maad Feb 21 '13 at 13:28
add comment

Your Answer

 
discard

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.