我在使用 Overleaf 打印特定参考文献的参考书目时遇到了问题,具体文档如下
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{Shared Resources}
\begin{document}
\maketitle
\section{Introduction}
\cite{chalkUniversalShapeReplicators2017}
\bibliographystyle{plainurl}
\bibliography{bibs}
\end{document}
中的引用bibs.bib
如下:
@inproceedings{chalkUniversalShapeReplicators2017,
title = {Universal Shape Replicators via {{Self-Assembly}} with {{Attractive}} and {{Repulsive Forces}}},
booktitle = {Proceedings of the {{Twenty-Eighth Annual ACM-SIAM Symposium}} on {{Discrete Algorithms}}},
author = {Chalk, Cameron and Demaine, Erik D. and Demaine, Martin L. and Martinez, Eric and Schweller, Robert and Vega, Luis and Wylie, Tim},
year = {2017},
month = jan,
pages = {225--238},
publisher = {{Society for Industrial and Applied Mathematics}},
isbn = {978-1-61197-478-2},
doi = {10.1137/1.9781611974782.15},
langid = {english}
}
我收到以下错误代码:
! Undefined control sequence.
l.18 {\path
{doi:10.1137/1.9781611974782.15}}.
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
但是当我删除 DOI 时,错误不再出现。我怎样才能将 DOI 保留在参考书目中,并防止错误再次出现?
解决方案
感谢@moewe 的修复,\usepackage{hyperref}
解决了所有问题