Graphics, Figures & Tables ⇒ Create a timeline
Create a timeline
I need to create a couple of timelines that I've made only with Visio . I would now like to implement in latex , but I have simply no idea about this .
I'll send a pic with added , as the timeline should look like .
The individual events should be displayed before the time.
Maybe someone already done something similar or have an idea?
I would be very happy about it
Thank you ! = )
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Create a timeline
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Create a timeline
Here is a different idea of a time line, based on the TikZ timeline library. I created it as an example for my next book. Maybe it's also interesting for you.
Code: Select all
\documentclass[a3paper]{article}
\usepackage[landscape]{geometry}
\usepackage{tikz}
\usetikzlibrary{timeline}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}
\timeline{5}
\begin{phases}
\initialphase{involvement degree=3cm,phase color=blue}
\phase{between week=1 and 2 in 0.4,
involvement degree=5cm,phase color=green!50!black}
\phase{between week=2 and 3 in 0.2,
involvement degree=6cm,phase color=red!40!black}
\phase{between week=3 and 4 in 0.5,
involvement degree=3cm,phase color=red!90!black}
\phase{between week=4 and 5 in 0.3,
involvement degree=2.5cm,phase color=red!40!yellow}
\end{phases}
\node [xshift=-0.6cm,yshift=1cm,anchor=east,
font=\Large\bfseries] at (phase-0.180) {Auhor};
\node [xshift=-0.6cm,yshift=-1cm,anchor=east,
font=\Large\bfseries] at (phase-0.180) {Publisher};
\begin{scope}{text options={above}}
\addmilestone{at=phase-0.120,direction=120:1cm,
text={Concept}}
\addmilestone{at=phase-0.90,direction=90:1.2cm,
text={Outline}}
\addmilestone{at=phase-1.110,direction=110:1.5cm,
text={Research}}
\addmilestone{at=phase-2.100,direction=100:1cm,
text={Writing}}
\addmilestone{at=phase-2.60,direction=90:1.5cm,
text={First draft}}
\addmilestone{at=phase-3.90,direction=90:1.2cm,
text={Second draft}}
\addmilestone{at=phase-4.90,direction=90:0.8cm,
text={Approval of print draft}}
\end{scope}
\begin{scope}{text options={below}}
\addmilestone{at=phase-0.270,direction=270:1cm,
text={Concept Review}}
\addmilestone{at=phase-2.270,direction=270:1cm,
text={First Review}}
\addmilestone{at=phase-3.250,direction=250:0.8cm,
text={Second Review}}
\addmilestone{at=phase-3.300,direction=270:1.5cm,
text={Approval required}}
\addmilestone{at=phase-4.260,direction=270:2.2cm,
text={Draft for printing}}
\addmilestone{at=phase-4.300,direction=300:1cm,
text={Publication}}
\end{scope}
\end{tikzpicture}
\end{document}

Stefan
Create a timeline
Im a rather new user of LaTeX and I would love to make a similar timeline as yours.
Could you please indicate me what I need to install ? I ask because I get Package Tikz Error: I did not find the tikz 'timeline'.,while trying to compile in pdfLaTeX.
Thanks!
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Create a timeline
welcome to the forum!
You need to install the
timeline
library. You can download the file tikzlibrarytimeline.code.tex and copy it to your document folder (or to your TeX installation).Stefan
Re: Create a timeline
I'm working on it and I have two detail problems with the milestones
1 they are too close to the line.
2 i'd like to be able to add more text - maybe change fonts or break line
Can you give me a hint on how to fix that ?<
Thanks !
- Attachments
-
- Capture d’écran 2015-06-10 à 14.58.30.png (45.96 KiB) Viewed 27337 times
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Create a timeline
- Can be fixed by directly setting the
above
orbelow
key:
The setting for text options is remembered until you change it, so no need to repeat it.Code: Select all
\addmilestone{at=phase-0.120,direction=120:1cm, text={Text},text options={above}}
- You can set the width as option too, such as
Code: Select all
\addmilestone{at=phase-0.120,direction=120:1cm, text={Very long long long text},text options={above,text width=5em}}
-
- Posts: 2
- Joined: Mon Dec 10, 2018 5:47 pm
Create a timeline
I really like your timeline, can you tell me please how you can change the timeline by months but use, Months 1-3, months 4-6, and months 7-9 and month 10-12 ?
thanks
- Stefan Kottwitz
- Site Admin
- Posts: 10335
- Joined: Mon Mar 10, 2008 9:44 pm
Create a timeline
Code: Select all
\documentclass[a3paper]{article}
\usepackage[landscape]{geometry}
\usepackage{tikz}
\usetikzlibrary{timeline}
\pagestyle{empty}
\begin{document}
\begin{tikzpicture}[timespan={}, font=\sffamily]
\timeline[custom interval=true]{Months 1-3, Months 4-6, Months 7-9, Months 10-12}
\begin{phases}
\initialphase{involvement degree=3cm,phase color=blue}
\phase{between week=1 and 2 in 0.4,
involvement degree=5cm,phase color=green!50!black}
\phase{between week=2 and 3 in 0.2,
involvement degree=6cm,phase color=red!40!black}
\phase{between week=3 and 4 in 0.5,
involvement degree=3cm,phase color=red!90!black}
\end{phases}
\node [xshift=-0.6cm,yshift=1cm,anchor=east,
font=\Large\bfseries] at (phase-0.180) {Auhor};
\node [xshift=-0.6cm,yshift=-1cm,anchor=east,
font=\Large\bfseries] at (phase-0.180) {Publisher};
\begin{scope}{text options={above}}
\addmilestone{at=phase-0.120,direction=120:1cm,
text={Concept},text options={above}}
\addmilestone{at=phase-0.90,direction=90:1.2cm,
text={Outline}}
\addmilestone{at=phase-1.110,direction=110:1.5cm,
text={Research}}
\addmilestone{at=phase-2.100,direction=100:1cm,
text={Writing}}
\addmilestone{at=phase-2.60,direction=90:1.5cm,
text={First draft}}
\addmilestone{at=phase-3.90,direction=90:1.2cm,
text={Second draft}}
\end{scope}
\begin{scope}{text options={below}}
\addmilestone{at=phase-0.270,direction=270:1cm,
text={Concept Review},text options={below}}
\addmilestone{at=phase-2.270,direction=270:1cm,
text={First Review}}
\addmilestone{at=phase-3.250,direction=250:0.8cm,
text={Second Review}}
\addmilestone{at=phase-3.300,direction=270:1.5cm,
text={Approval required}}
\end{scope}
\end{tikzpicture}
\end{document}
-
- Posts: 2
- Joined: Mon Dec 10, 2018 5:47 pm
Create a timeline
