|
From: | Jean Abou Samra |
Subject: | Re: pageBreak outside a score? |
Date: | Fri, 05 May 2023 23:36:08 +0200 |
User-agent: | Evolution 3.48.1 (3.48.1-1.fc38) |
Le vendredi 05 mai 2023 à 11:02 -0700, Eric Benson a écrit :
Would there be a way to conditionally include a \pageBreak at top level? E.g. \if #(some-predicate) { \pageBreak }
Try
$(if (some-predicate) #{ \pageBreak #})
Generally speaking, LilyPond doesn't reinvent the wheel through a full-fledged programming language of its own, but just reuses its host language, Scheme.
Reading these pages might help:
https://extending-lilypond.gitlab.io/en/scheme/conditions.html#if-syntax
https://extending-lilypond.gitlab.io/en/extending/intro.html#inserting-scheme-inside-lilypond
https://extending-lilypond.gitlab.io/en/extending/lily-and-scheme.html
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] | Current Thread | [Next in Thread] |