配置Latex-Workshop
添加 biber¶
在latex-workshop.latex.tools
中添加以下工具:
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOC%"
]
}
在latex-workshop.latex.recipes
中添加以下工具链:
自定义默认工具链:
引用示例¶
\usepackage[backend=biber,style=numeric,sorting=none]{biblatex}
\addbibresource{a1.bib}
\begin{document}
xxx \cite{paper1}
\printbibliography[heading=bibnumbered]
\end{document}
通常, bib文件中每个条目只需要保留:
- author
- title
- publisher
- pages
- year