[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Snippet for aligning markup inside another markup
From: |
Kieren MacMillan |
Subject: |
Re: Snippet for aligning markup inside another markup |
Date: |
Mon, 30 Sep 2019 09:18:49 -0400 |
Hi Michael,
> for a project of mine I wanted to center a markup inside another markup.
> I searched the built-in markup functions, but to no avail. (Surely it is
> possible that I missed something...)
This is *almost* it, right?
%%% SNIPPET ENDS
\version "2.19.83"
boxone = \markup \with-color #blue \filled-box #'(0 . 6) #'(0 . 6) #0
boxtwo = \markup \with-color #red \filled-box #'(3 . 5) #'(5 . 7) #0
\markup \combine \halign #0 \boxone \halign #0 \boxtwo
%%% SNIPPET ENDS
I may be wrong, but I’m thinking there’s some relatively simple incantation
which would take it to the goal line.
Hopefully someone out there more knowledgeable than I will help.
Cheers,
Kieren.
________________________________
Kieren MacMillan, composer (he/him/his)
‣ website: www.kierenmacmillan.info
‣ email: address@hidden