> My LilyPond output often includes a long, meaty section of editorial
> notes — several paragraphs of prose — at the end of the file, after
> the \score block.
>
> I would like to use TeX’s Knuth–Plass line-breaking algorithm
> <https://en.wikipedia.org/wiki/Knuth%E2%80%93Plass_line-breaking_algorithm>
> for paragraphs of justified text, but I believe that there is no way
> within LilyPond itself to apply LaTeX’s algorithm to
>
> \markup \justify { Insert my text here }

You are correct, and LilyPond will never support this, for very good
reasons.

> As a workaround, I’ve drafted a simple LaTeX file to typeset a
> paragraph for me using Knuth-Plass, with formatting identical to
> what I use in LilyPond. I used LuaLaTeX as compiler.  Please see the
> attached PDF.  The code is below.

This is a nice idea!

> I am very, very new to the world of LaTeX, so I’d like to ask the
> LaTeX-proficient people on this list for input on my .tex code
> (below).

I think it's ok.  You might probably increase the line spacing in the
LaTeX output so that comparison with LilyPond output is easier.


    Werner

Reply via email to