我有以下乳胶样品:
\begin{filecontents}{\jobname.bib}
@InProceedings{ttest,
author="H{\"u}bner, Jomi Fred
and Sichman, Jaime Sim{\~a}o
and Boissier, Olivier",
editor="Boissier, Olivier
and Padget, Julian
and Dignum, Virginia
and Lindemann, Gabriela
and Matson, Eric
and Ossowski, Sascha
and Sichman, Jaime Sim{\~a}o
and V{\'a}zquez-Salceda, Javier",
title="{\$}{\backslash}mathcal{\{}S-M{\}}oise^{\{}+{\}}{\$}: A Middleware for Developing Organised Multi-agent Systems",
booktitle="Coordination, Organizations, Institutions, and Norms in Multi-Agent Systems",
year="2006",
publisher="Springer Berlin Heidelberg",
address="Berlin, Heidelberg",
pages="64--77",
isbn="978-3-540-35176-4"
}
\end{filecontents}
\documentclass{article}
\begin{document}
something about \cite{ttest} and also.
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
当我使用 pdflatex 进行编译时,出现此错误:缺少 $ 插入。错误位于 bbl 文件中
提前谢谢。
答案1
您从中获取此信息的期刊网站具有过于激进的转义功能。title
条目应该是
title="{$\mathcal{S-M}oise^{+}$}: A Middleware foar Developing Organised Multi-agent Systems",
我会使用filecontents
包,因为标准filecontents
环境永远不会覆盖首次创建的生成文件。不知道这一点的用户会感到困惑。
filecontents
以下是带有该包的更正后的 MWE
\documentclass{article}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@InProceedings{ttest,
author="H{\"u}bner, Jomi Fred
and Sichman, Jaime Sim{\~a}o
and Boissier, Olivier",
editor="Boissier, Olivier
and Padget, Julian
and Dignum, Virginia
and Lindemann, Gabriela
and Matson, Eric
and Ossowski, Sascha
and Sichman, Jaime Sim{\~a}o
and V{\'a}zquez-Salceda, Javier",
title="{$\mathcal{S-M}oise^{+}$}: A Middleware foar Developing Organised Multi-agent Systems",
booktitle="Coordination, Organizations, Institutions, and Norms in Multi-Agent Systems",
year="2006",
publisher="Springer Berlin Heidelberg",
address="Berlin, Heidelberg",
pages="64--77",
isbn="978-3-540-35176-4"
}
\end{filecontents*}
\begin{document}
something about \cite{ttest} and also.
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}
请参阅手册以了解和filecontents
之间的区别filecontents
filecontents*