注:本文为 “LaTeX Error: Something’s wrong–perhaps a missing \item” 各种处理方式。
未整理去重。
LaTeX Error: Something’s wrong–perhaps a missing \item.
moonatshu 于 2016-08-22 16:01:15 发布
最近要开始写一篇 Journal paper, 于是下载了 IEEE 上的模板,但是模板上的参考文献与正文是在一个界面上的, 像这样:
\begin {thebibliography}{1}
\bibitem {IEEEhowto:kopka}
H.~Kopka and P.~W. Daly, \emph {A Guide to \LaTeX}, 3rd~ed.\hskip 1em plus
0.5em minus 0.4em\relax Harlow, England: Addison-Wesley, 1999.
\end {thebibliography}
如果要将 reference 与正文分开,需要换一个方式:
\bibliographystyle {IEEEtran}
\bibliography {ref/ref}
这里需要指明文件正确的路径:在 ref 文件夹下的 ref.bib 文件
编译会出现这个问题:
! LaTeX Error: Something’s wrong–perhaps a missing \item.
解决方法:
This an example\cite {paper1}.
-
确保在 .tex 文件的正确位置引用了至少一篇参考文献, 如上;
-
确保 .bib 文件中有上面引用的这篇 paper1;
-
删除 .bbl 文件,重新编译即可。
需要注意的是,如果之前编译出错,现在即使按上面的步骤 1 和 2 都改正确, 然后重新编译还是会出错,这时候只需要做一下第三步就可以了。一旦编译成功后,每次重新编译就无需做第三步。
解决问题:Something’s wrong–perhaps a missing \item. \end {thebibliography}
123qwer456 于 2017-09-22 11:31:25 发布
有时候我们用 latex 编译论文的时候,会遇到和 bib 相关的问题,如下所示:
Something’s wrong–perhaps a missing \item. \end {thebibliography}
同样的 latex 文档,在 windows 下编译没问题,但放到 mac 上就编译不能通过。
根本问题在于 *.tex 所在目录下的 *.bbl 文件。这个文件在 windows 和 mac 上的处理方式不同。当文章中没有引用任何文献的时候,windows 可以编译通过,但是 mac 就不能编译通过。
所以解决的办法是:
(1)先关闭 *.tex 文件,然后删除 *.bbl 文件;
(2)打开 *.tex 文件,在文章中的任何地方加上 \cite {*} 这条语句;
(3)再次编译,就没有问题了。
[翻译] LaTeX Error: Somethings wrong – perhaps a missing \item
Xovee 于 2020-06-14 16:55:52 发布
原文:LaTeX Error: Something’s wrong–perhaps a missing \item
译者:Xovee
翻译时间:2020 年 6 月 14 日
LaTeX Error: Something’s wrong–perhaps a missing \item 当你忘记添加 \item 命令,或者试图在表格中使用列表的时候,就会遇到这个错误。
出错原因
忘记去添加 \item 命令
遇到这个错误最常见的原因是在列表环境中,忘记添加 \item 命令。下面展示一个例子:
\begin {itemize}
This is the first entry in our list
\end {itemize}
在这个例子中,你告诉 LaTeX 你将使用 itemize 环境来创建一个列表。如果你在这个环境中忘记添加 \item,就会抛出如下错误:

