Thanks, this is what I was searching for! Now, for an optimal refinement: is there a way to avoid these curved sides on the arrows and can the segment be attached to the arrows without gaps?
Cheers On Mon, Jun 3, 2024 at 3:08 PM Leo Correia de Verdier < leo.correia.de.verd...@gmail.com> wrote: > Expanding on Werner’s example a bit, is this something like what you’re > after? > > \version "2.25.12" > > \markup \with-dimensions #'(0 . 0) #'(0 . 0) { > \translate #'(20 . -20) > \center-column { example-text \concat { \arrow-head #X #LEFT ##t > \draw-line #'(30 . 0) \arrow-head #X #RIGHT ##t }}} > > << > { f'2 f' f' f' f'1 } > { d'2 d' d' d' d'1 } > >> > > \paper { > markup-markup-spacing.basic-distance = 0 > markup-markup-spacing.minimum-distance = 0 > markup-markup-spacing.padding = 0 > > markup-system-spacing.basic-distance = 0 > markup-system-spacing.minimum-distance = 0 > markup-system-spacing.padding = 0 > > top-markup-spacing.basic-distance = 0 > top-markup-spacing.minimum-distance = 0 > top-markup-spacing.padding = 0 > } > > > > 3 juni 2024 kl. 13:43 skrev Paolo Prete <paolopr...@gmail.com>: > > > > Thanks to Torsten and Werner, > > > > I'm going to use the postscript approach. > > > > But what about the segment with arrows and centered text? > > > > I googled a bit, and I also queried ChtaGPT but could not find anything > useful... > > > > > > On Mon, Jun 3, 2024 at 11:46 AM Torsten Krueger <tors...@kryger.de> > wrote: > > Paolo Prete wrote on 02.06.2024: > > > > > How can I draw a vertical (or even diagonal) line independently > positioned > > > from the notes in the score, that can span across staves, as shown in > the > > > figure? > > > > For drawing lines independently from notes I do not use Lilypond > > directly but postscript. For this purpose I have added a few lines of > > code right at the beginning in the definition of bookTitleMarkup like > > this (drawing two small horizontal lines in the page margins): > > > > --8<---------------cut here---------------start------------->8--- > > > > bookTitleMarkup = \markup { > > \column { > > \postscript #" > > gsave > > initmatrix > > 1 setlinewidth 0 306 moveto 6 0 rlineto stroke > > 1 setlinewidth 377 306 moveto 6 0 rlineto stroke > > grestore" > > \fill-line { > > \fromproperty #'header:instrument > > ... > > > > --8<---------------cut here---------------end--------------->8--- > > > > Don't know if it helps in your case, but maybe gives you an idea of how > > to proceed. > > > > Have fun > > Torsten > > > > > >