我面临的问题是无法获取 X2017a、X2017b 类型的作者年份格式引用,相反,即使是同一作者在同一年份撰写的两篇不同的文章,我也会在 pdf 文件中获取 X2017 输出。
我在用
\documentclass[10pt]{article}
\usepackage{CormorantGaramond}
\usepackage[english]{babel}
\usepackage{calligra}
\usepackage[T2A, T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage[authoryear]{natbib}
\bibliography{ref}
\bibliographystyle{apalike}
你可以尝试
@article{Korda2018a,
title = {Linear predictors for nonlinear dynamical systems: {K}oopman operator meets model predictive control},
journal = {Automatica},
volume = {93},
pages = {149-160},
year = {2018},
issn = {0005-1098},
doi = {https://doi.org/10.1016/j.automatica.2018.03.046},
url = {https://www.sciencedirect.com/science/article/pii/S000510981830133X},
author = {Milan Korda and Igor Mezić}
}
@article{Korda2018b,
title={Learning {K}oopman eigenfunctions for prediction and control: the transient case},
author={Korda, Milan and Mezic, Igor},
journal={arXiv preprint arXiv:1810.08733},
year={2018}
}
非常感谢您的帮助。
如果你想查看我使用的全套使用包:
\documentclass[10pt]{article}
\usepackage{CormorantGaramond}
\usepackage[english]{babel}
\usepackage{calligra}
\usepackage[T2A, T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp}
\usepackage[authoryear]{natbib}
\let\plll\lll
\let\lll\relax
\usepackage[left=4cm, right=10cm, top=4cm]{geometry}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage[light,math]{iwona}
\usepackage{url}
\usepackage[bottom]{footmisc}
\usepackage{environ}
\usepackage{nicefrac}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{nccmath}
\usepackage{multirow}
\usepackage{bbm}
\usepackage{comment}
\usepackage{lipsum}
\usepackage{microtype}
\usepackage{placeins}
\usepackage{xspace}
\usepackage{tocbibind}
\usepackage{graphicx}
\usepackage{float}
\usepackage{array}
\usepackage{tabularx}
\usepackage{subfigure}
\usepackage{xcolor}
\usepackage{color}
\usepackage{hyperref}
\usepackage{acronym}
\usepackage{fullpage}
\usepackage[normalem]{ulem}
\usepackage{makeidx}
\usepackage{wrapfig}
\newtheorem{theorem}{Theorem}
%\theoremstyle{definition}
\newtheorem{definition}{Definition}
\newtheorem{assumption}{Assumption}
\newtheorem{remark}{Remark}
\newtheorem{proposition}{Proposition}
\newtheorem{lemma}{Lemma}
\newtheorem{example}{Example}
\newtheorem{corollary}{Corollary}
\makeatletter
\let\mytagform@=\tagform@
\def\tagform@#1{\maketag@@@{\color{green!55!black}(#1)}}
\makeatother
\newcommand\myatop[2]{\genfrac{}{}{0pt}{}{#1\hfill}{#2\hfill}}
\newcommand{\eqnumcolor}{\color{green!55!black}}
\definecolor{myblue}{RGB}{20, 180, 150}
\renewcommand*{\acsfont}[1]{\textcolor{myblue}{#1}}
\hypersetup{colorlinks=true,linkcolor=myblue,urlcolor=myblue,citecolor=myblue,}
\makeindex
\parindent0mm
\setlength{\parskip}{\baselineskip}%
\setlength{\parindent}{0pt}%