Is there any package that can automatically display the year as "b.C" (before Christ) if the value is negative?
I've code for that, but I am looking for a more elegant solution, or even better a package that would do this automatically. My solution also seems to generate an extra space afterwards.
I've look through siunitx
and datetime2
but none seem to work like I need.
I am using the following (for Portuguese):
\newcommand{\byear}[1]{%
\ifnum #1<0
{-#1} a.C.\
\else
{#1} d.C.\
\fi
}
-
will make a hyphen not a minus sign, and -4 will print as--4
as you are not using any arithmetic, just prefixing with a hyphen. perhaps you want\number-#1
\
use\@%
to get a normal (not end of space) behaviour for.
wihout adding space.