LaTeX+ VSCode参考文献编写

首先确定VSCode setting.json 当中存在了正确的编译链设置


    "latex-workshop.latex.recipes": [
        {
            "name": "xe->bib->xe->xe",
            "tools": [
                "xelatex",
                "bibtex",
                "xelatex",
                "xelatex"
            ]
        }
    ]
    "latex-workshop.latex.tools":[
        {
            // 编译工具和命令
            "name": "xelatex",
            "command": "xelatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "-pdf",
                "%DOCFILE%"
            ]
        },
        {
            "name": "pdflatex",
            "command": "pdflatex",
            "args": [
                "-synctex=1",
                "-interaction=nonstopmode",
                "-file-line-error",
                "%DOCFILE%"
            ]
        },
        {
            "name": "bibtex",
            "command": "bibtex",
            "args": [
                "%DOCFILE%"
            ]
        }
    ]

 导入相应的包,可以自定义引用格式(这里是上标的写法)

\usepackage{cite}
\newcommand{\upcite}[1]{\textsuperscript{\cite{#1}}} %参考文献上标

在工作路径之下编写一个bib文件进行文献的管理。

@ARTICLE{888718, 
 author={Z. {Zhang}}, 
 journal={IEEE Transactions on Pattern Analysis and Machine Intelligence}, 
 title={A flexible new technique for camera calibration}, 
 year={2000}, 
 volume={22}, 
 number={11}, 
 pages={1330-1334}, 
 keywords={computer vision;calibration;image sensors;maximum likelihood estimation;matrix algebra;geometry;optimisation;camera calibration;flexible technique;planar pattern;radial lens distortion;maximum likelihood criterion;3D computer vision;Cameras;Calibration;Computer vision;Layout;Lenses;Nonlinear distortion;Closed-form solution;Maximum likelihood estimation;Computer simulation;Testing}, 
 doi={10.1109/34.888718}, 
 ISSN={0162-8828}, 
 month={Nov}}

其中@ARTICLE表示这是一篇文章的引用 888718是相应的引用标志,在文稿区使用"\upcite(自定义命令){888718}"体现

 

在需要引用的地方直接使用\cite命令进行引用

(通常是在结尾进行参考文献的标注)

LaTeX+ VSCode参考文献编写_第1张图片

 

 

你可能感兴趣的:(经验,细节)