zepinglee / citeproc-lua

A Lua implementation of the Citation Style Language (CSL)
MIT License
62 stars 7 forks source link

Excessive whitespace before references in some citation styles #25

Closed Ourous closed 1 year ago

Ourous commented 1 year ago

When using some citation styles (Vancouver, IEEE, probably others...) the reference list will be shoved off to the right side of the page (often completely departing the visible document area) by a large quantity of whitespace (LaTeX complains about overfull hboxes). This can be seen with the project's own example by changing the citation style from APA to Vancouver. Attempting to reproduce it using the example with the IEEE style gives me a "Misplaced tab alignment character &.", but commenting lines 20, 44, and 50 will allow it to compile and demonstrate the same issue.

Great project by the way!

zepinglee commented 1 year ago

Thanks for your feedback! I can reproduce both the whitespace and ampersand bugs.

zepinglee commented 1 year ago

These bugs occurred since I rewrote much of the Lua module in v0.2.0 and hey should be fixed in f930d58. I'll upload to CTAN in the next few days.