diff options
author | David Kastrup <dak@gnu.org> | 2014-06-15 14:12:34 +0200 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2015-07-18 06:42:13 +0200 |
commit | 1fb0cec0362ad8c6d2468c33af3bdd4d5bef827a (patch) | |
tree | a7313fb2aabc60b8c51ddc2e21c1bf5a4a3ed47c /input | |
parent | b579529b5f3f89a5b8a17760bb199b0eacc671be (diff) |
Issue 4487/3: Implement partial markups
A partial markup acts as a chain of markup commands where everything but
the final markup has already been supplied.
For example:
bold-red-markup = \markup \bold \with-color #red \etc
\markup \bold-red "text"
\markuplist \column-lines \bold-red { One Two Three }
Please note that in order for \markup to recognize the resulting markup
command inside of markup expressions, the identifier to which the
resulting markup command is assigned needs to have "-markup" appended to
its name: LilyPond encodes markup command names in this manner so that
markup commands can use the same name as other entities outside of
markup mode.
Note also that this will not work with the markup macro since the latter
additionally requires the definition of a suitable make-bold-red-markup
command.
Diffstat (limited to 'input')
-rw-r--r-- | input/regression/markup-partial.ly | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/input/regression/markup-partial.ly b/input/regression/markup-partial.ly new file mode 100644 index 0000000000..37d2255cd9 --- /dev/null +++ b/input/regression/markup-partial.ly @@ -0,0 +1,14 @@ +\version "2.19.24" + +\header +{ texidoc = "Partial markups acts as a chain of markup + commands where everything but the final markup has already been + supplied." +} + +\layout { ragged-right = ##t } + +bold-red-markup = \markup \bold \with-color #red \etc + +\markup \bold-red "Single markup" +\markuplist \column-lines \bold-red { Markups in a list. } |