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

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

Personnaliser la table des matière.


From: Leduc Benjamin
Subject: Personnaliser la table des matière.
Date: Sat, 22 Oct 2016 10:47:29 +0000 (UTC)

Bonjour, 

Je suis en train d'élaborer un recueil de partitions, pour la table des 
matières, j'aimerais faire apparaitre les titres de sections comme ce qui est 
proposé ici: 
GNU LilyPond – Manuel de notation: 3.2.6 Table des matières 


http://lilypond.org/doc/v2.19/Documentation/notation/table-of-contents.fr.html
 

J'ai essayé le code proposé: 

%% Generated by lilypond-book.py
%% Options: [exampleindent=10.16\mm,indent=0\mm,line-width=10.0\cm]
\include "lilypond-book-preamble.ly"


% ****************************************************************
% Start cut-&-pastable-section
% ****************************************************************



\paper {
indent = 0\mm
line-width = 10.0\cm
% 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:
% ****************************************************************
\sourcefileline 2007
\header { tagline = ##f }
\paper {
tocActMarkup = \markup \large \column {
\hspace #1
\fill-line { \null \italic \fromproperty #'toc:text \null }
\hspace #1
}
}

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

\book {
\markuplist \table-of-contents
\tocAct \markup { Atto Primo }
\tocItem \markup { Coro. Viva il nostro Alcide }
\tocItem \markup { Cesare. Presti omai l'Egizia terra }
\tocAct \markup { Atto Secondo }
\tocItem \markup { Sinfonia }
\tocItem \markup { Cleopatra. V'adoro, pupille, saette d'Amore }
\markup \null
}



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

et cela n'a pas fonctionné: 
GNU LilyPond 2.18.2
Traitement de « Table.ly »
Analyse.../opt/local/share/lilypond/2.18.2/scm/ly-syntax-constructors.scm:56:23:
 In expression (apply (ly:music-function-extract fun) parser ...):

/opt/local/share/lilypond/2.18.2/scm/ly-syntax-constructors.scm:56:23: Wrong 
number of arguments to #<procedure #f (text)>

Qui pourrait:
-M'aider à réaliser ceci
-Mettre à jour le code le cas échéant 

Merci d'avance 

Benjamin 


reply via email to

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