使用 backleaf 時,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
這裡是編譯的輔助工具)。