1

I want \cite to give me [A1] in the text. I cited the reference here \cite{ref1}, which gives the reference as [1]. How to modify it to give me [A1] with A prefixing the number.

\documentclass[a4paper,12pt]{article}
\usepackage{cite}

\begin{document}

I cited the reference here \cite{ref1}, which gives the reference as [1].
How to modify it to give me [A1] with A prefixing the number.

\begin{thebibliography}{99}
\bibitem{ref1} name. 2017 Title of the reference.
\end{thebibliography}

\end{document}
jsxs
  • 341

1 Answers1

2

Redefine \@bibitem and \@biblabel:

\documentclass[a4paper,12pt]{article}
\usepackage{cite}

\makeatletter
\renewcommand\@bibitem[1]{\item\if@filesw \immediate\write\@auxout
    {\string\bibcite{#1}{A\the\value{\@listctr}}}\fi\ignorespaces}% <------------
\def\@biblabel#1{[A#1]}% <-------------------
\makeatother

\begin{document}

    I cited the reference here \cite{ref1}, \cite{sec}.

    \begin{thebibliography}{99}
        \bibitem{ref1} name. 2017 Title of the reference.
        \bibitem{sec} name. 2017 Title of the reference.
    \end{thebibliography}

\end{document}

enter image description here

Troy
  • 13,741