• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Pezmc/BibLatex-Check: A python script for checking BibLatex .bib files for commo ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

Pezmc/BibLatex-Check

开源软件地址(OpenSource Url):

https://github.com/Pezmc/BibLatex-Check

开源编程语言(OpenSource Language):

Python 84.3%

开源软件介绍(OpenSource Introduction):

This project no longer under active development

It remains fully functional and maintenance is still completed

Assistance with enhancements, feature requests and bug fixes are all very welcome!

Any PR's will be reviewed promptly.


BibLatex-Check

A web based version of this checker is now available: https://biblatex-linter.herokuapp.com/ (repo)

A python2/3 script for checking BibLatex .bib files

BibTeX Check is a small Python script that goes through a list of references and checks if certain required fields are available, for instance, if each publication is assigned a year or if a journal article has a volume and issue number.

Additionally, it allows for consistency checks of names of conference proceedings and could easily be extended to other needs.

The results of the check are printed to an html file, which includes links to Google Scholar, DBLP, etc. for each flawed reference. These links help retrieving missing information and correcting the entries efficiently.

Please note that it is not a BibLaTeX validator. And in the current version, it might not yet be able to parse every valid bib file. The software targets the specific needs of Computer Scientist, but may be applicable in other fields as well.

For use in automated environments, BibLaTeX-Check returns errors on the console (can be disabled). Further, it returns an exit code depending on whether problems have been found.

The html output is tested with Firefox and Chrome, but the current version does not properly work with Internet Explorer.

Getting Started

Just copy the file into a directory with write permission, then run the script

./biblatex_check.py <-b input.bib> [-a input.aux] [-o output.html]

If you provide the additional aux file (created when compiling a tex document), then the check of the bib file is restricted to only those entries that are really cited in the tex document.

Options

Specify these when calling the script.

  • -b (--bib=file.bib) Set the input Bib File
  • -a (--aux=file.aux) Set the input Aux File
  • -o (--output=file.html) Write results to the HTML Output File.
  • -v (--view) Open in Browser. Use together with -o.
  • -N (--no-console) Do not print problems to console. An exit code is always returned.

Help

See ./biblatex_check.py -h for basic help.

If your getting an environment error, try using python ./biblatex_check.py or python3 ./biblatex_check.py depending on your OS.

Alternatives

BibLatex check is adapted from BibTex Check by Fabian Beck, which can be used to validate BibTex files.

See BibTex vs BibLaTex vs NatBib for a comparison of different referencing packages.

Screenshot

Screenshots of the BibLatex check screen

Development

The checker is a single python script that takes .bib files as input and prints to console and/or an html file.

It maintains compatibility with Python 2, so any changes should be run against both Python 2.7 and 3.

Any bug fixes should be paired with a new test case in tests/input.bib

"Running" the tests

python3 ./biblatex_check.py -b tests/input.bib
python2 ./biblatex_check.py -b tests/input.bib

Then manually confirm the number of errors matches the details top of tests/input.bib

License

MIT license




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap