错误:参考书目与作者年份引文不兼容

错误:参考书目与作者年份引文不兼容

我知道这个问题已经被问过多次了,但我无法得到适合我的问题的解决方案。如果我删除参考书目,程序运行良好,但添加它时,我得到下面的错误。我该怎么做才能解决这个问题?此外,当我只以 Sage Vancouver 样式输入参考书目时,就会出现这个错误。如果我改为 Sage Harvard 样式,错误就会消失。但我只需要 Sage-Vancouver 样式的参考书目。

错误

Overfull \vbox (2.93578pt too high) has occurred while \output is active []
Package natbib Error: Bibliography not compatible with author-year citations. ...mand\NAT@force@numbers{}\NAT@force@numbers

Latex 程序:

% sage_latex_guidelines.tex V1.10, 24 June 2016

\documentclass[Afour,sageh,times]{sagej}

\usepackage{moreverb,url}

\usepackage[colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref}

\newcommand\BibTeX{{\rmfamily B\kern-.05em \textsc{i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\def\volumeyear{2016}

\begin{document}

\runninghead{Smith and Wittkopf}

%\title{A demonstration of the \LaTeXe\ class file for
%\itshape{SAGE Publications}}
\title{ABCXYZ}
\author{Al \affilnum{1} and HenD\affilnum{2}}

\affiliation{\affilnum{1}Sunrise Setting Ltd, UK\\
\affilnum{2}SAGE Publications Ltd, UK}

\corrauth{XUZABC}


\begin{abstract}

\end{abstract}

\keywords{abc, def, hja }

\maketitle

\section{Introduction}


\subsection{References}


\begin{acks}
This class file was developed by Sunrise Setting Ltd,
Brixham, Devon, UK.\\
Website: \url{http://www.sunrise-setting.co.uk}
\end{acks}


\begin{thebibliography}{99}

    \bibitem[1]{R1}
    2. Sikander A, Prasad R. Soft Computing Approach for Model Order Reduction of Linear Time Invariant Systems. \textit{Circuits, Systems, and Signal Processing}. 2015;34(11):3471-3487.

    \bibitem[2]{R2}
    Smamash, Y. (1981). Truncation method of reduction: a viable alternative. Electronics Letters, 17(2), p.97.


\end{thebibliography}

\end{document}


\end{document}

答案1

文档sagej类加载natbib引文管理包。

几乎可以肯定的是,期刊的预期工作流程是作者使用 BibTeX,这样thebibliography环境的内容就由软件生成,使用与 兼容的参考书目样式natbib。(幸运的是,许多参考书目样式与 兼容natbib。)

但是,看起来您正在手动构建参考书目。如果是这样的话,您不仅必须提供书目项目的格式,还必须确保可选参数的内容(方\bibitem括号内的材料)满足natbib期望。正如您现在所猜到的,

\bibitem[1]{R1} ...
\bibitem[2]{R2} ...

不能满足这些期望。你应该这样写:

\bibitem[Sikander and Prasad(2015)]{R1}  ...
\bibitem[Smamash(1981)]{R2} ...

(观察:没有空间(在名称和年份之间用括号括起来。)

看起来您更喜欢生成数字引用标注,而不是作者年份样式的引用标注。要实现此目标,只需提供说明

\setcitestyle{numbers}

在序言中。如果将来某个时候您决定改用作者年份样式的引文标注,则只需将前面的指令更改为\setcitestyle{authoryear}

不过,从中长期来看,您可能需要学习如何使用 BibTeX(或其他工具,例如biblatex)来生成格式化的参考书目以及适当形成的引文标注。与完全手动构建参考书目和引文标注的缓慢且容易出错的过程相比,您会惊讶地发现您可以节省多少时间。


完整的 MWE:

\documentclass[Afour,sageh,times]{sagej}

\setcitestyle{numbers} % <--- this is new

\usepackage{moreverb,url}

\usepackage[colorlinks,bookmarksopen,bookmarksnumbered,
    citecolor=red,urlcolor=red]{hyperref}

\newcommand\BibTeX{{\rmfamily B\kern-.05em \textsc{i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\def\volumeyear{2016}

\begin{document}

\runninghead{Smith and Wittkopf}

%\title{A demonstration of the \LaTeXe\ class file for
%\itshape{SAGE Publications}}
\title{ABCXYZ}
\author{Al \affilnum{1} and HenD\affilnum{2}}
\affiliation{\affilnum{1}Sunrise Setting Ltd, UK\\
\affilnum{2}SAGE Publications Ltd, UK}
\corrauth{XUZABC}

\begin{abstract}
\end{abstract}
\keywords{abc, def, hja }

\maketitle

\cite{R1}, \cite{R2}

\begin{thebibliography}{99}

\bibitem[Sikander and Prasad(2015)]{R1}
    Sikander A, Prasad R. (2015). Soft Computing Approach 
    for Model Order Reduction of Linear Time Invariant 
    Systems. \textit{Circuits, Systems, and Signal 
    Processing}. 2015;34(11):3471--3487.

\bibitem[Smamash(1981)]{R2}
    Smamash, Y. (1981). Truncation method of reduction: A 
    viable alternative. Electronics Letters, 17(2), p.~97.

\end{thebibliography}
\end{document}

答案2

对于author-year引用,我们需要按照包文档中描述的正确方式标记参考书目条目natbib。请参考以下标签:

\documentclass{book}

\usepackage{moreverb,url}

\usepackage[authoryear]{natbib}
\usepackage[colorlinks,bookmarksopen,bookmarksnumbered,citecolor=red,urlcolor=red]{hyperref}

\newcommand\BibTeX{{\rmfamily B\kern-.05em \textsc{i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\begin{document}

%\title{A demonstration of the \LaTeXe\ class file for
%\itshape{SAGE Publications}}
\title{ABCXYZ}

\maketitle

\section{Introduction}


\subsection{References}



\begin{thebibliography}{}

\bibitem[\protect\citeauthoryear{Sikander, Prasad}{2015}]{R1}
    2. Sikander A, Prasad R. Soft Computing Approach for Model Order Reduction of Linear Time Invariant Systems. \textit{Circuits, Systems, and Signal Processing}. 2015;34(11):3471-3487.

    \bibitem[\protect\citeauthoryear{Smamash}{1981}]{R2}
    Smamash, Y. (1981). Truncation method of reduction: a viable alternative. Electronics Letters, 17(2), p.97.


\end{thebibliography}

\end{document}

我使用的是标准book类文件,而您使用的是自定义模板sagej,请按照它并确认是否存在错误。

相关内容