0

I have an extensive timeline to build and I thought it would be a good idea to do that in LaTeX. I just found chronosys module to build the timeline, but I'm facing some challenges to make it work in a landscape document.

If I just change my test timeline to portrait it works perfectly and I get a timeline in the top of the page regardless of paper size (I'm using A1). But perhaps the module seems to be 'too attached' to default page settings (portrait), as the docs even say it uses \hsize as the default width.

I tried to change width to a reasonable size (30in, as an A1 page is 33in long), but no success because it starts almost in the right edge of the page regardless of the alignment I set. Again, everything works fine in every setting if I just turn it back to portrait.

Here's my code:

\documentclass{article}
\usepackage[a1paper]{geometry}
\usepackage{chronosys}
\usepackage{pdflscape}
\setlength\parindent{0pt}
\author{Bruno Moreira-Guedes}
\renewcommand{\thesubsection}{\thesection.\alph{subsection}}
\addtolength{\oddsidemargin}{-1.675in}
\addtolength{\evensidemargin}{-1.675in}
\addtolength{\textwidth}{2.75in}
\addtolength{\topmargin}{-1.575in}
\addtolength{\textheight}{2.75in}


\begin{document}
\begin{landscape}

\startchronology[startyear=-500,stopyear=2000, startdate=false, color=blue!40, stopdate=false, arrow=true, height=20pt, width=\hsize, align=left]
  \setupchronoevent{textstyle=\scriptsize,datestyle=\scriptsize}
  \chronograduation[event]{100}

    \chronoevent[markdepth=80pt]{-208}{test 1}
    \chronoevent[markdepth=-80pt]{215}{test 2}
    \chronoevent[markdepth=80pt]{115}{test 3}

\stopchronology


\end{landscape}
\end{document}
  • Welcome! Off-topic: If you're using geometry, you shouldn't stab it in the back by changing the layout dimensions behind its back. Either don't use the package or use the package's options/commands to adjust the values. For the record, chronosys is not really recommended unless it does just what you want out-of-the-box as it is pretty much impossible to tweak. – cfr Dec 8 '19 at 23:07

Your Answer

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

Browse other questions tagged or ask your own question.