latex beamer环境下写作时引用参考文献

2018-6-4
系统:debian 9
latex版本:texlive2017
latex编辑器:texmaker
环境:beamer

假如在同一个文件夹下包含main.tex,main.bib和First.bib三个文件,main.tex中包含中文。
首先,放一张latex入门上的图,该图详细说明了latex生成参考文献的过程

首先,用xelatex编译main.tex (在终端中输入,windows+r 然后输入cmd回车,进入到该文件夹)

xelatex main.tex

此时在main.tex目录下会生成main.aux。然后执行下面的命令,注意不是main.bib,main.bib中可以有多个参考文献。

bibtex main.aux

这条命令会将main.tex文件夹下的所有的bib文件都加入到bbl文献列表,因此,bib文件并非要和tex文件同名

如果此时出现下列错误

This is BibTeX, Version 0.99d (TeX Live 2017) The top-level auxiliary file: main.aux The style file: plain.bst I found no \citation commands---while reading file main.aux Database file #1: main.bib (There was 1 error message)

或者这种错误

 I found no \citation commands---while reading file main.aux 

可能是文章中没有引用参考文献造成的。在

\bibliography{main}

前面加上

\nocite{*}

如果要同时引用多个数据库,可以向下面这样写,顺序为大括号里面的顺序。

\bibliography{main,First}

main,First就是bib文件的文件名,如果文献太多,一页写展示不下,可以像下面这样写,就是分页显示

\begin{frame}[allowframebreaks]

也可以让文献的字体变得更小,只需在

\bibliography{main}

前面加上

\tiny   %或者\small等改变字体大小的命令

如果你是用软件(如texmaker)打开First.bib,然后用bibtex编译时,会出现下面的错误

I couldn't open file name `First.aux'

软件执行的命令应该是类似这样

bibtex First.aux

因此你在网上听到的某些bib文件名要和tex文件名一样,估计就是用了类似这种编辑器。

如果在这个过程中遇到了其它问题,欢迎在评论区留言,或者Google一下,也欢迎把具体的解决方法留在评论区,以供后来者参考

欢迎转载,不需注明出处,就说是你写的

参考:

Subscribe
提醒
guest
10 评论
最旧
最新
内联反馈
查看所有评论
Xiaoying
游客
Xiaoying
2018年11月17日 上午6:44

最后一句很有趣。。。

Tracykar
游客
Tracykar
2019年11月21日 下午8:35

你好!.

我可以在哪里免费下载XEvil在您的网站?
从你的支持得到的信息。 XEvil确实是解决验证码的最佳方案,但我需要最新版本。

多謝。.

lightroomPor
游客
lightroomPor
2019年12月30日 上午5:33

“https://adobe.com/” – Adobe Lightroom is the most control periapt editing softwar… 阅读更多 »

Williamchoky
游客
Williamchoky
2020年3月13日 上午2:06

Luxury Villas in Maharashtra

A popular getaway from the busy streets of Mumbai will be to the mesmerizing, dreamy and catchy hill station Lonavala. Located in the Sahyadri Mountains this beautiful town is home to countless waterfalls paving its way through the thick forest hills and a lush green valley lifting your spirits high. With monuments and caves witnessing the Buddhist culture, Lonavala is a beautiful holiday getaway. The Bhaja and Carla caves are the world famous Buddhist shrines in Lonavala with relief sculptures and massive pillars.

Terryknick
游客
Terryknick
2020年9月22日 上午6:43

Very interesting to read you
Good luck to you

kebprfsnottom
游客
kebprfsnottom
2020年12月2日 下午11:05

htyfsnottom

PaulineJak
游客
2023年6月29日 下午11:02

Links

最后由重新开始编辑于8 月 之前