Latex 如何实现附录参考文献列表和正文分开
1. 附录参考文献独自成列: 使用\begin{refsection}…\end{refsection}
2. 附录参考文献引用编号使用形如[A.1]的格式: \DeclareRefcontext以及用refsection环境输出
3. 完整Latex如下:
% This document is compiled using pdfLaTeX
% You can switch XeLaTeX/pdfLaTeX/LaTeX/LuaLaTeX in Settings
\documentclass{article}
\usepackage[defernumbers=true]{biblatex}
\addbibresource{sample.bib}
\AtEndPreamble{
\DeclareRefcontext{apA}{labelprefix={A.}}
\DeclareRefcontext{apB}{labelprefix={B.}}
}
% 开始编写论文
\begin{document}
\section{intro}
cite \cite{Kulwant2001,Gonze2013hill}
\printbibliography
\appendix
\begin{refsection}
\newrefcontext{apA}
\section{Data}
cite \cite{Kulwant2001,Gonze2013hill}
\printbibliography[heading=subbibintoc]
\end{refsection}
\begin{refsection}
\newrefcontext{apB}
\section{Source code}
cite \cite{Kulwant2001,Gonze2013hill}
\printbibliography[heading=subbibintoc]
\end{refsection}
\end{document}
编译结果: