GithubHelp home page GithubHelp logo

jiancheng / bibtex2html.py Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 139 KB

Convert bibtex to html.

License: BSD 3-Clause "New" or "Revised" License

Python 100.00%
bibtex html citations bibliography google-scholar bibtex2html

bibtex2html.py's People

Contributors

jiancheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jingchangshi

bibtex2html.py's Issues

problems with double brackets

Hello,

This is very useful script. Unfortunately, it does not work when using double brackets, such as:

@article{Aaboud:2016nbq,
  author       = {Aaboud, Morad and others},
  date         = {2016},
  doi          = {10.1016/j.physletb.2016.05.064},
  eprint       = {1603.08791},
  eprintclass  = {hep-ex},
  eprinttype   = {arXiv},
  journaltitle = {Phys. Lett.},
  pages        = {229--246},
  title        = {{Search for resonances in the mass distribution of jet pairs with one or two jets identified as $b$-jets in proton--proton collisions at 13 TeV with the ATLAS detector}},
  volume       = {B759},
}

Error:


if s[i] == '{':
IndexError: string index out of range

Support Chinese in configuration file

If author_names_highlighted = ["San Zhang", "张三"], it reports error like UnicodeDecodeError: 'gbk' codec can't decode byte 0xb6 in position 796: illegal multibyte sequence.

Fix: Change config.read(_conffile) in bibtex2htmll.py to config.read(_conffile, encoding='utf-8').

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.