diff options
author | Phil Holmes <mail@philholmes.net> | 2015-08-13 15:10:22 +0100 |
---|---|---|
committer | Phil Holmes <mail@philholmes.net> | 2015-10-02 11:52:56 +0100 |
commit | a22f2ad68fccb81e52f805ba69cb8c0e6bf8cd82 (patch) | |
tree | c827319ef3fd4c6da52dd4ea4506c9f35f27c13f | |
parent | ea03bb1d323aef010eea00c1709d3dab56c0bf0b (diff) |
Add PDF metadata section to NR; indexing; minor error fix
-rw-r--r-- | Documentation/notation/editorial.itely | 2 | ||||
-rw-r--r-- | Documentation/notation/input.itely | 45 |
2 files changed, 45 insertions, 2 deletions
diff --git a/Documentation/notation/editorial.itely b/Documentation/notation/editorial.itely index 0588a3fa48..96d0a75356 100644 --- a/Documentation/notation/editorial.itely +++ b/Documentation/notation/editorial.itely @@ -316,7 +316,7 @@ and @code{\revert} commands: \magnifyMusic @var{mag} @{ \newSpacingSection \override Score.SpacingSpanner.spacing-increment = #(* 1.2 @var{mag}) - @var{[music]} + [@var{music}] \newSpacingSection \revert Score.SpacingSpanner.spacing-increment @} diff --git a/Documentation/notation/input.itely b/Documentation/notation/input.itely index a5b04b4b24..485a75212d 100644 --- a/Documentation/notation/input.itely +++ b/Documentation/notation/input.itely @@ -521,12 +521,17 @@ Notation Reference: @node Titles and headers @section Titles and headers +@cindex titles +@cindex headers +@cindex footers + Almost all printed music includes a title and the composer's name; some pieces include a lot more information. @menu * Creating titles headers and footers:: * Custom titles headers and footers:: +* Creating PDF metadata:: * Creating footnotes:: * Reference to page numbers:: * Table of contents:: @@ -723,7 +728,7 @@ Notation Reference: @node Default layout of bookpart and score titles @unnumberedsubsubsec Default layout of bookpart and score titles -This example demonstrates all @code{\header} variables: +This example demonstrates all printed @code{\header} variables: @lilypond[papersize=a6landscape,quote,verbatim,noragged-right] \book { @@ -1194,6 +1199,44 @@ Notation Reference: Installed Files: @file{../ly/titling-init.ly}. +@node Creating PDF metadata +@subsection Creating PDF metadata + +@cindex PDF metadata + +In addition to being shown in the printed output, @code{\header} variables +are also used to set PDF metadata (the information displayed by PDF readers +as the @code{properties} of the PDF file). For example, setting the +@code{title} property of the @code{header} block @q{Symphony I} will also give +this title to the PDF document. + +@example + @code{\header@{} + @code{title = "Symphony I"} + @code{@}} +@end example + +If you want to set the title of the printed output to one value, but have the +title property of the PDF to have a different value, you can use +@code{pdftitle}, as below. + +@example + @code{\header@{} + @code{title = "Symphony I"} + @code{pdftitle = "Symphony I by Beethoven"} + @code{@}} +@end example + +The variables @code{title}, @code{subject}, @code{keywords}, +@code{subtitle}, @code{composer}, @code{arranger}, @code{poet}, @code{author} +and @code{copyright} all set PDF properties and can all be prefixed with +@q{pdf} to set a PDF property to a value different from the printed output. + +The PDF property @code{Creator} is automatically set to @q{LilyPond} plus +the current LilyPond version, and @code{CreationDate} and @code{ModDate} are +both set to the current date and time. @code{ModDate} can be overridden by +setting the header variable @code{moddate} (or @code{pdfmoddate}) to a +valid PDF date string. @node Creating footnotes @subsection Creating footnotes |