对于这个问题中的本地化内容和长错误日志,我提前表示歉意。
我正在使用IEEE 模板。
我做了一个简单的例子来演示我的问题IEEEtran.bst风格:
\documentclass[journal, a4paper]{IEEEtran}
\begin{document}
\section{Introduction}
Citation \cite{IEEEhowto:article_typical}
\bibliographystyle{IEEEtran}
\bibliography{IEEEabrv,IEEEexample}
\end{document}
当我跑步时BibTex在此来源上我收到如下错误:
*****
***** BibTeX output:
***** cd "/home/martin/My articles/Minimum_example"
***** bibtex example
*****
This is BibTeX, Version 0.99d (TeX Live 2012/Debian)
The top-level auxiliary file: example.aux
The style file: IEEEtran.bst
"<" can't start a style-file command---line 2 of file IEEEtran.bst
:
: <!-- saved from url=(0085)ftp://ftp.u-aizu.ac.jp/pub/tex/CTAN/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst -->
(Error may have been on previous line)
< is an unknown function---line 584 of file IEEEtran.bst
> is an unknown function---line 585 of file IEEEtran.bst
> is an unknown function---line 591 of file IEEEtran.bst
> is an unknown function---line 618 of file IEEEtran.bst
< is an unknown function---line 768 of file IEEEtran.bst
> is an unknown function---line 776 of file IEEEtran.bst
> is an unknown function---line 1161 of file IEEEtran.bst
> is an unknown function---line 1241 of file IEEEtran.bst
> is an unknown function---line 1247 of file IEEEtran.bst
> is an unknown function---line 1249 of file IEEEtran.bst
> is an unknown function---line 1256 of file IEEEtran.bst
> is an unknown function---line 1264 of file IEEEtran.bst
> is an unknown function---line 2386 of file IEEEtran.bst
Database file #1: IEEEabrv.bib
Database file #2: IEEEexample.bib
-- IEEEtran.bst version 1.13 (2008/09/30) by Michael Shell.
-- http://www.michaelshell.org/tex/ieeetran/bibtex/
-- See the "IEEEtran_bst_HOWTO.pdf" manual for usage information.
ptr=1, stack=
500
---the literal stack isn't empty for entry IEEEexample:article_typical
while executing---line 2418 of file IEEEtran.bst
4 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
4 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
2 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
2 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
2 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string or missing field, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
0 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
53 is an integer literal, not a string, for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
ptr=16, stack=
54
57
45
53
55
49
pp.
20
\emph{{IEEE} Electron Device Lett.}
---the literal stack isn't empty for entry IEEEexample:article_typical
while executing---line 2421 of file IEEEtran.bst
Done.
"<" can't start a style-file command---line 2428 of file IEEEtran.bst
:
: </pre></body></html>
(Error may have been on previous line)
(There were 33 error messages)
当我用pdflatex 不管这个错误,我得到了错误的输出。多个作者的名字用“and”而不是逗号分隔,并且缺少信息:
不正确(实际):
正确的
我该如何修复这个问题?我做错了什么?
答案1
当你下载文件时,.bst
它被保存为一个html
文件。这就是为什么你看到以下几行
<!-- saved from url=(0085)ftp://ftp.uaizu.ac.jp/pub/tex/CTAN/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst -->
和
</pre></body></html>
IEEEtran.bst
使用文本编辑器打开并删除这些html
行。或者,再次下载并确保它未保存为html
文件(这可能取决于您使用的浏览器和保存方式)。
答案2
您可以从以下位置获取最新更新版本
http://tug.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst
如果你使用 Linux 获取原始用途:
wget http://tug.ctan.org/tex-archive/macros/latex/contrib/IEEEtran/bibtex/IEEEtran.bst