列举多书目

列举多书目

我对此有一个后续问题这里我发过。在下面的例子中,我使用 multibib 拆分了一个书目,其中枚举了第一个书目:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{Doe2013,
    title = {Title I},
    author = {Doe, John},
    publisher = {Void},
    year = {2013}
  }
@book{Doe2014,
    title = {Title II},
    author = {Doe, John},
    publisher = {Void},
    year = {2014}
  }
@book{Doe2015,
    title = {Title III},
    author = {Doe, John},
    publisher = {Void},
    year = {2015}
  }
\end{filecontents*}

\documentclass{article}
\usepackage{multibib}
\newcites{ll}{Subsection of A}
\usepackage{xcolor}
\usepackage{hyperref}
    \hypersetup{
        colorlinks = true,
        linkbordercolor = {white},
    allcolors=cyan
}
\usepackage{etoolbox}
\makeatletter
\patchcmd{\thebibliography}{%
  \chapter*{\bibname}\@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}}{%
  \section{References}}{}{}
\makeatother
\usepackage[authoryear,sort,round]{natbib}
\renewcommand\refname{Bibliography}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\section{PART A}
A reference to \citell{Doe2013} and \citepll{Doe2014}, and another to \citep{Doe2015}.

\makeatletter\renewcommand{\@biblabel}[1]{#1.}\makeatother%
\renewcommand{\bibsection}{\subsection{\bibname}}
\bibliographystylell{plainnat}
\bibliographyll{BibProb}

\section{PART B}
Same reference to \citell{Doe2013}, but also to \cite{Doe2015}.

\makeatletter\renewcommand{\@biblabel}[1]{\hfill}\makeatother%
\renewcommand{\bibsection}{\section{\bibname}}
\renewcommand{\refname}{Bibliography}
\bibliographystyle{plainnat}
\bibliography{BibProb}
\end{document}

得出的结果为:

输出

我在第一个参考书目中使用了以下内容来列举它:

\makeatletter\renewcommand{\@biblabel}[1]{#1.}\makeatother

尽管实际编号位于页边距中。我怎样才能使其与节和小节编号左对齐并对齐?

答案1

经过多次搜索,我发现 Biblatex 和 category notcategory 方法可以作为分离参考书目的替代方案。在以下解决方案中,我还利用了按时间倒序对年份进行排序(选项“sorting=ydnts”):

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{Doe2013,
    title = {Title I},
    author = {Doe, John},
    publisher = {Void},
    year = {2013}
  }
@book{Doe2014,
    title = {Title II},
    author = {Doe, John},
    publisher = {Void},
    year = {2014}
  }
@book{Doe2015,
    title = {Title III},
    author = {Doe, John},
    publisher = {Void},
    year = {2015}
  }
\end{filecontents*}

\documentclass{article}
\usepackage{xcolor}
\usepackage{hyperref}
    \hypersetup{
        colorlinks = true,
        linkbordercolor = {white},
    allcolors=cyan
}
\usepackage{etoolbox}

\usepackage[natbib,style=authoryear,backend=bibtex,sorting=ydnt,defernumbers=true]{biblatex}
\addbibresource{BibProb.bib}
    \DeclareBibliographyCategory{SubBib}
    \defbibenvironment{sub}
        {\begin{enumerate}}
        {\end{enumerate}}
        {\item}


\usepackage{xparse}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\section{PART A}
A reference to \citep{Doe2013}\addtocategory{SubBib}{Doe2013} and \citep{Doe2014}\addtocategory{SubBib}{Doe2014}, and another to \citep{Doe2015}.

\printbibliography[title=Subsection of A,env=sub,category=SubBib,heading=subbibnumbered]


\section{PART B}
Same reference to \citet{Doe2013}, but also to \citet{Doe2015}. 

\printbibliography[notcategory=SubBib,title=Bibliography,heading=bibnumbered]

\end{document}

得出的结果为:

在此处输入图片描述

相关内容