TransWikia.com

Text hide over Chronosys periode

TeX - LaTeX Asked by Javier Barragn ajavibp on October 12, 2020

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}

One Answer

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=raggedleftcolorbox{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}

Answered by js bibra on October 12, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP