我的文件中有以下 bib 条目:
@inproceedings {prekopa1980logarithmic,
title={Logarithmic concave measures and related topics},
AUTHOR = {Pr\'{e}kopa, Andr\'{a}s},
booktitle={Stochastic programming},
year={1980},
PUBLISHER = {Academic Press, London-New York}
}
我得到了未定义的控制序列错误
<argument> Pr\8
0
l.383 \bibitem[Pr\80]{prekopa1980logarithmic}
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.
我在 bib 文件中还有其他转义字符,但出于某种原因,这个特定条目有问题。如果我删除转义字符,问题就会消失。
如能提供任何关于如何解决此问题的提示,我们将不胜感激。
我的书目设置是
\bibliographystyle{alpha}
\bibliography{references}
我没有使用任何参考书目包,但我使用了我大学的论文模板,该模板附带了一些专有包。
答案1
我可以用
\begin{filecontents*}{\jobname.bib}
@inproceedings {prekopa1980logarithmic,
title={Logarithmic concave measures and related topics},
AUTHOR = {Pr\'{e}kopa, Andr\'{a}s},
booktitle={Stochastic programming},
year={1980},
PUBLISHER = {Academic Press, London-New York}
}
\end{filecontents*}
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\cite{prekopa1980logarithmic}
\bibliographystyle{alpha}
\bibliography{\jobname}
\end{document}
再次运行后pdflatex
,结果为bibtex
pdflatex
! Undefined control sequence.
<argument> Pr\8
0
问题在于作者姓名的输入方式:重音字母周围应该有额外的括号。
@inproceedings {prekopa1980logarithmic,
title={Logarithmic concave measures and related topics},
AUTHOR = {Pr{\'{e}}kopa, Andr{\'{a}}s},
booktitle={Stochastic programming},
year={1980},
PUBLISHER = {Academic Press, London-New York}
}