summaryrefslogtreecommitdiff
path: root/Documentation/snippets/aligning-objects-created-with-the--mark-command.ly
blob: c25eccd8a16d237457239aace1a6ea3b390118c7 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%% DO NOT EDIT this file manually; it is automatically
%% generated from LSR http://lsr.dsi.unimi.it
%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
%% and then run scripts/auxiliar/makelsr.py
%%
%% This file is in the public domain.
\version "2.17.6"

\header {
  lsrtags = "text"

  texidoc = "
By default the @code{\\mark} command centers objects over a bar line.
This behavior can be modified to align at right or left.

"
  doctitle = "Aligning objects created with the \\mark command"
} % begin verbatim


\relative c' {
  c1 \mark "(Center)"
  c1
  \once \override Score.RehearsalMark.self-alignment-X = #LEFT
  \mark "(Left)"
  c4 c c c
  c4 c c c
  \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
  \mark "(Right)"
  c1
}