bib里条目如下
@incollection{Branden_RZ,
AUTHOR = {Br\"{a}nd\'{e}n, Petter},
TITLE = {Unimodality, log-concavity, real-rootedness and beyond},
BOOKTITLE = {Handbook of enumerative combinatorics},
SERIES = {Discrete Math. Appl. (Boca Raton)},
PAGES = {437--483},
PUBLISHER = {CRC Press, Boca Raton, FL},
YEAR = {2015},
MRCLASS = {05Axx (05D40 05E10)},
MRNUMBER = {3409348},
}
正文如下
\cite[Branden_RZ]
\nocite{1}
\bibliographystyle{alpha}
\bibliography{ref}
然后编译报错
Undefined control sequence. bibitem[Br15]{Branden_RZ}
想问一下怎么解决呢
提问需要提供完整 MWE,
代码有两个问题.
\cite
缺少必选参数?, 依稀记得应该用 \cite{}
而不是 \cite[]
?.bib
文件中有 LaTeX 命令 或者 数学公式 的话需要用 {}
包裹起来.以下是修复后的 MWE
\documentclass{article}
\begin{filecontents*}[overwrite]{ref.bib}
@incollection{Branden_RZ,
AUTHOR = {Br{\"a}nd{\'e}n, Petter},
TITLE = {Unimodality, log-concavity, real-rootedness and beyond},
BOOKTITLE = {Handbook of enumerative combinatorics},
SERIES = {Discrete Math. Appl. (Boca Raton)},
PAGES = {437--483},
PUBLISHER = {CRC Press, Boca Raton, FL},
YEAR = {2015},
MRCLASS = {05Axx (05D40 05E10)},
MRNUMBER = {3409348},
}
\end{filecontents*}
\begin{document}
\cite{Branden_RZ}
\bibliographystyle{alpha}
\bibliography{ref}
\end{document}
谢谢回答!