我有一份文件,分为两个标题。主文档包含第 1 节和附录 A,补充文档包含附录 B(其余附录)。
没有 bibunit 时编号也正常,但有了 bibunit 编号就会重置。如何防止重置?
也许可以从手动破解开始,从特定字母开始补充附录?
\documentclass[acmtog]{acmart}
\usepackage{blindtext}
\usepackage{bibunits}
\acmJournal{CIE}\acmVolume{0}\acmNumber{0}\acmArticle{0}\acmYear{202x}\acmMonth{0}
\let\maketitlesup\maketitle
\usepackage{xpatch}
\xpatchcmd{\maketitlesup}{\@mkteasers}{}{}{}
\xpatchcmd{\maketitlesup}{\@mkabstract}{}{}{}
\begin{document}
\title{Title}
\author{Author}
\maketitle
\begin{bibunit}
\section{1}
\blindtext
\appendix
\section{A}
\blindtext
\end{bibunit}
\setcounter{page}{1}
\title{Title---Supplement}
\maketitlesup
%\appendix
\begin{bibunit}
\section{B}
\blindtext
\end{bibunit}
\end{document}
答案1
Acmart 终于支持 biblatex 了。不过,它也有类似的问题,不过至少我可以手动设置计数器。
\documentclass[acmtog,natbib=false]{acmart}
\usepackage{blindtext}
\usepackage[datamodel=acmdatamodel,style=acmauthoryear]{biblatex}
\addbibresource{/prj/notes/paper.bib}
\addbibresource{/prj/notes/levi.bib}
\acmJournal{CIE}\acmVolume{0}\acmNumber{0}\acmArticle{0}\acmYear{202x}\acmMonth{0}
\let\maketitlesup\maketitle
\usepackage{xpatch}
\xpatchcmd{\maketitlesup}{\@mkteasers}{}{}{}
\xpatchcmd{\maketitlesup}{\@mkabstract}{}{}{}
\begin{document}
\title{Title}
\author{Author}
\maketitle
\begin{refsection}
\section{1}
\blindtext
\appendix
\section{A}
\blindtext
\cite{myles14fieldtrace}
\printbibliography
\end{refsection}
\setcounter{page}{1}
\title{Title---Supplement}
\maketitlesup
\begin{refsection}
\appendix
\setcounter{section}{1}
\section{B}
\blindtext
\citet{shtengel17}
\printbibliography
\end{refsection}
\end{document}