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一下,也欢迎把具体的解决方法留在评论区,以供后来者参考

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

参考:

8 thoughts on “latex beamer环境下写作时引用参考文献

  1. 你好!.

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

    多謝。.

  2. “https://adobe.com/” – Adobe Lightroom is the most control periapt editing software in compensation photographers, with hundreds of thousands of effects and presets available on the internet.

    You can download Lightroom from Adobe’s website.

    “https://en.wikipedia.org/wiki/Adobe_Lightroom” – Adobe Lightroom presets help you to clean up your photos in relate time by means of doing a assignment of the production after you. You can simply crack out a pre-defined effect, while keeping your original image and reverting recoil from to it at anytime.

    You can use:
    Lightroom Presets for Wedding Photography
    Lightroom Presets for Baby and Family Photography
    Lightroom Presets for Headshots
    Lightroom Presets for Senior Portraits
    Lightroom Presets for Landscape
    Lightroom Presets for Nature Photography
    Lightroom Presets for Food Photography
    Lightroom Presets for Car Photography
    Lightroom Presets for Real Estate
    Lightroom Presets for Product and Fashion Photography

    And a “https://mrlightroom.com/shop/lightroom-presets/magic-touch-lightroom-desktop-and-mobile-presets/” – Magic Touch Lightroom Desktop and Mobile Presets
    for everyday shooting.

  3. 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.

发表评论

电子邮件地址不会被公开。

*

code