DescriptionAdd a \first-visible markup command which uses the first argument that produces a non-empty stencil and ignores the rest.
This has been useful in the score headers for collections of songs in which I wanted to provide the composer's name if known, otherwise the name of the original publication, but not both, e.g.
\first-visible {
\fromproperty #'header:composer
\italic \fromproperty #'header:musicPublication
}
This will also be useful in the conversion of time signatures from C++ to Scheme.
Patch Set 1 #
Total comments: 1
Patch Set 2 : Handle markup list commands as arguments to \or #
Total comments: 1
Patch Set 3 : Simplify as suggested #
Total comments: 2
Patch Set 4 : Factor out false-if-empty #Patch Set 5 : Rename to \first-visible #MessagesTotal messages: 14
|