How can I adjust the notation in the bibliography to become [1a], [1b] [1c] etc. instead of [1]?
Asked
Active
Viewed 173 times
1 Answers
1
As there is no MWE available for this question, I am now assuming article class without natbib package. Hence, the following sample will generate the reference as per the request:
\documentclass{article}
\RequirePackage{alphalph}% You could now use more than 26 sub-refs
\begin{document}
\makeatletter
\newif\ifmbib\mbibfalse
\def\@bibitem#1{\setcounter{mCtr}{0}%
\stepcounter{enumiv}%
\renewcommand\theenumiv{\arabic{enumiv}}%
\global\mbibfalse\item[{[\theenumiv]}]%
\xdef\bibCtr{\theenumiv}%
\if@filesw\immediate\write\@auxout{\string\bibcite{#1}{\bibCtr}}\fi%
\ignorespaces}
\newcounter{mCtr}
\def\mbibitem#1{\stepcounter{mCtr}%
\ifnum\value{mCtr}=1\stepcounter{enumiv}\fi%
\renewcommand\theenumiv{\arabic{enumiv}\alphalph{\value{mCtr}}}%
\item[{[\theenumiv]}]\xdef\bibCtr{\theenumiv}%
\if@filesw\immediate\write\@auxout{\string\bibcite{#1}{\bibCtr}}\fi%
\global\mbibtrue\ignorespaces}
\makeatother
Citations~\cite{zero,one-a,one-b,one-c,one-d,two,three,four-a,four-b,four-c,five}.
%Citations~\cite{one-a,one-b,one-c,one-d,two,three,four-a,four-b,four-c,five}.
\begin{thebibliography}{10aa}
\bibitem{zero} Zero. % This item was added at the end to check whether it works
\mbibitem{one-a} One of One.
\mbibitem{one-b} Two of One.
\mbibitem{one-c} Three of One.
\mbibitem{one-d} Four of One.
\bibitem{two} Two.
\bibitem{three} Three.
\mbibitem{four-a} One of Four.
\mbibitem{four-b} Two of Four.
\mbibitem{four-c} Three of Four.
\bibitem{five} Five.
\end{thebibliography}
\end{document}
Note: The command \mbibitem{} can be used for multi-part reference and \bibitem{} can be used for normal reference. Hope this helps.
Jagath
- 4,287
\documentclasscommand, have a minimal preamble and then\begin{document}...\end{document}. The code should compile and be as small as possible to demonstrate your problem. This makes it much easier for people to help you --- and much more likely that they will! – Jun 30 '16 at 07:36alphalphpackage. – Jagath Jun 30 '16 at 13:38