leadsheets icon indicating copy to clipboard operation
leadsheets copied to clipboard

Disabling chord printing leaves spaces in the text

Open iTeaMaster opened this issue 2 years ago • 0 comments

As the title says, when setting print-chords=false, the result is different from what one gets when no chord commands are included in the source. This happens with chords that are set between words (i.e. over a space), they leave a large space.

Consider the following code and its output for example.

\documentclass{leadsheet}
\begin{document}
  \begin{song}[print-chords=false,obey-lines]{}
    \begin{verse}
      One two three four.
      One ^{D}two three^{G} four.
      One ^{D}two three^*{G} four.
      One ^{D}two three^*-{G} four.
    \end{verse}
  \end{song}
\end{document}

Note that neither the starred nor the smashed version alter this behaviour. What I would expect is that at least the starred variant would gobble the space. In general though, I would expect output equivalent to omitting the chord commands when setting print-chords=false, as is the case with any chords set over text.

Also note that obey-lines doen't influence this. I just set it to make the example look a bit better.

iTeaMaster avatar May 27 '22 20:05 iTeaMaster