https://github.com/cdlm/bibhtmlize
Generating an HTML sorted publications list from BibTeX
https://github.com/cdlm/bibhtmlize
Last synced: about 1 year ago
JSON representation
Generating an HTML sorted publications list from BibTeX
- Host: GitHub
- URL: https://github.com/cdlm/bibhtmlize
- Owner: cdlm
- Created: 2011-11-06T02:12:18.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2011-12-16T12:42:36.000Z (over 14 years ago)
- Last Synced: 2025-02-11T11:51:30.625Z (over 1 year ago)
- Language: Ruby
- Size: 120 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# bibhtmlize
`bibhtmlize` is a Ruby wrapper around a rather deviously hacked [BibTeX style that generates HTML][bibhtml] rather than TeX output.
It reads a [BibTeX database file](http://www.bibtex.org/), and produces a sorted list of entries on stdout.
Most common use case, for inclusion in a larger web page:
bibhtmlize foo.bib > foo.partial.html
To add `` etc. and produce a very basic but technically complete HTML document:
bibhtmlize --wrap foo.bib > foo.html
The default BibTeX style classifies entries per publication type (journals, conferences, workshops, etc) as is usual for someone's list of scientific publications. That can be changed by using a different style, e.g. the original one from [Bibhtml][]:
bibhtmlize --style plainhtml foo.bib > foo.html
See also `bibhtmlize --help`.
### Dependencies
- Ruby and BibTeX (duh)
- sed
- the [cri](http://rubydoc.info/gems/cri/file/README.md) gem
### Disclaimer
I shamelessly took ideas and code from a couple other cool projects:
- [Norman Gray's Bibhtml][bibhtml] for making BibTeX output HTML rather than `.bbl`, and
- [Nicolas Markey's `publist`](http://www.lsv.ens-cachan.fr/~markey/BibTeX/publist/) for classifying publications by type.
On top of that I tweaked a few things to match my bibliography bookkeeping conventions and metadata.
I won't pretend it's flexible or useable by anyone else than me, but hey… it's a start.
[bibhtml]: http://purl.org/nxg/dist/bibhtml