其他分享
首页 > 其他分享> > Latex 参考文献bib错误 Undefined control sequence. \newblock

Latex 参考文献bib错误 Undefined control sequence. \newblock

作者:互联网

问题描述:

因为一个期刊的latex模板要求使用bibitem添加参考文献,即:

\begin{thebibliography}{99}


\bibitem{Author2009}
Author, F.A.; Other, A.N.: Title of a book, \textit{Cambridge University Press}, Cambridge, 2009.

\bibitem{Author2010}
Author, F.A.; Other, A.N.; Bloggs, J.O.E.: Title of a conference paper, in \textit{Name of conference}, Location, 2010.


\end{thebibliography}

但之前使用的一直是bibtex.

因此,需要先将之前准备好的.bib文件转换为.bbl文件,之后再通过\input{.bbl文件}的方法满足期刊使用bibitem的要求。

然而,在文件后添加如下代码

\bibliographystyle{unsrt}
\bibliography{egbib}

出现报错:

! Undefined control sequence.
l.6 \newblock

其中的\newblock来自于.bbl文件。

 

解决方法:

参考:https://malleshamdasari.wordpress.com/2018/05/01/latex-error-newblock-undefined/

只需在\bibliographystyle{}前添加代码:

\newcommand{\newblock}{}

即可

标签:control,Latex,bbl,Undefined,文件,bibitem,newblock,添加
来源: https://blog.csdn.net/qazwsxrx/article/details/112138775