[Top][All Lists]

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

Re: Make TOC entries available to LaTeX

From: Jan-Peter Voigt
Subject: Re: Make TOC entries available to LaTeX
Date: Thu, 19 Apr 2018 17:06:59 +0200
User-agent: K-9 Mail for Android

Hi Urs, I don't know either how to extract the toc from the PDF. But it should be easy to write the toc into some text file. Recently I did something similar to provide that info to those who compiled a book in inDesign.
I will extract it later, when I am back at my Workstation.


Am 19. April 2018 16:19:49 MESZ schrieb Urs Liska <address@hidden>:

Hi all,

I'm preparing an automated edition process using LuaLaTeX, Pandoc and LilyPond.

After some experimentation I have come to the conclusion that I'll have to insert the multi-movement score as a single PDF created by LilyPond (but through lyluatex to make use of caching and the layout mechanics).

I first had used lyluatex's facility to include the score's system by system and print all the titles with LaTeX, but this didn't work out - for the first time I realized that makes the vertical staff-staff spacing as tight as possible, which often makes the page layout pretty bad. Creating the movements separately is not an option either because not all movements will start on a new page.

So now I have included a multi-movement score in the LaTeX document and don't know how to add TOC entries (in LaTeX) for the movements. I can see two possible ways, but don't know if they are really possible and if so how to approach them:

  • Is it possible to insert something in the PDF output that LaTeX can pick up as TOC entries?
    (actually I doubt this is possible, but since it would be the easiest way I thought I'd ask anyway)
  • Can I reliably retrieve the current page number of a given score's title block?
    With that information I could write them to a log file and read that later in LaTeX.


PS: I don't know if it matters but the file is produced using ly:book-process etc.

Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

reply via email to

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