My standard bibliography setup is to use bibtex in the amsalpha style. References are displayed by labels which contain a few letters related to the author followed by the two digit publication year. That is mostly fine, but occasionally when including historical references it seems a little confusing as far as dates go, e.g.
"The study of this question goes back all the way to [G20]; for a recent survey see [B21]".
Is there a way to make references from years before a certain date (say 1900) appear with all four digits and later references with the usual two digits?
So in the example above, assume that [B21] was written by Joe Bloggs in 2021 and [G20] was written by Gauss in 1720, I would want it to read:
"The study of this question goes back all the way to [G1720]; for a recent survey see [B21]".
I want to keep using amsalpha style, but would consider using a modified myamsalpha.bst file instead. (That is was chatGPT suggested, but the various lines of code it wanted me to add caused errors and the fixes caused more errors and so on. and let's just say it ended badly.)
Added: A working example.
\documentclass[12pt,reqno]{amsart}
\usepackage{amssymb,amsmath,amsfonts,amsthm}
\begin{document}
"The study of this question goes back to~\cite{Gauss}; for a recent survey see~\cite{Bloggs}.
\bibliographystyle{amsalpha}
\bibliography{Working}
\end{document}
And the bib file:
@misc {Gauss,
AUTHOR = {Gau\ss , Carl Friedrich},
TITLE = {Important Stuff},
YEAR = {1821},
}
@misc{Bloggs,
Author = {Joe Bloggs},
Title = {Notes {I} just wrote},
Year = {2021},
}
\_createbibmark
macro with parametersyear;Lastname,Othernames;NextAuthor,...\_fin
so you can define\def\_createbibmark #1;#2#3\_fin{#2\ifnum#1>2000 \onlytwo#1\else #1\fi}