biblatex-gb7714-2015
biblatex-gb7714-2015 copied to clipboard
对“参考文献”进行章节编号
在编译时,报错LaTeX Error: Command \bibsection undefined.
,于是我尝试使用\newcommand\bibsection{\section{\refname}}
对参考文献章节进行编号,无果;然后使用\usepackage{xpatch}
\xpatchcmd{\thebibliography}{\section}{\section}{}{}
对参考文献章节进行编号,仍然没有结果。
在编译时,报错
LaTeX Error: Command \bibsection undefined.
那请问为什么会报错?因为你写了 bibtex 下的某些代码,提问请给出 MWE。
问题在于,你写的代码是 bibtex 下的,不适应于 biblatex。biblatex 下的代码请参考
\documentclass{article}
\usepackage[backend=biber,style=gb7714-2015]{biblatex}
\addbibresource[location=local]{gdutthesis-template.bib}
\defbibheading{bibliography}{\section{References}}
\begin{document}
\cite{kennedy1975chalks}
\printbibliography[heading=bibliography]
\end{document}
果然发现我在另一个地方使用了bibtex的代码,问题已解决,谢谢! 另外,请问MWE是什么?
另外,请问MWE是什么?
https://tex.meta.stackexchange.com/questions/3300/minimal-working-example-mwe