lilypond-user-fr
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Signets de pages pdf


From: Vincent Gay
Subject: Re: Signets de pages pdf
Date: Wed, 24 Aug 2022 22:47:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Le 24/08/2022 à 20:03, Jean Abou Samra a écrit :
À tout hasard, est-ce que tu as mis des \tocItem mais sans \markuplist \table-of-contents ? Car c'est ce \markuplist \table-of-contents qui ajoute la outline.
Non, j'ai tout fait comme il faut

Par contre j'ai avancé un peu avec Okular. La notion de Signet est purement interne et absolument pas lié à un pdf : c'est un peu comme les marque-pages de Firefox et enregistré dans la config locale. Par contre il existe bien un onglet contenu mais celui-ci ne s'affiche que s'il existe un contenu. Exemple (New Real Book vol. II) :




Dans ce que je produit avec Lily rien, nada, que dalle ! L’icône ne s'affiche même pas. pdf joint (tiré du même exemple que précédemment) et code ci-dessous

N.B. je suis toujours en 2.23.11

\version "2.23.11"

\paper {
  indent = 0\mm
  ragged-last-bottom = ##t
  ragged-last = ##f
  %   markup-system-spacing = #'((basic-distance . 18)
  %                              (minimum-distance . 8)
  %                              (padding . 1))
  tocActMarkup = \markup \large \column {
    \hspace #1
    \fill-line { \null \italic \fromproperty #'toc:text \null }
    \hspace #1
  }
  tocItemMarkup = \markup
  \fill-line {
    \fill-with-pattern #1.5 #CENTER .
    \line {
      \hspace #-4 %% Cancelling the first level's tocIndentMarkup
      \fromproperty #'toc:indent \fromproperty #'toc:text
      \hspace #2
    }
    \fromproperty #'toc:page
  }
  tocTitleMarkup =
  \markup {
    \column {
      \vspace #3
      \fill-line { \fontsize #9 "Music Title" }
      \fill-line { \fontsize #3 "Music from Someone" }
    }
  }
}

tocAct =
#(define-music-function (label text) (symbol-list-or-symbol? markup?)
   (add-toc-item! 'tocActMarkup text label))


\header { tagline = ##f }

basse = { \clef "bass" \repeat unfold 4 { c1 } }
tenor = { \repeat unfold 4 { e'1 } }
trompette = { \repeat unfold 4 { bes'1 } }
accords = \chordmode { c1:7 }

\book {
  \paper {
    #(set-paper-size "a4")
    print-first-page-number = ##f
  }
  #(define output-suffix "a4")
  \bookpart {
    \paper { line-width = 13.0\cm }
        \markuplist \table-of-contents
  }
  \bookpart {
    \header { subtitle = "For C Instruments" }
    \tocAct CaIV \markup { "For C Instruments" }
    \tocItem \markup { \underline "Trumpet Part" }
    \score {
      <<
        \new ChordNames { \accords }
        \new Staff  \with { instrumentName = Trumpet } \trompette
      >>
    }
  }
  \bookpart {
    \header { subtitle = "For C Instruments" }
    \tocItem \markup { \underline "Tenor Part" }
    \score {
      <<
        \new ChordNames { \accords }
        \new Staff  \with { instrumentName = Tenor } \tenor
      >>
    }
  }
  \bookpart {
    \header { subtitle = "For C Instruments" }
    \tocItem \markup { \underline "Bass Part" }
    \score {
      <<
        \new ChordNames { \accords }
        \new Staff  \with { instrumentName = Bass } \basse
      >>
    }
  }
  \bookpart {
    \header { subtitle = \markup \concat { "For B" \flat " Instruments" } }
    \tocAct BbaIV \markup \concat { "For B" \flat " Instruments" }
    \tocItem \markup { \underline "Trumpet Part" }
    \score {
      <<
        \new ChordNames { \transpose c d \accords }
        \new Staff  \with { instrumentName = Trumpet } \transpose c d \trompette
      >>
    }
  }
  \bookpart {
    \header { subtitle = \markup \concat { "For B" \flat " Instruments" } }
    \tocItem \markup { \underline "Tenor Part" }
    \score {
      <<
        \new ChordNames { \transpose c d \accords }
        \new Staff  \with { instrumentName = Tenor } \transpose c d \tenor
      >>
    }
  }
  \bookpart {
    \header { subtitle = \markup \concat { "For E" \flat " Instruments" } }
    \tocAct EbaIV \markup \concat { "For E" \flat " Instruments" }
    \tocItem \markup { \underline "Trumpet Part" }
    \score {
      <<
        \new ChordNames { \transpose c a \accords }
        \new Staff  \with { instrumentName = Trumpet } \transpose c a \trompette
      >>
    }
  }
  \bookpart {
    \header { subtitle = \markup \concat { "For E" \flat " Instruments" } }
    \tocItem \markup { \underline "Tenor Part" }
    \score {
      <<
        \new ChordNames { \transpose c a \accords }
        \new Staff  \with { instrumentName = Tenor } \transpose c a \tenor
      >>
    }
  }
}

-- 
Vincent Gay
Envoyé depuis mon saxo-phone :)
https://myrealbook.vintherine.org/ - http://photos.vintherine.org/

Attachment: Toc-a4.pdf
Description: Adobe PDF document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]