使用 overleaf 时,natbib 的 \citep 不起作用。我的部分代码:
\documentclass[9pt, a4paper]{article}
% standard packages
\usepackage{titlesec,color,rotating,booktabs,graphicx,natbib} % standard packages
\usepackage[usenames,dvipsnames,svgnames,table]{xcolor} % extra colors
\usepackage{blindtext}
% PAGE MARGINS
\usepackage[top=2.54cm, bottom=2.54cm, left=3.17cm, right=3.17cm]{geometry}
% FONT (similar to Verdana)
\usepackage[lf]{berenis}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}
% for other fonts, and how to install them, see the LaTeX Font Catalogue:
% http://www.tug.dk/FontCatalogue/
% LINE SPACE
\linespread{1.1} % more space between lines
\setlength{\parindent}{5mm} % indenting first line paragraph
% HYPHENATION (afbreekstreepjes)
\usepackage[english]{babel} % correct hyphenation (afbreekstreepjes)
% set words that are not abbreviated correctly (expand list when necessary)
\hyphenation{catch-ment areas a-na-lyse}
% Blue headers
%\definecolor{wurblue}{cmyk}{1.0,0,0,0.58}
\usepackage{sectsty}
\allsectionsfont{\color{CornflowerBlue}}
\renewcommand{\arraystretch}{1.5}
\begin{document}
\section{Problem description}
\citep{PlasticFate}.
\\\
\renewcommand{\bibname}{References}
\bibliographystyle{elsart-harv}
\bibliography{referencesthesis}
\end{document}
我已经尝试多次重新编译所有内容,但没有任何成功。
答案1
这似乎是打字错误。我的系统上没有elsart-harv.bst
,但我有elsarticle-harv.bst
我不使用 Overleaf,所以我不知道它如何显示 bibtex 错误,但一般来说永远不会忽略编译错误(bibtex
这里是编译的辅助工具)。