
다음 라텍스 샘플이 있습니다.
\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*