
У меня есть следующий образец латекса:
\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
env никогда не перезапишет сгенерированный файл после его первого создания. Сбивает с толку пользователей, которые этого не знают.
Вот исправленный MWE с filecontents
пакетом
\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*