使用多个书目时重置数字计数器

使用多个书目时重置数字计数器

我有多个参考书目(我的论文每章一个)。在序言中使用以下命令,一切都很顺利:


%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode

% Modify the following line to match your school
% Available options include `Harvard`, `Princeton`, and `NYU`.
\documentclass[School=Harvard]{Dissertate}
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}
\usepackage{chapterbib}
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\chapter*}{\section*}{}{}  % Changes the heading to \section
\apptocmd{\thebibliography}{\let\chapter\section}{}{} % Ensures the heading is treated as a section
\apptocmd{\thebibliography}{\vspace*{-3.5em}}{}{}  % Adjust the -1em value as needed

我为每个章节都有一个bibliography.tex,并在每个章节末尾使用这个代码:

\renewcommand{\bibname}{}

\section{References}

\bibliographystyle{achemso}

\bibliography{bibliographies/ref_chap1}

我如何重置计数器,使得每个章节的每个参考部分都从 1 开始编号,而不是从前一节连续编号?

谢谢!!

相关内容