我怎样才能调整参考书目中的符号,使其变成 [1a]、[1b]、[1c] 等,而不是 [1]?
答案1
由于这个问题没有可用的 MWE,我现在假设article
没有natbib
包的类。因此,以下示例将根据请求生成引用:
\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}
注意:该命令\mbibitem{}
可用于多部分引用,也\bibitem{}
可用于普通引用。希望这对您有所帮助。