- Questo topic ha 10 risposte, 4 partecipanti ed è stato aggiornato l'ultima volta 10 anni fa da .
-
Topic
-
Salve a tutti, anche di domenica e festivi 😀
Cercando di creare una timeline decente, con dei “cerchi” che indichino l’intensità in un dato periodo , mi sono imbattuto in questo codice:`
\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}`
Ovviamente il codice è da modificare e non chiedo questo a voi! Sta a me adattarlo alle mie esigenze e sta sempre a me imparare a capire il funzionamento di TiKZ.
Il probmea è che mi viene chiesto di scaricare e installare un package (visto che compilando mi dà errore).Banalmente seguo il consiglio
Spoiler
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).
https://raw.githubusercontent.com/cfiandra/timeline/master/tikzlibrarytimeline.code.tex
Ma non cambia nulla…
Dove sbaglio?? 🙂
- Devi essere connesso per rispondere a questo topic.