Re: custom titles example doesn't work
2008/8/26 Tom Cloyd: > You're asking ME? Like I'd know? Thanks so much for the code. I'll have to > study up on it a bit, as it's not exactly something I can readily understand > at this point. It'll be good for me to dig into this, no doubt. I'm sorry for messing you up. You don't need to add the "#(define (not-first-page" stuff. I didn't notice that the not-first-page function is already present in titling-init.ly inside LP installation. I wonder if you already had a look at the titling-init.ly. There are some examples how the standard LP headers are constructed and the usage of first-page, not-first-page and other functions are shown there. That helped me a lot when I tried to understand the header stuff. > So, next I try it with "even..." It prints title and composer on page 2, > but wipes out the page number. That's not exactly what I had in mind. > Man, I gotta figure this out before I score my next symphony (heh heh). The new example has page numbers, too. :-) -Risto Updated source: %%% start %%% \version "2.11.56" \header { title = "Foo Bar opus 1" composer = "John The Composer" } \paper { oddHeaderMarkup = \markup { \fill-line { \on-the-fly #not-first-page { \concat { "page " \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string " – " \fromproperty #'header:title } \fromproperty #'header:composer } } } evenHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \concat { \fromproperty #'header:composer " – page " \on-the-fly #print-page-number-check-first \fromproperty #'page:page-number-string } } } ragged-bottom = ##t ragged-last-bottom = ##t } { c'1 \pageBreak c' \pageBreak c' \pageBreak c' } %%% END %%% ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
So, next I try it with "even..." It prints title and composer on page 2, but wipes out the page number. That's not exactly what I had in mind. Man, I gotta figure this out before I score my next symphony (heh heh). t. Tom Cloyd wrote: James, and Reinhold, Thanks for your response. Yes it is late, but that's not the problem (really!). THIS is the problem - the Notation Reference (NR) for GNU LilyPond version 2.11.56, section 3.2.2 on creating custom titles, says this about "evenHeaderMarkup": "This is the page header for even-numbered pages. If unspecified, the odd header is used instead." So by specifying "odd..." but NOT "even..." I was trying to be clever and specify both in one statement. The documentation, to me, indicates that this is possible, and even a designed in feature. That would be perfect, since what I'm wanting is a title on each page, so that loose page are identified as to the piece they're from. A reasonable idea, no? But what I got was something different. I got a header on page 1 - clearly not needed, as it's already titled, but not one on page 2, where the documentation says there should be one, by virtue of the default. Is my confusion a bit more understandable now? I'm not sure what to do at this point. t. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Dienstag, 26. August 2008 schrieb Tom Cloyd: That has the effect of putting the desired header on page 1, where it isn't wanted, but not on page 2, where it is. In my code file I have things in this order (is that the problem?): You are defining "oddPageHeader", which is for odd-numbered pages. If you want the header to appear on page 2, you should use "evenPageHeader" instead... Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFIs90xTqjEwhXvPN0RAsEqAJ9vf9kpIIkRPeTeZW17VyHRlXvNngCghIYw BQ5SSuT3x24DNrXvPGWMV9c= =Cjxg -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
Hi Tom, 2008/8/26 Tom Cloyd: > So by specifying "odd..." but NOT "even..." I was trying to be clever and > specify both in one statement. The documentation, to me, indicates that this > is possible, and even a designed in feature. That would be perfect, since > what I'm wanting is a title on each page, so that loose page are identified > as to the piece they're from. A reasonable idea, no? > > I'm not sure what to do at this point. Is this what you're after? %%% start %%% \version "2.11.56" \header { title = "Foo Bar opus 1" composer = "John The Composer" } #(define (not-first-page layout props arg) (if (= (chain-assoc-get 'page:page-number props -1) (ly:output-def-lookup layout 'first-page-number)) empty-stencil (interpret-markup layout props arg))) \paper { oddHeaderMarkup = \markup { \fill-line { \on-the-fly #not-first-page { \fromproperty #'header:title \fromproperty #'header:composer }} } evenHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer } } ragged-bottom = ##t ragged-last-bottom = ##t } { c'1 \pageBreak c' \pageBreak c' \pageBreak c' } %%% END %%% -Risto ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
James, and Reinhold, Thanks for your response. Yes it is late, but that's not the problem (really!). THIS is the problem - the Notation Reference (NR) for GNU LilyPond version 2.11.56, section 3.2.2 on creating custom titles, says this about "evenHeaderMarkup": "This is the page header for even-numbered pages. If unspecified, the odd header is used instead." So by specifying "odd..." but NOT "even..." I was trying to be clever and specify both in one statement. The documentation, to me, indicates that this is possible, and even a designed in feature. That would be perfect, since what I'm wanting is a title on each page, so that loose page are identified as to the piece they're from. A reasonable idea, no? But what I got was something different. I got a header on page 1 - clearly not needed, as it's already titled, but not one on page 2, where the documentation says there should be one, by virtue of the default. Is my confusion a bit more understandable now? I'm not sure what to do at this point. t. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Dienstag, 26. August 2008 schrieb Tom Cloyd: That has the effect of putting the desired header on page 1, where it isn't wanted, but not on page 2, where it is. In my code file I have things in this order (is that the problem?): You are defining "oddPageHeader", which is for odd-numbered pages. If you want the header to appear on page 2, you should use "evenPageHeader" instead... Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFIs90xTqjEwhXvPN0RAsEqAJ9vf9kpIIkRPeTeZW17VyHRlXvNngCghIYw BQ5SSuT3x24DNrXvPGWMV9c= =Cjxg -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am Dienstag, 26. August 2008 schrieb Tom Cloyd: > That has the effect of putting the desired header on page 1, where it > isn't wanted, but not on page 2, where it is. In my code file I have > things in this order (is that the problem?): You are defining "oddPageHeader", which is for odd-numbered pages. If you want the header to appear on page 2, you should use "evenPageHeader" instead... Cheers, Reinhold - -- - -- Reinhold Kainhofer, Vienna University of Technology, Austria email: [EMAIL PROTECTED], http://reinhold.kainhofer.com/ * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/ * K Desktop Environment, http://www.kde.org, KOrganizer maintainer * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) iD8DBQFIs90xTqjEwhXvPN0RAsEqAJ9vf9kpIIkRPeTeZW17VyHRlXvNngCghIYw BQ5SSuT3x24DNrXvPGWMV9c= =Cjxg -END PGP SIGNATURE- ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
Am 26.08.2008 um 12:04 schrieb Tom Cloyd: That has the effect of putting the desired header on page 1, where it isn't wanted, but not on page 2, where it is. It's late, you should probably get some sleep. Page one is an odd numbered page, so the oddHeaderMarkup will show up on that page. You probably want the evenHeaderMarkup. In my code file I have things in this order (is that the problem?): \version... \paper... \layout... \header... \score... Any help much appreciated! t. James E. Bailey wrote: and looking at it more closely, try adding a space after #'header:composer Am 26.08.2008 um 09:22 schrieb Tom Cloyd: [LilyPond-2.11.56 (development-branch), in Kubuntu Linux 8.04.1] Inserting the definition example given in "3.2.1 Creating titles" of the Notation Reference (NR) for GNU LilyPond version 2.11.56 into my code file give me the most amazing page of error message. I don't see the problem, and don't understand the error msg. If someone can quickly point out my error, I'd be grateful. Without the insertion, this code file runs without error and produces excellent output. The inserted code: oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } The entire section from my code file: \paper { #(set-default-paper-size "letter" 'portrait) oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } ragged-last-bottom = ##t % turns off vertical justify left-margin = 0.6\in line-width = 7\in % works better than specifying R-margin bottom-margin = 0.7\in top-margin = 0.7\in } The initial part of the error messages: GNU LilyPond 2.11.56 Processing `prelude01.ly' Parsing... prelude01.ly:11:23: error: syntax error, unexpected SCM_TOKEN ragged-last-bottom = ##t % turns off vertical justify prelude01.ly:32:9: error: syntax error, unexpected STRING, expecting \default or NOTENAME_PITCH \key g \major prelude01.ly:39:5: error: syntax error, unexpected STRING { r2. < e'' fis''-4\3 g''-1\2 >2\sfz \fermata |} \\ Thanks for any help! Tom -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
That has the effect of putting the desired header on page 1, where it isn't wanted, but not on page 2, where it is. In my code file I have things in this order (is that the problem?): \version... \paper... \layout... \header... \score... Any help much appreciated! t. James E. Bailey wrote: and looking at it more closely, try adding a space after #'header:composer Am 26.08.2008 um 09:22 schrieb Tom Cloyd: [LilyPond-2.11.56 (development-branch), in Kubuntu Linux 8.04.1] Inserting the definition example given in "3.2.1 Creating titles" of the Notation Reference (NR) for GNU LilyPond version 2.11.56 into my code file give me the most amazing page of error message. I don't see the problem, and don't understand the error msg. If someone can quickly point out my error, I'd be grateful. Without the insertion, this code file runs without error and produces excellent output. The inserted code: oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } The entire section from my code file: \paper { #(set-default-paper-size "letter" 'portrait) oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } ragged-last-bottom = ##t % turns off vertical justify left-margin = 0.6\in line-width = 7\in % works better than specifying R-margin bottom-margin = 0.7\in top-margin = 0.7\in } The initial part of the error messages: GNU LilyPond 2.11.56 Processing `prelude01.ly' Parsing... prelude01.ly:11:23: error: syntax error, unexpected SCM_TOKEN ragged-last-bottom = ##t % turns off vertical justify prelude01.ly:32:9: error: syntax error, unexpected STRING, expecting \default or NOTENAME_PITCH \key g \major prelude01.ly:39:5: error: syntax error, unexpected STRING { r2. < e'' fis''-4\3 g''-1\2 >2\sfz \fermata |} \\ Thanks for any help! Tom -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
and looking at it more closely, try adding a space after #'header:composer Am 26.08.2008 um 09:22 schrieb Tom Cloyd: [LilyPond-2.11.56 (development-branch), in Kubuntu Linux 8.04.1] Inserting the definition example given in "3.2.1 Creating titles" of the Notation Reference (NR) for GNU LilyPond version 2.11.56 into my code file give me the most amazing page of error message. I don't see the problem, and don't understand the error msg. If someone can quickly point out my error, I'd be grateful. Without the insertion, this code file runs without error and produces excellent output. The inserted code: oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } The entire section from my code file: \paper { #(set-default-paper-size "letter" 'portrait) oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } ragged-last-bottom = ##t % turns off vertical justify left-margin = 0.6\in line-width = 7\in % works better than specifying R-margin bottom-margin = 0.7\in top-margin = 0.7\in } The initial part of the error messages: GNU LilyPond 2.11.56 Processing `prelude01.ly' Parsing... prelude01.ly:11:23: error: syntax error, unexpected SCM_TOKEN ragged-last-bottom = ##t % turns off vertical justify prelude01.ly:32:9: error: syntax error, unexpected STRING, expecting \default or NOTENAME_PITCH \key g \major prelude01.ly:39:5: error: syntax error, unexpected STRING { r2. < e'' fis''-4\3 g''-1\2 >2\sfz \fermata |} \\ Thanks for any help! Tom -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
Re: custom titles example doesn't work
looks like something before line 11 of your input file is incorrect, causing line 11 to have errors and something before line 32 as well. Maybe an unclosed bracket? or scheme setting that doesn't habe enough space around it? Am 26.08.2008 um 09:22 schrieb Tom Cloyd: [LilyPond-2.11.56 (development-branch), in Kubuntu Linux 8.04.1] Inserting the definition example given in "3.2.1 Creating titles" of the Notation Reference (NR) for GNU LilyPond version 2.11.56 into my code file give me the most amazing page of error message. I don't see the problem, and don't understand the error msg. If someone can quickly point out my error, I'd be grateful. Without the insertion, this code file runs without error and produces excellent output. The inserted code: oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } The entire section from my code file: \paper { #(set-default-paper-size "letter" 'portrait) oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } ragged-last-bottom = ##t % turns off vertical justify left-margin = 0.6\in line-width = 7\in % works better than specifying R-margin bottom-margin = 0.7\in top-margin = 0.7\in } The initial part of the error messages: GNU LilyPond 2.11.56 Processing `prelude01.ly' Parsing... prelude01.ly:11:23: error: syntax error, unexpected SCM_TOKEN ragged-last-bottom = ##t % turns off vertical justify prelude01.ly:32:9: error: syntax error, unexpected STRING, expecting \default or NOTENAME_PITCH \key g \major prelude01.ly:39:5: error: syntax error, unexpected STRING { r2. < e'' fis''-4\3 g''-1\2 >2\sfz \fermata |} \\ Thanks for any help! Tom -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user
custom titles example doesn't work
[LilyPond-2.11.56 (development-branch), in Kubuntu Linux 8.04.1] Inserting the definition example given in "3.2.1 Creating titles" of the Notation Reference (NR) for GNU LilyPond version 2.11.56 into my code file give me the most amazing page of error message. I don't see the problem, and don't understand the error msg. If someone can quickly point out my error, I'd be grateful. Without the insertion, this code file runs without error and produces excellent output. The inserted code: oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } The entire section from my code file: \paper { #(set-default-paper-size "letter" 'portrait) oddHeaderMarkup = \markup { \fill-line { \fromproperty #'header:title \fromproperty #'header:composer} } ragged-last-bottom = ##t % turns off vertical justify left-margin = 0.6\in line-width = 7\in % works better than specifying R-margin bottom-margin = 0.7\in top-margin = 0.7\in } The initial part of the error messages: GNU LilyPond 2.11.56 Processing `prelude01.ly' Parsing... prelude01.ly:11:23: error: syntax error, unexpected SCM_TOKEN ragged-last-bottom = ##t % turns off vertical justify prelude01.ly:32:9: error: syntax error, unexpected STRING, expecting \default or NOTENAME_PITCH \key g \major prelude01.ly:39:5: error: syntax error, unexpected STRING { r2. < e'' fis''-4\3 g''-1\2 >2\sfz \fermata |} \\ Thanks for any help! Tom -- ~ Tom Cloyd, MS MA, LMHC - Private practice Psychotherapist Bellingham, Washington, U.S.A: (360) 920-1226 << [EMAIL PROTECTED] >> (email) << TomCloyd.com >> (website) << sleightmind.wordpress.com >> (mental health weblog) ~ ___ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user