我的老师给了我thebibliography
代码,我复制了它:
\documentclass[12 pt,handout,notheorems, serif]{beamer}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape]
\usetheme{Boadilla}
\begin{document}
\underline{References}:
\begin{thebibliography}{9}
\setbeamertemplate{bibliography item}[book]
\bibitem \textit{Control Systems Engineering}, By Norman S. Nise, $7^{th}$ edition, John Wiley \& Sons, 2015.
\bibitem \textit{Modern Control Systems}, By Richard C. Dorf and Robert H. Bishop, $12^{th}$ edition, Pearson Education, Inc., 2011.
\end{thebibliography}
\end{document}
但是,我收到了这个错误信息:
Missing \endcsname inserted. ...\textit }{\hyperlink {beamerbib\textit }{1}}
他使用 TexShop,我使用 TeXstudio。可能存在什么问题?
答案1
该宏\bibitem
需要一个用作标识符的参数,并且可以在中使用\cite
。因此你需要类似
\begin{thebibliography}{9}
\setbeamertemplate{bibliography item}[book]
\bibitem{A} \textit{Control Systems Engineering}, By Norman S. Nise, $7^{th}$ edition, John Wiley \& Sons, 2015.
\bibitem{B} \textit{Modern Control Systems}, By Richard C. Dorf and Robert H. Bishop, $12^{th}$ edition, Pearson Education, Inc., 2011.
\end{thebibliography}
对于 MWE 来说,完成之后可能看起来像
\documentclass[12 pt,handout,notheorems, serif]{beamer}
\usepackage{pgfpages}
\pgfpagesuselayout{resize to}[a4paper,landscape]
\usetheme{Boadilla}
\begin{document}
\begin{frame}[t]
\frametitle{References}
\begin{thebibliography}{9}
\setbeamertemplate{bibliography item}[book]
\bibitem{A} \textit{Control Systems Engineering}, By Norman S. Nise, $7^{th}$ edition, John Wiley \& Sons, 2015.
\bibitem{B} \textit{Modern Control Systems}, By Richard C. Dorf and Robert H. Bishop, $12^{th}$ edition, Pearson Education, Inc., 2011.
\end{thebibliography}
\end{frame}
\end{document}