%% Generated by lilypond-book
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=160\mm,paper-height=845.047\pt,paper-width=597.508\pt,papersize='(cons (* 597.508 pt) (* 845.047 pt))]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************

#(ly:set-option 'eps-box-padding 3.000000)



\paper {
  #(set-paper-size '(cons (* 597.508 pt) (* 845.047 pt)))
  indent = 0\mm
  line-width = 160\mm
  % offset the left padding, also add 1mm as lilypond creates cropped
  % images with a little space on the right
  line-width = #(- line-width (* mm  3.000000) (* mm 1))
}

\layout {
  
}




% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "snippets/aligning-text-marks-to-notes.ly"
\sourcefileline 0
%% DO NOT EDIT this file manually; it was automatically
%% generated from the LilyPond Wiki
%% (https://wiki.lilypond.community).
%%
%% Make any changes in the Wiki itself, or in
%% `Documentation/snippets/new/`, then run
%% `scripts/auxiliar/makelsr.pl`.
%%
%% This file is in the public domain.

\version "2.24.0"

\header {
%% Translation of GIT committish: c043783aac6c35926d633aa2daf60ed4f2e7ca7a
  texidocfr = "
Les objets @code{TextMark} s'alignent par défaut sur des objets
graphiques @code{NonMusicalPaperColumn} tels que le coin gauche de la
portée ou une barre de mesure. Ils peuvent aussi venir s'aligner dès
lors qu'aura été désactivée la propriété @code{non-musical}.
"

  doctitlefr = "Alignement de repère sur une note"

  categories = "Really simple, Text, Tweaks and overrides"

  texidoc = "
By default, @code{TextMark} objects are aligned to so-called
@code{NonMusicalPaperColumn} grobs, like the left edge of the staff or
a bar line. They can be aligned to a note instead by setting the
@code{non-musical} property to @code{#f}.
"

  doctitle = "Aligning text marks to notes"
} % begin verbatim


\layout {
  line-length = 80\mm
}

{
  \textMark "mark a" c'1 |
  \textMark "mark b" c'1 |
  \break
  \override Score.TextMark.non-musical = ##f
  \textMark "mark c" c'1 |
  \textMark "mark d" c'1 |
}



% ****************************************************************
% end ly snippet
% ****************************************************************
