Malgré la parution de deux packages de frises chronologiques le mois dernier (timechart, qui est très facile à utiliser, et chronos, très impressionnant... mais que je ne suis pas foutu de faire fonctionner), j'en reste à chronosys. J'ai le code suivant : \documentclass[a5paper, landscape]{scrartcl} \usepackage{chronosys} \usepackage{xcolor} \pagecolor{brown!30} \begin{document} \startchronology[startyear=1945, startdate=false, stopyear=2025, stopdate=false, color=yellow, height=10ex, width=\hsize] \chronoevent[markdepth=-120pt, ifcolorbox=false]{2017}{\color{red}Bidule} \chronoevent[markdepth=-80pt,ifcolorbox=false]{2022}{\color{blue}Caliorne Bredindin} \stopchronology \end{document} La chaîne « Caliorne Bredindin » dépasse sur la ligne verticale correspondant à 2017 : ce n'est pas très heureux. Je spécifie donc une largeur pour la boîte contenant cette chaîne : \documentclass[a5paper, landscape]{scrartcl} \usepackage{chronosys} \usepackage{xcolor} \pagecolor{brown!30} \begin{document} \startchronology[startyear=1945,startdate=false,stopyear=2025,stopdate=false,color=yellow,height=10ex,width=\hsize] \chronoevent[markdepth=-120pt, ifcolorbox=false]{2017}{\color{red}Bidule} \chronoevent[markdepth=-80pt,ifcolorbox=false,textwidth=1.2cm]{2022}{\color{blue}Caliorne Bredindin} \stopchronology \end{document} C'est beaucoup mieux, mais la boîte « Caliorne Bredindin » a maintenant un fond blanc ! Comment éviter cela ? |
Deux possibilités : \documentclass[a5paper, landscape]{scrartcl} \usepackage{chronosys} \usepackage{xcolor} \pagecolor{brown!30} \begin{document} \startchronology[startyear=1945,startdate=false,stopyear=2040,stopdate=false,color=yellow,height=10ex,width=\hsize] \chronoevent[markdepth=-80pt,ifcolorbox=false]{2022}{\color{blue}\parbox[t]{1.2cm}{Caliorne Bredindin}} \chronoevent[markdepth=-80pt,ifcolorbox=false,textwidth=1.2cm,colorbox=brown!30]{2040}{\color{blue}Caliorne Bredindin} \stopchronology \end{document} |