X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Faligning-and-centering-instrument-names.ly;h=30bfc4acd8ecb2643bb94a262dc6d684d1ed0f76;hb=9468b77cb2ae93b992bfb9105016f3393d206b47;hp=85abf5fd2afa1d246fb1ac815cefc5e263b00160;hpb=a7210078ea5ed650743536c8fcd8b7291322d0e7;p=lilypond.git diff --git a/Documentation/snippets/aligning-and-centering-instrument-names.ly b/Documentation/snippets/aligning-and-centering-instrument-names.ly index 85abf5fd2a..30bfc4acd8 100644 --- a/Documentation/snippets/aligning-and-centering-instrument-names.ly +++ b/Documentation/snippets/aligning-and-centering-instrument-names.ly @@ -1,22 +1,14 @@ -%% Do not edit this file; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it -%% This file is in the public domain. -\version "2.13.16" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.19.56 +\version "2.19.56" \header { - lsrtags = "text, paper-and-layout, titles" - -%% Translation of GIT committish: 1d589aa04c20d7711bf662618adbdd6d445db29d - texidoces = " -La alineación horizontal de los nombres de instrumento se puede -trucar modificando la propiedad @code{Staff.InstrumentName -#'self-alignment-X}. Las variables de @code{\\layout} -@code{indent} y @code{short-indent} definen el espacio en que se -alinean los nombres de instrumento antes del primer sistema y de -los siguientes, respectivamente. - -" - doctitlees = "Alinear y centrar los nombres de instrumento" + lsrtags = "paper-and-layout, text, titles" texidoc = " The horizontal alignment of instrument names is tweaked by changing the @@ -29,44 +21,47 @@ and the following systems, respectively. doctitle = "Aligning and centering instrument names" } % begin verbatim -\paper { - left-margin = 3\cm -} +\paper { left-margin = 3\cm } % begin verbatim + \score { \new StaffGroup << - \new Staff { - \override Staff.InstrumentName #'self-alignment-X = #LEFT - \set Staff.instrumentName = \markup \left-column { + + \new Staff \with { + \override InstrumentName.self-alignment-X = #LEFT + instrumentName = \markup \left-column { "Left aligned" "instrument name" + } + shortInstrumentName = "Left" } - \set Staff.shortInstrumentName = #"Left" - c''1 - \break - c''1 - } - \new Staff { - \override Staff.InstrumentName #'self-alignment-X = #CENTER - \set Staff.instrumentName = \markup \center-column { + + { c''1 \break c''1 } + + \new Staff \with { + \override InstrumentName.self-alignment-X = #CENTER + instrumentName = \markup \center-column { Centered "instrument name" - } - \set Staff.shortInstrumentName = #"Centered" - g'1 - g'1 + } + shortInstrumentName = "Centered" } - \new Staff { - \override Staff.InstrumentName #'self-alignment-X = #RIGHT - \set Staff.instrumentName = \markup \right-column { + + { g'1 g'1} + + \new Staff \with { + \override InstrumentName.self-alignment-X = #RIGHT + instrumentName = \markup \right-column { "Right aligned" "instrument name" } - \set Staff.shortInstrumentName = #"Right" - e'1 - e'1 + shortInstrumentName = "Right" } + + { e'1 e'1 } + >> + \layout { ragged-right = ##t indent = 4\cm