我希望附录中的参考文献编号包含章节号。即[1]
-> [A.1]
,[2]
-> [A.2]
,[3]
-> [B.1]
,[4]
-> [B.2]
,[5]
-> [B.3]
。就像以下命令显示的公式编号一样。
\renewcommand{\theequation}{\thechapter-\arabic{equation}}
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{A,title={A}}
@article{B,title={B}}
@article{C,title={C}}
@article{D,title={D}}
@article{E,title={E}}
@article{F,title={G}}
\end{filecontents}
\usepackage[style=gb7714-2015]{biblatex}
\addbibresource{\jobname}
\begin{document}
\section{mainbody}
text\cite{A}
text\cite{B}
\printbibliography
\appendix
\begin{refsection}
\section{appendix 1}
text\cite{C}
text\cite{A}
\section{appendix 2}
text\cite{D,E,F}
\printbibliography
\end{refsection}
\end{document}