参考问题:_ 必须在数学模式内

参考问题:_ 必须在数学模式内

在参考文献中,我需要提到网络上有链接的白皮书,但它抱怨说:

_ must be inside math mode

代码如下:

\documentclass[runningheads,a4paper]{llncs}

    \usepackage{amssymb}
    \setcounter{tocdepth}{2}
    \usepackage{graphicx}
    \usepackage[latin1]{inputenc}
    \usepackage[english]{babel}

    \usepackage{float}
    \usepackage{booktabs}


    \usepackage{mathtools}

    \usepackage{amsmath}
    \usepackage[english]{babel}
    \usepackage{booktabs,array}
    \usepackage{lipsum}
    \usepackage{hhline}% http://ctan.org/pkg/hhline


    \setcounter{secnumdepth}{5}


    \begin{document}


\begin{thebibliography}{4}

\bibitem{jour} Kordy, B. Kordy, P. Mauw, S. Schweitzer, P: ADTool: Security Analysis with At-tack-Defense Trees (Extended Version), white paper, Accessed on: 19 Aguste 2016 on: https://www.researchgate.net/publication/236955204_ADTool_Security_Analysis_with_Attack-Defense_Trees_Extended_Version

\bibitem{jour}Kordy B, Mauw S, Melissen M, Schweitzer P. Attack–Defense Trees and Two-Player Binary Zero-Sum Extensive Form Games Are Equivalent. In: Alpcan T, Buttyán L, Baras JS, editors. Decision and Game Theory for Security: First International Conference, GameSec 2010, Berlin, Germany, November 22-23, 2010 Proceedings. Berlin, Heidelberg: Springer Berlin Heidelberg; 2010. p. 245-56

\end{thebibliography}



    \end{document}

我该如何修复这个错误?

答案1

_在数学模式下用于下标。该字符可以通过或_来设置。\_\textunderscore

示例包含_一个 URL。后者可以通过包来设置url,例如:

\documentclass[runningheads,a4paper]{llncs}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}% better hyphenation

\usepackage{url}

\begin{document}
\begin{thebibliography}{4}

\bibitem{jour1} Kordy, B.  Kordy, P.  Mauw, S.  Schweitzer, P: ADTool:
Security Analysis with Attack-Defense Trees (Extended Version), white
paper, accessed on: August 19, 2016 on:
\url{https://www.researchgate.net/publication/236955204_ADTool_Security_Analysis_with_Attack-Defense_Trees_Extended_Version}

\bibitem{jour2}Kordy B, Mauw S, Melissen M, Schweitzer P.  Attack–Defense
Trees and Two-Player Binary Zero-Sum Extensive Form Games Are Equivalent.
In: Alpcan T, Buttyán L, Baras JS, editors.  Decision and Game Theory for
Security: First International Conference, GameSec 2010, Berlin, Germany,
November 22--23, 2010 Proceedings.  Berlin, Heidelberg: Springer Berlin
Heidelberg; 2010.  Pages 245--56.

\end{thebibliography}
\end{document}

结果

如果您不想让 URL 切换字体,可以\urlstyle{same}使用以下方法:

\usepackage{url}
\urlstyle{same}

结果与 \urlstyle{same}

另外,我建议使用biblatexnatbib来设置参考书目。参考书目条目应该重新审视,它们包含许多小错误。我已尝试修复其中一些。

相关内容