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

时间:2021-03-11 16:37:27   收藏:0   阅读:0

访问官网:http://www.ee.ic.ac.uk/hp/staff/dmb/perl/index.html

写在前面

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

技术图片

 然后,装好了word,

下载bibtex4word

http://www.ee.ic.ac.uk/hp/staff/dmb/perl/bibtex4word.zip

技术图片

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

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

如果找不到,搜索也行

技术图片

 

技术图片

 添加用户变量

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

变量名BIB_EXE

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

变量名OPENOUT_ANY

变量值r

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

技术图片

 就有我们想要的工具了!

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

获取引文bib

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

技术图片

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

技术图片

set bibtex4word style

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

Choosing a BibTeX Style:纯英文引用请查看http://www.ee.ic.ac.uk/hp/staff/dmb/perl/index.html说明

但是很多时候,我们写个中文报告材料什么的,中英混用是很正常的。首先去下载一个国风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(在开始程序中即可找到)

技术图片

 输入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

使用Bibtex4Word

导入数据库

选择技术图片导入bib文件,reference.bib

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

设置bibtex4word版式

点击图标技术图片在输入框中填入

GBT7714-2005/^/nsch

 添加citation

 在合适的位置技术图片,贴入bib文件中的关键词 

生成文后引文列表

 点击技术图片即可

 

 

建议先用一个测试文件熟悉操作  \broken

 

 

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!