[OS X TeX] Author-year citations in webpages

Alexander,J jalex at lse.ac.uk
Tue Jun 18 16:46:43 EDT 2024


Hi all,

Just in case anyone might be interested in this — I’ve written a small JavaScript package which provides author-year citations and formatted bibliographies in web pages.  Inline citations are automatically generated and a formatted bibliography (using chicago, harvard, or a few other styles) can be inserted wherever you want.  It supports multiple bibliographies in the page, too.

The package uses a local BibTeX database file for the entry information, and scans the html code looking for expressions like "\citet[pg. 120]{Prince:1999}", replacing that with “Prince (1999, pg. 120)” and then generating a full bibliography entry using citation.js.

More information can be found here:

https://jmckalex.org/software/bibtex-in-webpages.html

Please note this is a beta version, but I’ve used it and it works for me.  Any bug reports or suggestions (or help making it better) would be appreciated!  And apologies if this is old news, but I spent some time search and I didn’t find anything which quite worked the way I wanted it to.

Best wishes,

Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://email.esm.psu.edu/pipermail/macosx-tex/attachments/20240618/636eb749/attachment.htm>


More information about the MacOSX-TeX mailing list