# Remove '-' and add BC in timeline

I'd like the timeline as shown, except the -ve year labels replaced with BC. I can't seem to find how to do it.

\documentclass{article}
\usepackage{chronosys}
\begin{document}

\startchronology
[startyear=-800,stopyear=-14, arrow=false, height=0.2em, dateselevation=10pt]
\chronoevent{-753}{Rome's foundation}
\stopchronology

\end{document}

• maybe tex.stackexchange.com/questions/315671/… could help – user36296 Feb 1 at 17:59
• @alice19 Not so long ago, @cfr proposed a fantastic solution for an alternative using Tikz -- the so-called chronos, an alternative for chronosys. With that you can do \begin{tikzpicture} [ chronos={% start date={{-800}-01-01}, end date={{-14}-01-01}, step years=50, only text, timeline width=100mm, timeline marks, timeline mark eras, timeline year={font=\scriptsize}, lines/.style={draw=none}, events/.append style={rotate=-45, anchor=west}, event distance=-2.5pt, } ] \chronosevent{{-753}}[text=gray]{Rome's Foundation} \end{tikzpicture}. – Raaja Feb 1 at 18:00
• @samcarter apparently we both looked into the same reference ;) – Raaja Feb 1 at 18:01
• @Raaja Well, it's a good reference :) – user36296 Feb 1 at 18:02
• @samcarter yes indeed. – Raaja Feb 1 at 18:04

\documentclass{article}
\usepackage{chronosys}

\newcommand{\mychronodatestyle}[1]{

\pgfmathparse{equal(sign(#1),-1)? int(abs(#1)):#1 }
\pgfmathresult
\pgfmathparse{equal(sign(#1),-1)? "BC":}
~\pgfmathresult
}

\catcode\!=11
\def\eventyear{\!chreventyear}
\catcode\!=12

\newcommand{\myeventdatestyle}[1]{
\pgfmathparse{equal(sign(\eventyear),-1)? int(abs(\eventyear)):"#1"}
\pgfmathresult
\pgfmathparse{equal(sign(\eventyear),-1)? "BC":}
~\pgfmathresult
}

\begin{document}

\startchronology
[startyear=-800,stopyear=-14, arrow=false, height=0.2em, dateselevation=10pt,
datesstyle=\mychronodatestyle
]
\chronoevent[datestyle=\myeventdatestyle ]
{12/-753}{Rome's foundation}

\chronoperiode[datesstyle=\mychronodatestyle,dateselevation=2pt]{-500}{-200}{important event}
\stopchronology

\end{document}


• @alice19 Pleased to know that your problem is solved! – Hafid Boukhoulda Feb 2 at 18:02
• I'm embarrassed to ask but is there any way to make this for a date range? For example, if something is dates to 750-740 BC? – alice19 Apr 2 at 13:40
• @alice19 You should not be embarrassed at all.! It's a pleasure for me. Answer updated. – Hafid Boukhoulda Apr 2 at 20:42
• Thank you so much :) Now however if I have two dates that are rather close together they overlap each other. Shall I ask a new question about this? – alice19 Apr 3 at 14:17
• @alice19 I think you should ask a new question. – Hafid Boukhoulda Apr 3 at 18:11