[OS X TeX] Author-year citations in webpages
Alexander,J
jalex at lse.ac.uk
Tue Jun 18 22:46:43 CEST 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://tug.org/pipermail/macostex-archives/attachments/20240618/636eb749/attachment.htm>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: https://www.tug.org/mactex/faq/index.html
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
https://email.esm.psu.edu/pipermail/macosx-tex/
TeX on Mac OS X Website: https://www.tug.org/mactex/index.html
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the macostex-archives
mailing list.