lilypond-user
[Top][All Lists]
Advanced

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

Re: table-of-contents page links


From: David Kastrup
Subject: Re: table-of-contents page links
Date: Sat, 28 Apr 2012 01:07:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

> Am 27. April 2012 12:36 schrieb Jan-Peter Voigt <address@hidden>:
>> Hello list,
>>
>> for some Books, I set the first page number to -1, to start page numbers
>> with the real music.
>> Now the PDF-internal links to the corresponding pages refer to the wrong
>> page:
>> If a tocItem displays page 8 it will open PDF-page 8 but that has the
>> printed page-number 6, if its started with -1.
>>
>> Is this a bug, or can one tweak it?
>>
>> Cheers, Jan-Peter
>
> Hi,
>
> not sure it's a bug. It's the way \with-link works.
>
> But you may want to redefine it. See code below.
> I didn't manage to get acces to the `first-page-number' of \paper from
> inside define-markup-command, so I used a work-around. Do you know how
> to do?

Shouldn't (ly:output-def-lookup layout 'first-page-number) do the trick?

-- 
David Kastrup




reply via email to

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