书目文件失败

书目文件失败

我正在为期刊撰写一篇论文,编译后书目文件出现错误。我使用的是 TexShop 2.47 版,并选择了 XeLeTex 选项进行编译。当我使用 bibtex 编译 bib 文件时,生成的 bib 文件如下所示

\begin{thebibliography}{10}

\bibitem{NewOperatorsDGA1999}
Bruno Bosacchi, David~B. Fogel, and James~C. Bezdek, editors.
\newblock {\em {Investigation of new operators for a diploid genetic
algorithm}}, 1999.

... more bibitems

\end{thebibliography}

我收到错误:

./IJICC_submission.bbl:3: LaTeX Error: Something's wrong--perhaps a missing \item
See The Latex manual or LaTeX Companion for Explanation.
Type H <return> for immediate help.
...

l.3 {NewOperatorsDGA1999}

如果我删除第一个,\bibitem错误就会移动到下一个 \bibitem

但是,如果我删除{10},那么文件现在看起来像这样:

\begin{thebibliography}

\bibitem{NewOperatorsDGA1999}
Bruno Bosacchi, David~B. Fogel, and James~C. Bezdek, editors.
\newblock {\em {Investigation of new operators for a diploid genetic
algorithm}}, 1999.

... more bibitems

\end{thebibliography}

文件编译得很好,但我没有在参考书目上找到编号……其中一位审阅者说我们需要在参考书目上找到编号

cls 文件中的参考书目部分如下所示:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\let\@internalcite\cite
\def\cite{\def\@citeseppen{-1000}%
\def\@cite##1##2{[{##1\if@tempswa , ##2\fi}]}%
    \def\citeauthoryear##1##2{##1 (##2)}\@internalcite}
\def\shortcite{\def\@citeseppen{1000}%
    \def\@cite##1##2{[{##1\if@tempswa , ##2\fi}]}%
\def\citeauthoryear##1##2{##2}\@internalcite}
%
\def\citeauthor#1{\def\@citeseppen{1000}%
    \def\@cite##1##2{{##1\if@tempswa , ##2\fi}}%
\def\citeauthoryear##1##2{##1}\@citedata{#1}}
%
\def\citeyear#1{\def\@citeseppen{1000}%
\def\@cite##1##2{{##1\if@tempswa , ##2\fi}}%
\def\citeauthoryear##1##2{##2}\@citedata{#1}}
%
\def\@citedata#1{\@tempswafalse%
    \if@filesw\immediate\write\@auxout{\string\citation{#1}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#1\do
    {\@citea\def\@citea{,\penalty\@citeseppen\ }\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
{\csname b@\@citeb\endcsname}}}{}}
%
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string        
\citation{#2}}\fi
 \let\@citea\@empty
  \@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{;\penalty\@citeseppen\ }%
     \def\@tempa##1##2\@nil{\edef\@citeb{\if##1\space##2\else##1##2\fi}}%
     \expandafter\@tempa\@citeb\@nil
     \@ifundefined{b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
     {\csname b@\@citeb\endcsname}}}{#1}}
%\def\@biblabel#1{\def\citeauthoryear##1##2{##1, ##2}}
\def\@biblabel#1{}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% 
\def\@refcitex[#1]#2{\if@filesw\immediate\write\@auxout 
    {\string\citation{#2}}\fi 
\def\@citea{}\@refcite{\@for\@citeb:=#2\do 
    {\@citea\def\@citea{, }\@ifundefined 
    {b@\@citeb}{{\bf ?}\@warning 
    {Citation `\@citeb' on page \thepage \space undefined}} 
    \hbox{\csname b@\@citeb\endcsname}}}{#1}} 
 \def\@refcite#1#2{{#1\if@tempswa\typeout 
        {Emerald warning: optional citation argument 
    ignored: `#2'} \fi}} 
 \def\refcite{\@ifnextchar[{\@tempswatrue
    \@refcitex}{\@tempswafalse\@refcitex[]}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
\newdimen\bibindent
\bibindent=1.5em
\newenvironment{thebibliography}%[1]
{\section*{\bibname}\bibfont%
      \list{}%
           {\leftmargin\parindent
            \itemindent-\parindent
        \itemsep0pt\parsep0pt
            \usecounter{enumiv}%
            \renewcommand\theenumiv{\arabic{enumiv}}}%
      \sloppy\clubpenalty4000\widowpenalty4000%
      \sfcode`\.=\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\newcommand\newblock{}
%

该文件如下所示:

\documentclass{ijicc}

\usepackage{graphics}
\usepackage{epsfig}
\usepackage{times}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{hyperref}
\usepackage{amsfonts}
\usepackage{color}
\usepackage{lipsum}
\usepackage{wrapfig}
%\usepackage{subfig}


\newcommand{\figref}[1]{Figure \ref{#1}}
\newcommand{\secref}[1]{Section \ref{#1}}
\newcommand{\tabref}[1]{Table \ref{#1}}


\begin{document}
... the document

我可以做些什么来解决这个问题

编辑:添加了来自 ijicc.cls 的参考书目描述,不确定还需要什么其他信息

答案1

以下几行显示thebibliography此类的环境不接受任何参数:

\newenvironment{thebibliography}%[1]
{\section*{\bibname}\bibfont%

标准类会有类似的东西

\newenvironment{thebibliography}[1]

对 的注释[1]意味着所创建的环境不能接受任何参数。因此,您会收到错误,因为您试图将一个不接受参数的环境传递给该环境。因此,它会尝试将该参数的内容作为环境内容的一部分来读取。但是书目是一个列表,应该以 开头\bibitem。由于10没有,您会收到错误。

也许该类不适用于 BibTeX?

相关内容