我使用此代码,当我总是引用包含 _ 的网页时,会出现错误,并提示我缺少插入的 $。我该如何消除此问题?
\begin{thebibliography}{9}
\bibitem{Introduction to CFT}
Blumenhagen, R., Plauschinn, E., Introduction to Conformal Field Theory: With Applications
to String Theory, Lect. Notes Phys. 779 (Springer, Berlin Heidelberg 2009), DOI 10.1007
978-3-642-00450-6
\\\texttt{http://stringworld.ru/files/Blumenhagen_R._Plauschinn_E._Introduction_to_conformal_field_theory_with_applications_to_string_theory.pdf}`
\end{thebibliography}
答案1
您不应将 URL 包含在\texttt
指令中。相反,请确保加载网址包,可能带有选项hyphens
,然后写入\url{<long url string here>}
。
\documentclass{article}
\usepackage{url}
\begin{document}
\begin{thebibliography}{9}
\bibitem{Introduction to CFT}
Blumenhagen, R., Plauschinn, E., Introduction to Conformal Field Theory:
With Applications to String Theory, Lect.\ Notes Phys.\ 779 (Springer,
Berlin and Heidelberg 2009), DOI 10.1007, ISBN 978-3-642-00450-6\linebreak
\url{http://stringworld.ru/files/Blumenhagen_R._Plauschinn_E._Introduction_to_conformal_field_theory_with_applications_to_string_theory.pdf}
\end{thebibliography}
\end{document}