bib+windows+word=bibtex4word插件使用方法

时间:2021-09-18 02:07:48

访问官网:

写在前面

首先需要确定电脑上已经装好texlive, 包含了 bibtex.exe,如:

bib+windows+word=bibtex4word插件使用方法

然后,装好了word,

下载bibtex4word

即官网的bibtex4word.zip文件。下载后解压在合适的地方,将其中的bibtex4word.dot拷贝到

C:\Users\*****\AppData\Roaming\Microsoft\Word\STARTUP 目录下,where ***** is your user name。

如果找不到,搜索也行

bib+windows+word=bibtex4word插件使用方法

bib+windows+word=bibtex4word插件使用方法

 添加用户变量

需要添加两个用户变量   用户变量用户变量用户变量重要的事情说3遍

变量名BIB_EXE

变量值D:\Program Files (x86)\TexliveRoot\texlive\2020\bin\win32\bibtex.exe  (前面根据你自己机器中的bibtex.exe位置)

变量名OPENOUT_ANY

变量值r

添加完后,关闭word,重新打开,就会发现,在工具栏中点击加载项:

bib+windows+word=bibtex4word插件使用方法

就有我们想要的工具了!

在前面解压的bibtex4word.zip文件中,有文件Test4w.doc,内容是官网使用教程。

获取引文bib

方法诸多,,例在dblp(https://dblp.uni-trier.de/)中,点击文章左侧下载button

bib+windows+word=bibtex4word插件使用方法

就可以获取很详细的引文信息,如图:

bib+windows+word=bibtex4word插件使用方法

set bibtex4word style

还有很重要的一步,定义bibtex4word在word中,使用的风格,即版式。

Choosing a BibTeX Style:纯英文引用请查看说明

但是很多时候,我们写个中文报告材料什么的,中英混用是很正常的。首先去下载一个国风style。

增加参考文献样式bst文件。如GBT7714-2005.bst(下载:https://github.com/Haixing-Hu/GBT7714-2005-BibTeX-Style)

下载后,拷入D:\Program Files (x86)\TexliveRoot\texlive\2020\texmf-dist\bibtex\bst\gbt7714文件下。

打开TexLive command-line(在开始程序中即可找到)

bib+windows+word=bibtex4word插件使用方法

输入texhash则会刷新texlive文件夹

Microsoft Windows [版本 10.0.18363.1379] (c) 2019 Microsoft Corporation。保留所有权利。 C:\Users\user>texhash texhash: Updating D:/Program Files (x86)/TexliveRoot/texlive/texmf-local/ls-R... texhash: Updated D:/Program Files (x86)/TexliveRoot/texlive/texmf-local/ls-R. texhash: Updating D:/Program Files (x86)/TexliveRoot/texlive/2020/texmf-config/ls-R... texhash: Updated D:/Program Files (x86)/TexliveRoot/texlive/2020/texmf-config/ls-R. texhash: Updating D:/Program Files (x86)/TexliveRoot/texlive/2020/texmf-var/ls-R... texhash: Updated D:/Program Files (x86)/TexliveRoot/texlive/2020/texmf-var/ls-R. texhash: Updating D:/Program Files (x86)/TexliveRoot/texlive/2020/texmf-dist/ls-R... texhash: Updated D:/Program Files (x86)/TexliveRoot/texlive/2020/texmf-dist/ls-R. texhash: Done. C:\Users\user> C:\Users\user>

排版时参考文献样式可选GBT7714-2005/^/nsch

  n,表示强制文后文献以数字顺序排列,不管选用的样式文件是著者年还是顺序方式的;

  s,表示“sort”,将顺序引用的标记[2,4,1,3]整理为[1,2,3,4];

  c,表示“compress”,将顺序引用的标记[1,2,3,4]压缩为[1-4];

  h,表示“hyperlink”(如:plain/h;acm/h),将引用标记与文后文献的对应条目之间建立超链接关系,按住“ctrl”键用鼠标左击标记即可跳转至对应的文献条目,返回则是按住“alt”键后按一下方向键中的"left"键即可;

  ^,表示上标引用方式,即[4]样式;

 [,表示引用标记采用方括号样式,例如[4-9];

 (,表示引用标记采用圆括号样式,例如(Smith, 2000);

使用Bibtex4Word 导入数据库

选择导入bib文件,reference.bib

bib数据库的编码要和选用的bst文件保持一致,若选择的是GBK编码形式的bst文件,则bib数据库也必须是GBK编码的。

设置bibtex4word版式