chapterbib 按出现顺序排序

chapterbib 按出现顺序排序

我正在尝试使用 spbasic 样式对 Springer svmono 类的参考书目进行排序。Springer 建议使用 chapterbib 进行章节式参考书目排序。我需要按照参考文献出现的顺序对其进行排序。

其他答案建议编辑 spbasic 样式文件。我这样做了,但也没有用。事实上,您可以在以下示例中使用 unsrtnat 代替 spbasic,并且仍然可以获得按字母顺序排序的引用。

这是一个最小的工作示例(test.tex):

\documentclass[english,graybox,envcountchap,sectrefs]{svmono}

\usepackage{filecontents}
\begin{filecontents}{ref.bib}
@Article{Schauer2005,
  author    = {T. Schauer and N. O. Neg{\aa}rd and F. Previdi and K. J. Hunt and M. H. Fraser and E. Ferchland and J. Raisch},
  title     = {Online identification and nonlinear control of the electrically stimulated quadriceps muscle},
  journal   = {Control Eng. Pract.},
  year      = {2005},
  volume    = {13},
  number    = {9},
  pages     = {1207--1219},
  month     = sep,
  timestamp = {2017-07-12},
}
@Article{Seel.Werner.ea2016,
  author    = {Thomas Seel and Cordula Wener and J{\"{o}}rg Raisch and Thomas Schauer},
  title     = {Iterative Learning Control of a Drop Foot Neuroprosthesis - Generating Physiological Foot Motion in Paretic Gait by Automatic Feedback Control},
  journal   = {Control Eng. Pract.},
  year      = {2016},
  volume    = {48},
  pages     = {87--97},
  month     = mar,
  timestamp = {2017-07-12},
}
@Article{Wang.Saberi.ea2013,
  Title      = {Consensus in the network with uniform constant communication delay},
  Author     = {Xu Wang and Ali Saberi and Anton A. Stoorvogel and H{\r{a}}vard Fj{\ae}r Grip and Tao Yang},
  Journal    = {Automatica},
  Year       = {2013},
  Pages      = {2461--2467},
  Volume     = {49},
  Timestamp  = {2014.08.25}
}
\end{filecontents}

\begin{filecontents}{Chapter1.tex}
\chapter{Chapter1}
Some claim (see, e.g., \cite{Wang.Saberi.ea2013}, \cite{Seel.Werner.ea2016}, and \cite{Schauer2005})
\begin{btSect}[spbasic]{ref}
\btPrintCited
\end{btSect}
\end{filecontents}

\begin{filecontents}{Chapter2.tex}
\chapter{Chapter2}
Some claim (see, e.g., \cite{Seel.Werner.ea2016,Schauer2005,Wang.Saberi.ea2013})
\begin{btSect}[spbasic]{ref}
\btPrintCited
\end{btSect}
\end{filecontents}


\usepackage[numbers,sort&compress,sectionbib]{natbib}
\usepackage[dot]{bibtopic}
\usepackage{chapterbib}

\begin{document}

\author{Author name(s)}

\title{Book title}

\maketitle
\include{Chapter1}
\include{Chapter2}
\end{document}

当我在 Windows 上编译这个程序时,即

pdflatex test
bibtex test.1
bibtex test.2
pdflatex test
pdflatex test

我明白了

有人声称(参见 [3]、[2] 和 [1])

在第 1 章中。我期待

有人声称(参见 [1]、[2] 和 [3])

而是。如何让参考文献按出现的顺序排序?

我确信我对 spbasic 的修改是正确的,因为以下代码按预期工作(与上面相同的 ref.bib):

\begin{filecontents}{Chapter1.tex}
\chapter{Chapter1}
Some claim (see, e.g., \cite{Wang.Saberi.ea2013}, \cite{Seel.Werner.ea2016}, and \cite{Schauer2005})
\end{filecontents}

\begin{filecontents}{Chapter2.tex}
\chapter{Chapter2}
Some claim (see, e.g., \cite{Seel.Werner.ea2016,Schauer2005,Wang.Saberi.ea2013})
\end{filecontents}

\usepackage[numbers,sort&compress,sectionbib]{natbib}

\begin{document}

\author{Author name(s)}

\title{Book title}

\maketitle
\include{Chapter1}
\include{Chapter2}
\bibliographystyle{spbasic-unsrt}
\bibliography{ref}
\end{document}

也就是说,只要参考书目是全局的,我的 spbasic-unsrt.bst 就会按参考文献出现的顺序对其进行排序。一旦我添加 bibtopic 和 chapterbib 以获得按章节分类的参考书目,排序就会恢复为按字母顺序。

有什么办法可以解决这个问题吗?

答案1

好的,我明白了。bibtopic 包不支持未分类的书目。此外,bibtopic 不需要获取章节书目。Chapterbib 工作正常。以下代码产生预期的行为:

\documentclass[english,graybox,envcountchap,sectrefs]{svmono}
\usepackage{filecontents}
\begin{filecontents}{ref.bib}
@Article{Schauer2005,
  author    = {T. Schauer and N. O. Neg{\aa}rd and F. Previdi and K. J. Hunt and M. H. Fraser and E. Ferchland and J. Raisch},
  title     = {Online identification and nonlinear control of the electrically stimulated quadriceps muscle},
  journal   = {Control Eng. Pract.},
  year      = {2005},
  volume    = {13},
  number    = {9},
  pages     = {1207--1219},
  month     = sep,
  timestamp = {2017-07-12},
}
@Article{Seel.Werner.ea2016,
  author    = {Thomas Seel and Cordula Wener and J{\"{o}}rg Raisch and Thomas Schauer},
  title     = {Iterative Learning Control of a Drop Foot Neuroprosthesis - Generating Physiological Foot Motion in Paretic Gait by Automatic Feedback Control},
  journal   = {Control Eng. Pract.},
  year      = {2016},
  volume    = {48},
  pages     = {87--97},
  month     = mar,
  timestamp = {2017-07-12},
}
@Article{Wang.Saberi.ea2013,
  Title      = {Consensus in the network with uniform constant communication delay},
  Author     = {Xu Wang and Ali Saberi and Anton A. Stoorvogel and H{\r{a}}vard Fj{\ae}r Grip and Tao Yang},
  Journal    = {Automatica},
  Year       = {2013},
  Pages      = {2461--2467},
  Volume     = {49},
  Timestamp  = {2014.08.25}
}
\end{filecontents}

\begin{filecontents}{Chapter1.tex}
\chapter{Chapter1}
Some claim (see, e.g., \cite{Wang.Saberi.ea2013}, \cite{Seel.Werner.ea2016}, and \cite{Schauer2005})
\bibliographystyle{unsrtnat}
\bibliography{ref}
\end{filecontents}

\begin{filecontents}{Chapter2.tex}
\chapter{Chapter2}
Some claim (see, e.g., \cite{Seel.Werner.ea2016,Schauer2005,Wang.Saberi.ea2013})
\bibliographystyle{unsrtnat}
\bibliography{ref}
\end{filecontents}


\usepackage[numbers,sort&compress,sectionbib]{natbib}
\usepackage{chapterbib}

\begin{document}

\author{Author name(s)}

\title{Book title}

\maketitle
\include{Chapter1}
\include{Chapter2}
\end{document}

相关内容