解决方法是添加 \item 命令:
\begin {itemize}
\item This is the first entry in our list
\end {itemize}
有关更多在 LaTeX 中创建列表的信息,请参考这篇文章
-
Lists - Overleaf, Online LaTeX Editor
在表格中添加列表
如果你打算在表格环境中为单元格创建编号,那么也会遇到这个错误:
\begin {tabular}{l}
\begin {enumerate}
\item This is item number one\\ \hline
\item This is item number two
\end {enumerate}
\end {tabular}
我们不可以这样做,用列表来对单元格编号是不被允许的。一种解决这个错误的方法是创建一个计数器,下面展示一个例子:
\newcounter {rownumbers}
\newcommand\rownumber {\stepcounter {rownumbers}\arabic {rownumbers}}
在文档的序言中添加上面的代码,参考这个回答
-
numbering - Automatic table row numbers - TeX - LaTeX Stack Exchange
https://tex.stackexchange.com/questions/21243/automatic-table-row-numbers
然后就可以对单元格进行计数了:
\begin {tabular}{l r}
\rownumber & This is item number one\\ \hline
\rownumber & This is item number two
\end {tabular}
如果你想了解更多创建计数器的信息,请参考这篇文档
-
Counters - Overleaf, Online LaTeX Editor
latex 编译参考文献报错 LaTeX Error: Something‘s wrong–perhaps a missing \item 解决办法
小桥流水 — 人工智能于 2022-11-06 10:42:07 发布
刚入门 latex,对于用 bib 文件引用参考文献还是很陌生,讲一下我的整个处理过程。
如果只想看错误的处理过程,可以直接跳到第 5 步。
1、在 tex 文件目录下新建一个 txt 文本文档,把自己的参考文献在谷歌学术搜索,然后点击 BibTex,把内容复制到刚刚新建 txt 文件中。

2、所有参考文献全部这样操作,每一条参考文献以逗号隔开。

3、保存 txt 文档,并且重新命名,随便起名字,例如我命名为 qiao.bib,确认更改扩展名,这样就能够被 tex 文件搜索到了。

4、在 tex 文件中,需要两行代码来和调用我们的 bib 文件,第一行写入你的文件名字即可,不需要扩展名。第二行,输入一个你所使用的的文献格式模板。
\bibliography {qiao}
\bibliographystyle {IEEEtran}
5、最最关键也是最容易忽视的一步,这一步没有处理就会导致如下错误:
LaTeX Error: Something’s wrong–perhaps a missing \item
这一步应该在正文中参考文献的引用和 “qiao.bib” 文件中的参考文献的名字对应起来。
例如我引用第一条参考文献是 \cite {shaver1988biased}
\cite {shaver1988biased}
就讲到这里。
解决 latex 编译报错:Something‘s wrong–perhaps a missing \item. \end {thebibliography}
DRL 炼丹大师于 2024-10-21 09:36:12 发布
-
删除.ddl 文件
-
在正文中加入任意一个引用 \cite {xxx}
-
重新编译
这个错误只在使用 texstudio 编译中出现,overleaf 上编译同样的内容不会报错。
via:
-
LaTeX Error: Something’s wrong–perhaps a missing \item._elsarticle-template-num-names.bbl: 错误: 1: somethin-优快云 博客moonatshu 于 2016-08-22 16:01:15 发布
https://blog.youkuaiyun.com/u011221336/article/details/52277632 -
解决问题:Something’s wrong–perhaps a missing \item. \end {thebibliography}_bbl missing item-优快云 博客 123qwer456 于 2017-09-22 11:31:25 发布
https://blog.youkuaiyun.com/WangJiankun_ls/article/details/78061176 -
[翻译] LaTeX Error: Somethings wrong – perhaps a missing \item-优快云 博客 Xovee 于 2020-06-14 16:55:52 发布
https://blog.youkuaiyun.com/xovee/article/details/106748270 -
latex 编译参考文献报错 LaTeX Error: Something‘s wrong–perhaps a missing \item 解决办法_latex 手动修改参考文献后编译失败 - 优快云 博客 小桥流水 — 人工智能于 2022-11-06 10:42:07 发布
https://blog.youkuaiyun.com/qlkaicx/article/details/127712822 -
解决 latex 编译报错:Something‘s wrong–perhaps a missing \item. \end {thebibliography}_latex glossary 错误 - 优快云 博客 DRL 炼丹大师于 2024-10-21 09:36:12 发布
https://blog.youkuaiyun.com/weixin_42571906/article/details/143104321 -
IEEE Article Templates - IEEE Author Center Journals
https://journals.ieeeauthorcenter.ieee.org/create-your-ieee-journal-article/authoring-tools-and-templates/tools-for-ieee-authors/ieee-article-templates/
1万+

被折叠的 条评论
为什么被折叠?



