Nothing really heated here, but probably some communication issue. I try to listen to what you try to explain, but I hardly get anything about your actual problem and mostly critique how the solutions are not clean enough for you without really reasoning why this would be that way.
I’ve sent you an example of how we basically can get what Jean described (which involves adding some functionality to the header and footer markups which can be put into an include and then on line overrides (which can also be put into includes). You’ve then dismissed this as too much logic (when this actually just requires a very miniscule amount of additional functionality. Then when you talked about cover pages I gave you an example of a markup function that spreads markups vertically over the page (which can then be used to push stuff to the bottom). I’m spending lots of my time trying my best to help you, and it’s really frustrating then to get told to focus on „what you tried to explain”, especially when you give core specifications like "I just want to set simple fields” randomly in the end. And this really takes away a lot of motivation for trying to help people on the mailing list. Valentin Am Samstag, 18. Dezember 2021, 12:47:34 CET schrieb Paolo Prete: > On Sat, Dec 18, 2021 at 10:25 AM Jean Abou Samra <j...@abou-samra.fr> wrote: > > Hi, > > > > Okay, I'll let myself sucked in this (in my opinion > > unnecessarily) heated thread > > I really thank you for this post. It not only explains what I had in mind > regarding the technical side of the thread; it also highlights a bigger > problem: unnecessary heated mood. And I add that it is not only > unnecessary: when there are flames without fire, it is nonsense and > ridiculous too. I'm sorry if I use this harsh words, but this is what I see > in all this discussion. I would like to invite the participants to note > that I absolutely did NOT say any word against LP. Nor directly, nor > indirectly, nor explicitly, nor in a hidden or subtle way. At the same > time, I invite them (Including the helpful Aaron and Valentin) to focus on > what I really tried to explain (as you did) instead of negating any > assertion that seems (but it is really not) intended to reduce the LP > value. > > Best, > Paolo
\version "2.22" #(define page-in-header #t) \header { motto = "Some motto" } \paper { print-all-headers = ##t } #(define (page-in-header? layout props m) (if page-in-header (interpret-markup layout props m) empty-stencil)) #(define (not-page-in-header? layout props m) (if (not page-in-header) (interpret-markup layout props m) empty-stencil)) \paper { oddHeaderMarkup = \markup \on-the-fly #page-in-header? \fill-line { "" \on-the-fly #not-part-first-page \fromproperty #'header:instrument \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string } evenHeaderMarkup = \markup \on-the-fly #page-in-header? \fill-line { \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string \on-the-fly #not-part-first-page \fromproperty #'header:instrument "" } oddFooterMarkup = \markup { \column { \fill-line { %% Copyright header field only on first page in each bookpart. \on-the-fly #part-first-page \fromproperty #'header:motto } \on-the-fly #not-page-in-header? \fill-line { "" \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string "" } } } } { \repeat unfold 50 { c'1 c' c' c' \break } }
\header { tagline = ##f } #(define (printable-height layout props) (let ((height (ly:output-def-lookup layout 'paper-height)) (tm (ly:output-def-lookup layout 'top-margin)) (bm (ly:output-def-lookup layout 'bottom-margin))) (- height tm bm))) #(define-markup-command (vertical-fill layout props height mups) (number? markup-list?) (let* ((realheight (if (>= height 0) height (printable-height layout props))) (tmu (stack-lines -1 0.0 0 (interpret-markup-list layout props mups))) (muext (ly:stencil-extent tmu Y)) (muheight (- (cdr muext) (car muext))) (noels (length mups)) (space (if (> noels 1) (/ (- realheight muheight) (- noels 1)) 0)) (mu (if (> noels 1) (stack-lines -1 0.0 space (interpret-markup-list layout props mups)) (if (= noels 0) empty-stencil (interpret-markup layout props (car mups)))))) mu)) \markup \vertical-fill #-1 { a b \column { c d e } }
signature.asc
Description: This is a digitally signed message part.