Reuse \header definitions: Is it possible?

View: New views
2 Messages — Rating Filter:   Alert me  

Reuse \header definitions: Is it possible?

by Ariel David Moya Sequeira :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good evening!

I'm currently typesetting a string quartet. So far, I have all separate parts
already programmed, but I want to put all of them in a single PDF file. I was
thinking about using a single \header definition for all the separate parts, so
the same title, subtitle, composer and arranger are shown in each part.

The layout is organized in "bookparts" (one for each instrument) and notes are
defined in variables in separate files.

Is there a way to reuse a \header definition? Do I have no choice rather than
copy/paste it?

Thanks for your help in advance!



_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user

Re: Reuse \header definitions: Is it possible?

by Gilles Sadowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

> Is there a way to reuse a \header definition?

Yes; you put all your header items in a file which you then include wherever
you need them:

In file "header.inc.ly":
---CUT---
title = "..."
subtitle = "..."
composer = "..."
% etc.
---CUT---

And, in other files:
---CUT---
\header {
  \include "header.inc.ly"
}
---CUT---

Best,
Gilles


_______________________________________________
lilypond-user mailing list
lilypond-user@...
http://lists.gnu.org/mailman/listinfo/lilypond-user