合并类别不对引用进行排序

合并类别不对引用进行排序

下一段代码中有三个文件;这三个文件应放在同一个文件夹中。主文档是 bibProblem(组合文档类),导入文档是 inputDoc1a(文章类),bib 文件是 BibTeX 书目。我使用带有排序选项的 cite 包。(您必须使用文章(inputDoc1a)为文章创建书目,然后格式化主文档以构建书目。)请注意,两个引文在文章中显示为 [1,2] 和 [1,2],在主文档中显示为 [1,2] 和 [2,1]。为什么当我使用主文档格式化时,引文没有排序?

% bibProblem
\documentclass[book]{combine}
\usepackage{amsmath,amssymb,amsfonts,amsthm,times}
\usepackage{filecontents}
\usepackage{appendix}
\usepackage{blindtext}
\usepackage[sort]{cite}

% The main document
\begin{document}
\title{The collection}
\author{A. N. Editor}
\date{\today}
\maketitle

\chapter{First chapter}
\section{Introduction}
\ldots
\begin{papers}[]
    \coltoctitle{First article}\label{coltitle}
    \coltocauthor{Author of first article}
    \import{inputDoc1a}
\end{papers}
\bibliographystyle{abbrv}
\bibliography{bibliography}
\end{document} 

% inputDoc1a
\documentclass{article}
\usepackage{amsmath,amssymb,amsfonts,amsthm,times}
\usepackage{appendix}
\usepackage{blindtext}
\usepackage[sort]{cite}
\makeatletter
\@ifclassloaded{combine}
  {\let\@begindocumenthook\@empty
    }
  {}
\makeatother
\begin{document}
\title{First article}
\author{Author of first article}
\maketitle
\section{first section}
This is a problem.\index{problem}
\cite{article-minimal, article-full}
and notice that the order is reversed in the ``book.''
\cite{article-full, article-minimal}\\
\blindtext[1]
\section{Second section}
\blindtext[1-2]
\bibliographystyle{abbrv}
\bibliography{bibliography}
\appendix%\renewcommand{\thesection}{\Alph{section}}
\section{An appendix}
\blindtext[1]
\end{document}

% bibliography
@ARTICLE{article-minimal,
   author = {Thomas Price},
   title = {My article},
   journal = {Math fun facts},
   year = 1986,
}

@ARTICLE{article-full,
   author = {D.P. Story},
   title = {A better article},
   journal = {Math research facts},
   year = 1986,
   volume = 41,
   number = 7,
   pages = "73+",
   month = jul,
   note = "This is a full ARTICLE entry",
}

相关内容