lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Hide" the tagline


From: Simon Albrecht
Subject: Re: "Hide" the tagline
Date: Mon, 27 Feb 2017 19:39:33 +0100

Am 27.02.2017 um 18:55 schrieb Klaus Blum:
Urs Liska wrote
I'm looking for a way to "externally" hide the tagline, i.e. by either
making it transparent or colouring it white.
Coloring white leaves invisible but useless stuff at the bottom.
So maybe better:

% ---------------------- color.ily ----------------------------
#(define-markup-command (tagline-color layout props text)
    (markup?)
    (interpret-markup layout props
      #{
        \markup{ \transparent $text }
      #}))
% -------------------------------------------------------------

You could just as well have written
make-tagline-color-markup = #make-transparent-markup
or maybe even (I’m not sure if that does work for markup commands yet)
tagline-color = \markup\transparent \etc
The ‘conditional’ part is missing.



% ====================== main document ========================
\paper {ragged-last-bottom = ##f}
\header {
   tagline = \markup \tagline-color { use \rotate #90 sooooooooooooooooooooo
much space }
}
{
   \repeat unfold 10 {c'1 \break}
}
% =============================================================

And, as Urs already said, he was looking for a way that does _not_ require changing the input file at all.

Best, Simon



reply via email to

[Prev in Thread] Current Thread [Next in Thread]