如何将 3 岁以上的作者数量减少为“第一作者等,(年份)”?

如何将 3 岁以上的作者数量减少为“第一作者等,(年份)”?
\documentclass{UnimasThesis}
\usepackage{graphicx}
\usepackage[labelfont=bf]{caption}
\captionsetup{labelfont=bf}
\usepackage{pdflscape}
\usepackage{adjustbox}
\usepackage{dcolumn}
\usepackage{booktabs}
\usepackage{amsmath}
\usepackage{cases}
\usepackage[os=win]{menukeys}
\usepackage[paper=a4paper]{geometry}
\usepackage{multirow}
%\usepackage{enumerate}


\usepackage{listings}
\lstset{language=[LaTeX]TeX,columns=fullflexible,
basicstyle=\ttfamily,texcsstyle=*\bfseries\color{NavyBlue},
commentstyle=\itshape\color{PaleVioletRed4},
frame=single,framesep=6pt,
framexleftmargin=6pt,framexrightmargin=6pt,
xleftmargin=12pt,xrightmargin=12pt,
breaklines=true,breakatwhitespace=true}


\title{AUTOMATIC SEGMENTATION OF CARDIAC MAGNETIC RESONANCE IMAGES FOR OEDEMA ASSESSMENT}
\author{Amajd Khan}
\faculty{Faculty of Computer Science and Information Technology }
\facultyColour{6c7a8c} %% 6-digit RGB hexadecimal code 
\submissionyear{2017}
\degreetype{Doctor of Philosophy\\(Computer Science)}

% If using APA bibliography style

\usepackage[natbibapa]{apacite}
\bibliographystyle{plainnat}
%\usepackage{natbib}
%\bibliographystyle{apalike}

\makeatother

\begin{document}
\maketitle

\frontmatter



\mainmatter
% Each chapter from a separate file
\input{chap1-Introduction}

% references are listed in refs.bib
\bibliography{refs}

\end{document}

%%%参考

@article{rao:2014,
    title={Causes of Sudden Cardiac Death on Autopsy Findings; a Four-Year Report},
    author={Rao, Dinesh., and Sood, Divya., and Pathak, P., and Dongre, Sudhir, D},
    journal={Journal  of Emergency-An Academic Emergency Medicine},
    volume={2},
    number={1},
    pages={12-17},
    year={2014}
}

%%%i 使用第 1 章文件(示例

这是我的引文 Rao et al.,(2014)。(需要像这样显示

答案1

apacite软件包实现了适当的 APA 样式书目,要求在第一次提及作者列表时提供完整引文,最多 7 位作者。由于您使用该选项加载软件包[natbibapa],因此您可以在序言中指定要显示为“简短引文”的 bib 键列表。因此,您可以按如下方式操作:

\documentclass{article}
\usepackage[natbibapa]{apacite}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@article{Chandra:81,
    author = {Ashok K. Chandra and Dexter C. Kozen and Larry J. Stockmeyer},
    year = "1981",
    title = {Alternation},
    journal = {Journal of the Association for Computing Machinery},
    volume = "28",
    number = "1",
    pages = "114--133"
}


@article{rao:2014,
    title={Causes of Sudden Cardiac Death on Autopsy Findings; a Four-Year Report},
    author={Rao, Dinesh and Sood, Divya and Pathak, P. and Dongre, Sudhir, D},
    journal={Journal  of Emergency-An Academic Emergency Medicine},
    volume={2},
    number={1},
    pages={12-17},
    year={2014}
}
\end{filecontents*}
\shortcites{rao:2014} % list all the entries you want to have short cites
\begin{document}
\citet{Chandra:81} will show up long on first mention and short in subsequent mention: \citet{Chandra:81} but \citet{rao:2014} will show up short even on first mention because it was listed in the \verb|\shortcites| command.

\bibliographystyle{apacite}
\bibliography{\jobname}

\end{document}

代码输出

答案2

因为您已经加载了apacite引文管理包,所以您得到的正是它被编程来执行的行为:它会生成一个引文标注,其中包含以下列表:所有作者(最多 7 个,即)第一次引用给定的条目,并从第二次开始截断列表(为第一作者等)。

如果你不想看到这种行为,加载apacite包。相反——尤其是考虑到您似乎喜欢plainnat参考书目样式——您应该加载包natbib。当然,您绝对必须从条目字段中清除多余的逗号author

在此处输入图片描述

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@article{rao:2014,
    title   = {Causes of Sudden Cardiac Death on Autopsy Findings; a Four-Year Report},
    author  = {Rao, Dinesh and Sood, Divya and Pathak, P. and Dongre, Sudhir.D},
    journal = {Emergency},
    volume  = {2},
    number  = {1},
    pages   = {12-17},
    year    = {2014}
}
\end{filecontents}

\documentclass{article}
\usepackage[paper=a4paper]{geometry}
\usepackage[authoryear,round]{natbib}
\bibliographystyle{plainnat}

\begin{document}
\citet{rao:2014}, \citep{rao:2014}
\bibliography{mybib}
\end{document}

答案3

最好的方法是手动复制参考文献并粘贴到 \shortcites,例如\shortcites{rao:2014}

相关内容