Jump to content

Positioning text markups inside slurs: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
Text markups need to have the <code>outside-staff-priority</code> property set to false in order to be printed inside slurs.
Text markups need to have the <code>outside-staff-priority</code> property set to false in order to be printed inside slurs.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative c'' {
\relative c'' {
   \override TextScript.avoid-slur = #'inside
   \override TextScript.avoid-slur = #'inside

Revision as of 18:53, 16 November 2025

Text markups need to have the outside-staff-priority property set to false in order to be printed inside slurs.

\version "2.24"

\relative c'' {
  \override TextScript.avoid-slur = #'inside
  \override TextScript.outside-staff-priority = ##f
  c2(^\markup { \halign #-10 \natural } d4.) c8
}