bug-lilypond
[Top][All Lists]
Advanced

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

Re: \\bookOutputName not working if a \\paper block uses a previously de


From: David Kastrup
Subject: Re: \\bookOutputName not working if a \\paper block uses a previously defined variable
Date: Sun, 25 Mar 2012 23:50:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux)

Eluze <address@hidden> writes:

> Am 25.03.2012 19:35, schrieb David Kastrup: 
>
>     
>     
> Personally, I think it would make more sense if people just placed
> assignments to output-filename and output-suffix inside of the book's
> paper block.  That's straightforward to understand and does not require
> keeping magical ordering relations in mind.  \bookOutputName is more
> like a compatibility API.  A courtesy to keep around, but not as
> straightforward in its implications.
>
>
> this works:
>
> bigMargin = \paper { top-margin = 10 \cm }
> \book {
>   \paper {
>     \bigMargin
>     #(define output-filename "output-filename")
>   }
>   \relative {c d e f}
> }

Ugh.  Why don't you write
\paper {
  \bigMargin
  output-filename = "output-filename"
}

> this not (because of the order):
>
> \book {
>   \paper {
>     #(define output-suffix "output-filename")
>     \bigMargin
>   }
>   \relative {c d e f}
> }

Hardly surprising now, is it, if you write it as _assignment_ rather
than as some weird Scheme block?

> output-suffix is mentioned in Usage, Snippets and NR; output-filename
> can not be found

I was not suggesting that the documentation was already in a useful
state.  Rather I was suggesting _how_ we should preferably fix it.

-- 
David Kastrup



reply via email to

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