2

Yes, there is the abbrevs package. It provides me with AM, PM, BC and AD. But what would be a sensible way to format the "Common Era" / "Before Common Era" prefixes / suffixes?

  • 1
    I'm not a nativ english speaker. I can't see your problem. Can you please explain it a little bit more, for example with showing a MWE and/or a screenshot which shows what you have and what you want? What has the tag fontsize to do with your question? – Mensch Jun 9 '13 at 14:03
  • 1
    Why not define analogous commands to \AM, \PM ...? \AM is defined by the abbrevs package as follows: \newcommand{\AM}{\DateMark{a.m}} – cgnieder Jun 9 '13 at 14:06
  • @cgnieder: Thanks, that helps. In general, how do you look up these definitions? Where can you find them? – chaosflaws Jun 9 '13 at 23:55
  • @chaosflaws They're mentioned in the implementation part of the abbrevs documentation. If they weren't I'd either have opened the abbrevs.sty file or would have used \meaning\AM. – cgnieder Jun 10 '13 at 7:34
4

You can define them analogous to the definitions of \BC and \AD which are defined by the abbrevs package as

\newcommand\AD{\DateMark{a.d}}
\newcommand\BC{\DateMark{b.c}}

The \DateMark macro takes care of eventual following punctuation and formats its contents with \DateMarkSize and \scshape. \DateMarkSize is \small per default which I'd change: the punctation marks in e.g. A.D. else will be of different size and it seems strange to me to use a fixed size for the marks, anyway: think of using them in a footnote or something...

\documentclass{article}
\usepackage{abbrevs}
\newcommand*\CE{\DateMark{c.e}}
\newcommand*\BCE{\DateMark{b.c.e}}
\begin{document}

\BCE \CE

\CE, \CE.

\end{document}

enter image description here

  • Hmmm .... I don't get this output from this code. Do you know if anything changed? – cfr Sep 15 '16 at 12:10
  • It seems this code worked three years ago. No idea if there have been changes. I never really used abbrevs – cgnieder Sep 15 '16 at 12:12
  • Me neither. Somebody asked a question. I think it is a bug, though. – cfr Sep 15 '16 at 12:27
  • Which reminds me of tex.stackexchange.com/a/59884 abbrevs has bugs – cgnieder Sep 15 '16 at 12:32
  • 1
    Seems the new question is a duplicate. And according to the comments I even made a bug report. – cgnieder Sep 15 '16 at 12:40

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.