lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeat signs / bar lines in markup


From: Eluze
Subject: Re: Repeat signs / bar lines in markup
Date: Thu, 07 Feb 2013 23:26:22 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2


Am 07.02.2013 22:46, schrieb Peter Crighton:
Hmm, that doesn’t work for me, and I can’t see why. I’m just using
\raise #0.25 \concat { \bold "|" |: }
now. That looks good enough for what I need.

But thanks for your answer anyway!

Peter

--
Peter Crighton | Musician & Music Engraver based in Mainz, Germany
http://www.petercrighton.de


2013/2/7 Marc Hohl <address@hidden>:
Am 06.02.2013 18:46, schrieb Peter Crighton:

Hi List,

is there some way to put bar lines, or more specifically repeat signs,
inside a text markup? Other than recreating them with the help of
\draw-line and \draw-circle?
I found a rather clumsy workaround:

\markup {
   \line {
     Here is a \hspace #-5
     \raise #1.75 {
       \score {
         \new Staff
         \with {
           fontSize = #-6
         }
         { s32 \bar ".|:" s32 }
         \layout {
            ragged-right= ##t
            indent = 0
            \context {
              \Staff
              \override StaffSymbol #'staff-space = #(magstep -6)
              \override StaffSymbol #'thickness = #(magstep -6)
              \override StaffSymbol #'transparent = ##t
              \remove "Clef_engraver"
              \remove "Time_signature_engraver"
            }
          }
      }
    }
    \hspace #-3.5 followed by some text.
    }
  }


here's a slightly simplified version where you can reuse the created markup:

\version "2.17.11"
mySign = \markup \score {
  \new Staff \with { fontSize = #-6 }
  { \bar ".|:" }
  \layout {
    indent = 0
    \context {
      \Staff
      \override StaffSymbol #'staff-space = #(magstep -6)
      \override StaffSymbol #'thickness = #(magstep -6)
      \override StaffSymbol #'stencil = ##f
      \remove Clef_engraver
      \remove Key_engraver
      \remove Time_signature_engraver
    }
  }
}
\markup \line {
   { Here is a
      \raise #1.75
      \mySign
      followed by some text.
  }
}






reply via email to

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