texlib icon indicating copy to clipboard operation
texlib copied to clipboard

Python implementation of TeX's line-wrapping algorithm.

Results 4 texlib issues
Sort by recently updated
recently updated
newest added

Pardon me for asking something that's probably simple, but I'm new to Python and haven't figured out yet how to run the example program. I'm trying to find a correctly-running...

Thanks for building this tool! This is the only Python-compatible implementation of Knuth & Plass that I've been able to find (perhaps I don't know where to look). I realise...

It seems that `_BreakNode` only stores the demerits of the _current_ breakpoint, instead of the _cumulative_ (total) demerits. Pseudo-code from the paper: texlib: ```python if p[i] >= 0: demerits =...