]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/aligning-objects-created-with-the--mark-command.ly
resolve merge
[lilypond.git] / Documentation / snippets / aligning-objects-created-with-the--mark-command.ly
diff --git a/Documentation/snippets/aligning-objects-created-with-the--mark-command.ly b/Documentation/snippets/aligning-objects-created-with-the--mark-command.ly
new file mode 100644 (file)
index 0000000..5c55788
--- /dev/null
@@ -0,0 +1,32 @@
+%% 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.14.0"
+
+\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
+}
+
+