-%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
+%% Do not edit this file; it is auto-generated from input/new
%% This file is in the public domain.
-\version "2.11.48"
+%% Note: this file works from version 2.12.0
+\version "2.12.0"
\header {
- lsrtags = "text, paper-and-layout, titles"
-
- texidoc = "
-Instrument names are generally printed at the left side of the staves.
-To align the names of several different intruments, you can put them in
-a @code{\\markup} block and use one of the following possibilites:
-
-*
- Right-aligned instrument names: this is the default behavior
-
-*
- Center-aligned instrument names: with the @code{\\hcenter-in #n}
-command, you
- can place the instrument names inside a padded box (@code{n} being the
-width
- of the box)
-
-*
- Left-aligned instrument names: you have to print the names on top of an
- empty box, using the @code{\\combine} command
- with an @code{\\hspace #n} object.
-
-
+%% Translation of GIT committish: 740b9a6c16eb30a84b216d23aeb848aa1b632be6
+ 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 = "text, paper-and-layout, titles"
+ texidoc = "The horizontal alignment of instrument names is tweaked
+by changing the @code{Staff.InstrumentName #'self-alignment-X} property.
+The @code{\\layout} variables @code{indent} and @code{short-indent}
+define the space in which the instrument names are aligned before the
+first and the following systems, respectively."
doctitle = "Aligning and centering instrument names"
} % begin verbatim
+
+
\paper {
- indent = #0
- left-margin = #30
- line-width = #160
+ left-margin = 3\cm
}
-\new StaffGroup \relative <<
- \new Staff {
- \set Staff.instrumentName = "Piccolo"
- c1^"default" c \break
- \set Staff.instrumentName = \markup { \hcenter-in #10 "Piccolo" }
- c1^"centered" c \break
- \set Staff.instrumentName = \markup { \combine \hspace #8 "Piccolo" }
- c1^"left-aligned" c
- }
- \new Staff {
- \set Staff.instrumentName = "Flute"
- c1 c \break
- \set Staff.instrumentName = \markup { \hcenter-in #10 "Flute" }
- c1 c \break
- \set Staff.instrumentName = \markup { \combine \hspace #8 "Flute" }
- c1 c
+\score {
+ \new StaffGroup <<
+ \new Staff {
+ \override Staff.InstrumentName #'self-alignment-X = #LEFT
+ \set Staff.instrumentName = \markup \left-column {
+ "Left aligned"
+ "instrument name"
+ }
+ \set Staff.shortInstrumentName = #"Left"
+ c''1
+ \break
+ c''1
+ }
+ \new Staff {
+ \override Staff.InstrumentName #'self-alignment-X = #CENTER
+ \set Staff.instrumentName = \markup \center-column {
+ Centered
+ "instrument name"
+ }
+ \set Staff.shortInstrumentName = #"Centered"
+ g'1
+ g'1
+ }
+ \new Staff {
+ \override Staff.InstrumentName #'self-alignment-X = #RIGHT
+ \set Staff.instrumentName = \markup \right-column {
+ "Right aligned"
+ "instrument name"
+ }
+ \set Staff.shortInstrumentName = #"Right"
+ e'1
+ e'1
+ }
+ >>
+ \layout {
+ ragged-right = ##t
+ indent = 4\cm
+ short-indent = 2\cm
}
->>
+}