LaTex---用 .bib格式文件批量添加引用文献

引文格式

~\cite{Authors14}

http://blog.sina.com.cn/s/blog_7149fc900101cxg9.html

貌似是个明白人,后来发现是老办法,不是自动导入那种

 

https://blog.csdn.net/manjhOK/article/details/82820390

此博主写的详细,清楚,完善,我就不在复述了

 

https://blog.csdn.net/z_Ramsey/article/details/81986447

这个更详细(我是参照此方法完成的)

一 首先将正确的测试结果贴出来来证明可行

1. 在根目录下,创建root_test.tex

只需要填写如下文件即可

(也就是添加

\bibliographystyle{unsrt}   %这个是格式  , 千万不要用{plain}
\bibliography{ref}   % 这个是.bib文件的名字ref

\documentclass[letterpaper, 10 pt, conference]{ieeeconf}  % Comment this line out if you need a4paper

\begin{document}


\section{intoduction}
i am Archerzjc\cite{Kim2015Study}  % 要注意这里的{}里面内容是.bib文件里面每个文献第一行


\bibliographystyle{unsrt} %此部分很关键
\bibliography{ref} %此部分很关键

\end{document} % 写在文章末尾哦~

重点要注意

i am Archerzjc\cite{Kim2015Study}  % 要注意这里的{}里面内容是.bib文件里面每个文献第一行,请看下面的文件

@inproceedings{Kim2015Study,
  title={Study on IoT based wild vegetation community ecological monitoring system},
  author={Kim, Nae Soo and Lee, Kyeseon and Ryu, Jae Hong},
  booktitle={Seventh International Conference on Ubiquitous and Future Networks},
  pages={311-316},
  year={2015},
}

 

2. 然后创建

ref.bib

只需要填写如下文件即可

@inproceedings{Kim2015Study,
  title={Study on IoT based wild vegetation community ecological monitoring system},
  author={Kim, Nae Soo and Lee, Kyeseon and Ryu, Jae Hong},
  booktitle={Seventh International Conference on Ubiquitous and Future Networks},
  pages={311-316},
  year={2015},
}

3. 运行也很暴力,只需要点击

即可

是不是很简单啊~

我可是用了一晚上一上午搞出来的,哎~

特别注意:

超级大坑1:
有些引文的期刊名字叫 journal={IEEE Transactions on Pattern Analysis & Machine Intelligence},

这就很尴尬了,这个&我们的windet识别不出来,手动改成and ,不然会报错!!!!
@article{He2017Mask,
  title={Mask R-CNN},
  author={He, Kaiming and Gkioxari, Georgia and Dollar, Piotr and Girshick, Ross},
  journal={IEEE Transactions on Pattern Analysis & Machine Intelligence},
  volume={PP},
  number={99},
  pages={1-1},
  year={2017},
}

超级大坑2:

\bibliographystyle{unsrt}   %这个是格式unsrt才是按顺序引用
\bibliography{ref}


 

二 下面是我历经的磨难

问题在于:

添加下面文件之后

\bibliographystyle{plain}
\bibligraphy{ref}(这里我写错了\bibliography{ref}

运行之后

会出现如下问题:

Command Line:   pdflatex.exe --interaction=errorstopmode --synctex=1 "root_test.tex"
Startup Folder: K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
("K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板\root_test.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for loaded.
("K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板\ieeeconf.cls"
Document Class: ieeeconf 2016/4/23 revision V1.6b by Pradeep Misra
(H:\latex\CTEX\MiKTeX\tex\latex\psnfss\ot1ptm.fd)
-- This is a 10 point document.
)
** ATTENTION: Overriding command lockouts (line 9).
** ATTENTION: Overriding IEEE standard margins (line 12).
(H:\latex\CTEX\MiKTeX\tex\latex\makecell\makecell.sty
(H:\latex\CTEX\MiKTeX\tex\latex\tools\array.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsmath.sty
For additional information on amsmath, use the `?' option.
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amstext.sty
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsgen.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsbsy.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsopn.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\multirow\multirow.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\caption\caption.sty
(H:\latex\CTEX\MiKTeX\tex\latex\caption\caption3.sty
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\keyval.sty))

Package caption Warning: Unsupported document class (or package) detected,
(caption)                usage of the caption package is not recommended.
See the caption package documentation for explanation.

) (H:\latex\CTEX\MiKTeX\tex\latex\algorithms\algorithm.sty
(H:\latex\CTEX\MiKTeX\tex\latex\float\float.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\base\ifthen.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\algorithmicx\algorithmicx.sty
Document Style algorithmicx 1.2 - a greatly improved `algorithmic' style
) (H:\latex\CTEX\MiKTeX\tex\latex\algorithmicx\algpseudocode.sty
Document Style - pseudocode environments for use with the `algorithmicx' style
) (H:\latex\CTEX\MiKTeX\tex\latex\subfigure\subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(H:\latex\CTEX\MiKTeX\tex\latex\subfigure\subfigure.cfg))
(H:\latex\CTEX\MiKTeX\tex\latex\tools\hhline.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\tools\tabularx.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\graphicx.sty
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\graphics.sty
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\trig.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\00miktex\graphics.cfg)
(H:\latex\CTEX\MiKTeX\tex\latex\pdftex-def\pdftex.def
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\infwarerr.sty)
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\ltxcmds.sty))))
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\epstopdf.sty
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\epstopdf-base.sty
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\grfext.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\kvdefinekeys.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\kvoptions.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\kvsetkeys.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\etexcmds.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\ifluatex.sty))))
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\pdftexcmds.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\ifpdf.sty))))
(H:\latex\CTEX\MiKTeX\tex\latex\sttools\flushend.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\booktabs\booktabs.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\amssymb.sty
(H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\amsfonts.sty))
("K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板\root_test.aux")
(H:\latex\CTEX\MiKTeX\tex\context\base\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\umsa.fd)
(H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\umsb.fd)

LaTeX Warning: Citation `henriques2015high' on page 1 undefined on input line 1
18.

! Undefined control sequence.
l.120 \bibligraphy
                  {ref}
? 

Process has been terminated ...

如果直接点

会出现

上述问题改过之后发现还是不行

\bibliographystyle{plain}
\bibliography{ref}

Command Line:   pdflatex.exe --interaction=errorstopmode --synctex=1 "root_test.tex"
Startup Folder: K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板

This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
("K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板\root_test.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for loaded.
("K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板\ieeeconf.cls"
Document Class: ieeeconf 2016/4/23 revision V1.6b by Pradeep Misra
(H:\latex\CTEX\MiKTeX\tex\latex\psnfss\ot1ptm.fd)
-- This is a 10 point document.
)
** ATTENTION: Overriding command lockouts (line 9).
** ATTENTION: Overriding IEEE standard margins (line 12).
(H:\latex\CTEX\MiKTeX\tex\latex\makecell\makecell.sty
(H:\latex\CTEX\MiKTeX\tex\latex\tools\array.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsmath.sty
For additional information on amsmath, use the `?' option.
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amstext.sty
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsgen.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsbsy.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\ams\math\amsopn.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\multirow\multirow.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\caption\caption.sty
(H:\latex\CTEX\MiKTeX\tex\latex\caption\caption3.sty
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\keyval.sty))

Package caption Warning: Unsupported document class (or package) detected,
(caption)                usage of the caption package is not recommended.
See the caption package documentation for explanation.

) (H:\latex\CTEX\MiKTeX\tex\latex\algorithms\algorithm.sty
(H:\latex\CTEX\MiKTeX\tex\latex\float\float.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\base\ifthen.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\algorithmicx\algorithmicx.sty
Document Style algorithmicx 1.2 - a greatly improved `algorithmic' style
) (H:\latex\CTEX\MiKTeX\tex\latex\algorithmicx\algpseudocode.sty
Document Style - pseudocode environments for use with the `algorithmicx' style
) (H:\latex\CTEX\MiKTeX\tex\latex\subfigure\subfigure.sty
****************************************
* Local config file subfigure.cfg used *
****************************************
(H:\latex\CTEX\MiKTeX\tex\latex\subfigure\subfigure.cfg))
(H:\latex\CTEX\MiKTeX\tex\latex\tools\hhline.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\tools\tabularx.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\graphicx.sty
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\graphics.sty
(H:\latex\CTEX\MiKTeX\tex\latex\graphics\trig.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\00miktex\graphics.cfg)
(H:\latex\CTEX\MiKTeX\tex\latex\pdftex-def\pdftex.def
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\infwarerr.sty)
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\ltxcmds.sty))))
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\epstopdf.sty
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\epstopdf-base.sty
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\grfext.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\kvdefinekeys.sty))
(H:\latex\CTEX\MiKTeX\tex\latex\oberdiek\kvoptions.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\kvsetkeys.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\etexcmds.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\ifluatex.sty))))
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\pdftexcmds.sty
(H:\latex\CTEX\MiKTeX\tex\generic\oberdiek\ifpdf.sty))))
(H:\latex\CTEX\MiKTeX\tex\latex\sttools\flushend.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\booktabs\booktabs.sty)
(H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\amssymb.sty
(H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\amsfonts.sty))
("K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板\root_test.aux")
(H:\latex\CTEX\MiKTeX\tex\context\base\supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\umsa.fd)
(H:\latex\CTEX\MiKTeX\tex\latex\amsfonts\umsb.fd)

LaTeX Warning: Citation `henriques2015high' on page 1 undefined on input line 1
18.

("K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板\root_test.bbl"

! 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 \end{thebibliography}
                         
? 

Process has been terminated ...

解决删除根目录下的文件,重新编译tex之后即可正常显示。

但是

点击B之后出现

Command Line:   bibtex.exe "root_test"
Startup Folder: K:\nk_RCAR&CYBER\nk_RCAR(7) - 副本\1_cyber_EIS\cyber模板

This is BibTeX, Version 0.99d (MiKTeX 2.9)
The top-level auxiliary file: root_test.aux
The style file: plain.bst
Database file #1: ref.bib
Warning--I didn't find a database entry for "henriques2015high"
(There was 1 warning)

 

 

 

 

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

计算机视觉-Archer

图像分割没有团队的同学可加群

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值