1

I want to move the text of a chronoperiode to the middle of the box, but the text keep behind the box and is not visible. I tried to with tikz boxes too, but it doen't work.

Do you have any idea?

Thanks!

Example code:

\begin{chronology}
    \setupchronograduation[event]{}
    \chronograduation{2}
    \chronoperiode[textdepth=-1mm,ifcolorbox=false,dates=false,color=blue]{2005}{2010}{--Text 1--}
    \chronoperiode[textdepth=-1mm,ifcolorbox=false,dates=false,color=green]{2011}{2015}{
        \tikz \node (B) at (0,0) {--Text 2--};
    }
\end{chronology}
3
0

Please see if this meets the requirement

The options have been listed and not in continuous line for better readability

Please revert for additional query

enter image description here

\documentclass[10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{chronosys}
\usepackage[paperwidth=34cm, paperheight=10cm]{geometry}%taille du document

\definecolor{blue}{HTML}{84CECC}
\definecolor{gr}{HTML}{375D81}
%
%
%
\begin{document}
    %---------------------timeline----------------%
    \startchronology[
                    align=left, 
                    startyear=1999,
                    stopyear=2016, 
                    height=0pt, 
                    startdate=false, 
                    stopdate=false, 
                    dateselevation=0pt, 
                    arrow=false, 
                    box=true
                    ]
    %
    \chronograduation[event][dateselevation=0pt]{1}
    %---------------------periods----------------%
    \chronoperiode[
                    textstyle=\raggedleft\colorbox{gr!50},
                    color=gr, 
                    startdate=false, 
                    bottomdepth=0pt, 
                    topheight=8pt, 
                    textdepth=-25pt,
                    dateselevation=16pt, 
                    stopdate=false
                    ]
                    {2005}{2010}{University of Tennessee Chattanooga}
    %
    \chronoperiode[
                    textstyle=\colorbox{blue!50}, 
                    color=blue, 
                    startdate=false, 
                    bottomdepth=8pt, 
                    topheight=16pt, 
                    textdepth=-25pt, 
                    dateselevation=12pt, 
                    stopdate=false
                    ]
                    {2011}{2015}{Tennesse Technological University}
    %
    \stopchronology
\end{document}
1
  • Thanks for your support. It's not exactly what I wanted, but it's fine for me. Thanks! Jul 9 at 0:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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