biblatex reference

来源:互联网 发布:酒吧骰子软件 编辑:程序博客网 时间:2024/06/06 07:29

前面讲了 Ubuntu VSCode Latex 如何配置,本文简单描述 Latex 如何添加文章引用.

Biblatex 支持

sharelatex 官网采用 biber 解析 latex 中的引用.

首先安装 biber:

sudo apt-get install biber

然后按照以下步骤编译 tex 文件:

xelatex myfilebiber myfilexelatex myfile

tex 设置

在 VSCode 中设置 Latex 编译链:

"latex-workshop.latex.toolchain": [    {        "command": "xelatex",        "args": [            "-synctex=1",            "-interaction=nonstopmode",            "-file-line-error",            "%DOC%"        ]    },     {        "command": "biber",        "args": [            "%DOCFILE%"        ]    },     {        "command": "xelatex",        "args": [            "-synctex=1",            "-interaction=nonstopmode",            "-file-line-error",            "%DOC%"        ]    }]

tex 文件中加入以下包:

\usepackage[backend=biber,sorting=none]{biblatex}\addbibresource{reference.bib}

最后输出引用:

\printbibliography[title=References]

注意上面的设置是按引用顺序输出reference的.

原创粉丝点击