編譯時 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包用於我的參考書目風格,但我認為這不是問題,因為我有相同的 usingplainchicago... 我正在使用natbib所示的包achemso。請注意,當我在沒有 BibTeX 的情況下進行編譯時,實際上一切都運作良好。

我在 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...錯誤

相關內容