LaTeXML icon indicating copy to clipboard operation
LaTeXML copied to clipboard

citations with chapterbib and multiple input files

Open NemesMarcus opened this issue 10 months ago • 0 comments

I would like to split a report of multiple chapters at the chapter level into html files, where each chapter has its own bibliography as a section at the end of the chapter. For this \usepackage[sectionbib]{chapterbib} is included. From the "test" example in mwe.zip you can see, that latexmlc --dest=test.html --splitat=chapter test.tex principially works (the Bibliography is of Chapter style, even with pdfLaTex, but this is fine for me). However, when the chapters are moved to separate files as in the "test2" example (the actual structure of the report), then the pdfLaTeX output is as expected (the Bibliography is of Section style and no page preak occurs before) but latexmlc --dest=test2.html --splitat=chapter test2.tex leaves broken citations

Warning:expected:ids Missing Entry for citation: bib_label2,bib_label

This can be fixed by removing \usepackage[sectionbib]{chapterbib} but in this case I get every bibliography as a separate chapter and thus as a separate html page, which is not the intention.

Contrary to the issue https://github.com/brucemiller/LaTeXML/pull/1236 the problem of the broken citations remains also when the --splitat option is not used with latexmlc.

I run LaTeXML 0.8.8 under Windows 11 with Strawberry PERL (perl v5.32.1) and MikTeX 23.5 with pdfLaTeX. In the zip file I packed the *.tex files and both the latexmlc and the pdflatex outputs.

NemesMarcus avatar Jan 14 '25 20:01 NemesMarcus