%% 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/vertically-aligning-stanza-numbers-of-different-staves.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: 1abe87de51b9b00a391da1be4cf4b5ebe4021ca9
  texidocfr = "
Il peut arriver que les numéros de couplet ne s'alignent pas
verticalement s'ils sont attachés à différentes portées. Une adaptation
de la propriété @code{self-alignment-X} de l'objet graphique
@code{LyricText} permet d'y remédier.
"

  doctitlefr = "Alignement vertical des numéros de couplet sur différentes portées"

%% Translation of GIT committish: 092dbc00017de8297cdb0e84379b3b2be230e4b7
  texidoces = "
Puede ocurrir que los números de estrofa no estén alineados
verticalmente si los versos están adjuntos a distinto pentagrama.
Para corregirlo, seobreescriba la propiedad
@code{self-alignment-X} del objeto gráfico @code{LyricText}.
"

  doctitlees = "Alineación vertical de los números de estrofa de diferentes pentagramas"
  categories = "Tweaks and overrides, Vocal music"

  texidoc = "
It can happen that stanza numbers don't align vertically if the verses
are attached to different staves. To fix that, override the
@code{self-alignment-X} property of the @code{LyricText} grob.
"

  doctitle = "Vertically aligning stanza numbers of different staves"
} % begin verbatim


\markup { default behavior }

<<
  \new Staff { b b b b }
  \lyrics {
    \set stanza = "3."
    a a a a
  }

  \new Staff { b b b b }
  \lyrics {
    \set stanza = "1."
    aaaaaaaaaa a a a
  }
  \lyrics {
    \set stanza = "2."
    a a a a
  }
>>

\markup \vspace #1
\markup {
  using \typewriter "self-alignment-X = #LEFT" }

<<
  \new Staff { b b b b }
  \new Lyrics \lyricmode {
    \set stanza = "3."
    a a a a
  }

  \new Staff { b b b b }
  \new Lyrics \lyricmode {
    \set stanza = "1."
    \once \override LyricText.self-alignment-X = #LEFT
    aaaaaaaaaa a a a
  }
  \new Lyrics \lyricmode {
    \set stanza = "2."
    a a a a
  }
>>



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