%% 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/book-parts.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: a8a85e19654e46d725563e6deba44083ef137a2c
  texidocja = "
@code{\\bookpart} は、ブックをいくつかの部分に分けるために@c
用いることができます。それぞれの @code{\\bookpart} の最後のページが@c
@code{ragged-last-bottom} の影響を受けます。ヘッダやフッタのマークアップは
@code{\\bookpart} ごとの最後のページを識別することができ、ブック全体の@c
最後のページには異なるマークアップを用いることもできます。
"
  doctitleja = "ブック パート"

%% Translation of GIT committish: c043783aac6c35926d633aa2daf60ed4f2e7ca7a
  texidocfr = "
@code{\\bookpart} permet de découper un ouvrage en plusieurs parties.
La dernière page de chaque partie peut être affectée d'un
@code{ragged-last-bottom}. Les routines de formatage font la
distinction entre les @emph{markups} d'entête et de pied de page selon
qu'ils se rattachent à une partie ou bien à l'ouvrage entier.
"

  doctitlefr = "Partitionnement d'un ouvrage"

%% Translation of GIT committish: 70abecb938c2bb752967bd56b7402dd8129838a5
  texidoces = "
Se puede usar @code{\\bookpart} para dividir un libro en varias
partes.  La última página de cada parte vùede quedar afectada por
el valor de @code{ragged-last-bottom}.  Los elementos de marcado
de encabezamiento y pie de página pueden detectar que están en la
última página de una parte, para diferenciarla de la última página
del libro.
"
  doctitlees = "Partes de libro"

%% Translation of GIT committish: 8ffecf6be17c6ec2ff87cf31873121a8cce29b09
  texidocca = "
Es pot usar @code{\\bookpart} per dividir un llibre en diverses
parts.  L'última pàgina de cada part pot quedar afectada pel valor
de @code{ragged-last-bottom}.  Els elements de marcatge
d'encapçalament i peu de pàgina pot detectar que estiguin en la
ultima pàgina d'una part, i presentar diferències amb l'última
pàgina del llibre.

"
  doctitleca = "Parts de llibre"

  categories = "Paper and layout"

  texidoc = "
@code{\\bookpart} can be used to split a book into several parts. Each
part last page can be affected by @code{ragged-last-bottom}. Header and
footer markups can detect a part's last page to differentiate with the
book's last page.
"

  doctitle = "Book parts"
} % begin verbatim


#(set-default-paper-size "a6")

\book {
  %% book paper, which is inherited by all children bookparts
  \paper {
    ragged-last-bottom = ##t
    %% Page footer: add a different part-tagline at part last page
    oddFooterMarkup = \markup {
      \column {
        \fill-line {
          %% Copyright header field only on book first page.
          \if \on-first-page \fromproperty #'header:copyright
        }
        \fill-line {
          %% Part tagline header field only on each part last page.
          \if \on-last-page-of-part \fromproperty #'header:parttagline
        }
        \fill-line {
          %% Tagline header field only on book last page.
          \if \on-last-page \fromproperty #'header:tagline
        }
      }
    }
  }

  %% book header, which is inherited by the first bookpart
  \header {
    title = "Book title"
    copyright = "Copyright line on book first page"
    parttagline = "Part tagline"
    tagline = "Book tagline"
  }

  \bookpart {
    %% a different page breaking function may be used on each part
    \paper { page-breaking = #ly:minimal-breaking }
    \header { subtitle = "First part" }
    \markup { The first book part }
    \markup { a page break }
    \pageBreak
    \markup { first part last page }
    \markup \wordwrap {
      with ragged-last-bottom (see the space below this text) }
  }

  \bookpart {
    \header { subtitle = "Second part" }
    { c'4 }
  }

}



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