... eventually I will probably end up building something that works in the browser by using KaTeX + CSS Paged Media + js-citeproc, where js-citeproc has a copy left license and some shortcomings (narrative citations do not work) so I'm currently implementing something similar my self.