2

I'm working on a chronosys timeline and I would like to specify the precise date of an event as it affects the position but I don't want it to appear on the timeline.

Is there a way to make a command to remove the month of an event the same way it is possible not to show the year with year=false ?

\documentclass[twoside]{article}
\usepackage{chronosys}

\begin{document}

\begin{figure} \centering

\startchronology[startyear=-100,stopyear=-30,height=2ex] \chronoevent[textstyle=\bf, datesstyle=\it,datesseparation=/,conversionmonth=false, year=false, textwidth=4.5cm]{3/-44} {\qquad ides of March;\endgraf assassination of Caesar} \chronoevent[textstyle=\bf, datesstyle=\it,datesseparation=/,conversionmonth=false, year=false,]{10/-79} {Eruption of Mont Vesuvius} \stopchronology

\end{figure}
\end{document}

In this exemple, the result is as follow

enter image description here

And I would like to have something like that

enter image description here

Which I can achieve by not specifying {3/-44} but just {-44} (same with {10/-79}) but I dont want because when specifying the month the position of the ticks is more precise.

  • Why don't you just start your code at \documentclass, end it at \end{document} and try it to compile in an empty file in a new directory? Finally please post what compiled in the end AND shows your problem. Thank you – MS-SPO Sep 07 '23 at 09:53
  • have alook at the answer here --https://tex.stackexchange.com/questions/560905/how-to-put-text-inside-chronoperiode-timeline-bar/560980#560980 -- I found it easier to frame the timeline with just Tikz – js bibra Sep 07 '23 at 10:05
  • 1
    @MS-SPO My bad, I edited the code to have a full mwe, – BlueMarker Sep 07 '23 at 11:27
  • Do you want to remove the month for all events in a chronology or only for specific events? – samcarter_is_at_topanswers.xyz Sep 07 '23 at 11:46
  • I would like to have an argument for \chronoevent to show or not the month of an event like year=<option> does for the year of the event – BlueMarker Sep 07 '23 at 12:43
  • 2
    Unfortunately, chronosys is extremely difficult to customise if the package's options don't already do what you want. You really have two options. (1) Email the package author requesting a modified version. (2) Use something other than chronosys. [I'm writing a package which is basically a development from answers here addressing the difficulties adapting chronosys. Either that or a simple TikZ solution could work, but means switching from chronosys.] – cfr Sep 16 '23 at 15:09
  • I don't get the output you report getting when I compile your code. – cfr Nov 15 '23 at 02:02

1 Answers1

1

Not entirely happy with this, but ...

look-almost-alike with years-only events

\documentclass{standalone}
% ateb: https://tex.stackexchange.com/a/701307/ i gwestiwn BlueMarker: https://tex.stackexchange.com/q/695378/
% https://codeberg.org/cfr/chronos
% rev. 9866
\usepackage{chronos}

\begin{document} \begin{chronos} [ simple arrow, timeline={ dates={-100}:{-30}, width=\linewidth, height=2ex, major step font=\normalfont, minor step font=\normalfont, year format={!q!Y}, timeline marks=false, timeline year={yshift=30pt}, step major year=70, step from year={-100}, }, every date format={!q!Y}, event/.cd, text font=\upshape\bfseries, date font=\itshape, ] \chronosevent{name=eruption of Mont Vesuvius,date={{-79}-10},} \chronosevent{name=ides,name content={\qquad ides of March;\hfill\mbox{} assassination of Caesar},date={{-44}-3},text width=45mm} \end{chronos} \end{document}

cfr
  • 198,882