コンパイル時にBiBTeXでエラーが発生する

コンパイル時にBiBTeXでエラーが発生する

参考文献に BibTeX を使用すると、いくつか問題が発生します。LaTeX では、この未定義の制御シーケンスに関するエラーが繰り返し発生します。

! Undefined control sequence.<write> ...subitem}{\@mcitecorrectmaxwidthsubitem} \end{mcitethebibliography}

\end{mcitethebibliography}

The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

私は自分の参考文献スタイルに パッケージを使用しようとしていますachemsoが、 または を使用しているため、それが問題だとは思いません。に示されているように、パッケージをplain使用chicagoしています。BibTeX を使用せずにコンパイルすると、実際にはすべて正常に実行されることに注意してください。natbibachemso

私は Mac (TeXLive) または Windows (MiKTeX) で JabRef と TeXMaker を使用しています。

どうもありがとうございます!

編集: これが私の序文です: 確かに、最初からそうすべきでした... これが私の文書の一部です:

\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[greek,francais]{babel}
\usepackage[T1]{fontenc}
\usepackage[left=2cm,right=2cm,top=3cm,bottom=3cm]{geometry}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{siunitx}
\usepackage{etex}
\usepackage{m-pictex,m-ch-en}
\usepackage{float}
\usepackage{setspace}
\usepackage{rsc}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{pdfpages}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=blue,citecolor=blue}
\usepackage[numbers]{natbib}

\begin{document}
\include{partie_1}
\bibliographystyle{achemso}
\bibliography{biblio}
\end{document}

私の「partie_1」文書では、

\cite{...}

答え1

achemso引用がない場合に使用すると問題があります。

\begin{document}

\bibliographystyle{achemso}
\bibliography{library.bib}
\end{document}

エラーが発生します。しかし、実行中

\begin{document}

\bibliographystyle{plainnat}
\bibliography{library.bib}
\end{document}

または

\begin{document}
\cite{somebody1990}
\bibliographystyle{achemso}
\bibliography{library.bib}
\end{document}

正常に動作します。

したがって、引用文献がない場合は、参考文献を削除するか、参考文献スタイルを変更してください。

答え2

私もあなたと同じ問題を抱えていました。achemso を使っていて、文書に引用があったので何が問題なのか疑問に思いました。結局、LaTeX .tex ソース ファイルの名前にスペースを入れたこと (これはとにかくよくない考えです) がこの問題の原因であることがわかりました。

\documentclass{achemso}
\usepackage[numbers]{natbib}
\author{Dylan}\email{[email protected]}
\affiliation{Making the Band, Detroit, MI USA}
\title{Tapes spit hot fire}
\begin{document}
Look, this is not why I got into the music business to be a sugar cookie
getta.\cite{berndt1988high}
\bibliographystyle{achemso} 
\bibliography{MyPubBib}
\end{document}

MyPubBib.bibを

@article{berndt1988high,
Author = {Berndt, H},
Journal = {Fresenius' Zeitschrift f{\"u}r analytische Chemie},
Number = {3-4},
Pages = {321--323},
Publisher = {Springer},
Title = {High pressure nebulization: a new way of sample introduction for atomic spectroscopy},
Volume = {331},
Year = {1988}}

として保存するtest1.texとコンパイルは正常に行われますが、としてコンパイルするとエラーがtest 1.tex発生します。\mcite...

関連情報