jperon / lyluatex

Alternative à lilypond-book pour lualatex
MIT License
58 stars 11 forks source link

autoindent after deactivating indent, with max-protrusion=0 #159

Open uliska opened 6 years ago

uliska commented 6 years ago

If autoindent is implicitly set after a deactivated given indent=1cm and a limit of max-protrusion=0cm then the indented first system doesn't correctly refer to the text margin (the =0cm) but to the staff symbol of the surrounding systems:

\begin{lilypond}[indent=1cm,print-only={3,1,2},max-protrusion=0cm]
  \set Staff.instrumentName = "Violin"
  \repeat unfold 19 { c' d' e' d' }
\end{lilypond}

This does only happen with the implicit autoindent after a deactivated indent. The following score does not specify indent and is handled correctly:

\begin{lilypond}[print-only={3,1,2},max-protrusion=0cm]
  \set Staff.instrumentName = "Violin"
  \repeat unfold 19 { c' d' e' d' }
\end{lilypond}

Note that regular files are autoindented correctly:

autoindent-issue.pdf

jperon commented 5 years ago

@uliska I don't really understand all about this issue, but it seems that recent changes modified the output; could you please check this ?

uliska commented 5 years ago

I will try looking into your recent changes ASAP, but I'm pretty much overwhelmed with stuff ATM, so I can't tell when that will happen :-(