
次のラテックスサンプルがあります:
\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
標準の env では、生成されたファイルが最初に作成されると、そのファイルは上書きされないため、パッケージを使用します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*