Re: extracting page number

2023-11-03 Thread Paul Scott
On 11/3/23 9:31 AM, Jean Abou Samra wrote: Le vendredi 03 novembre 2023 à 09:13 -0700, Paul Scott a écrit : Thank you!  I thought it was a type problem.  The solution would have been clear in C or Fortran or Pascal or Forth that I have programmed in. Except that it doesn't work /blush/...

Re: extracting page number

2023-11-03 Thread Paul Scott
On 11/3/23 2:43 AM, Jean Abou Samra wrote: Le 3 nov. 2023 à 09:35, Paul Scott a écrit : \markup\fill-line{ \firstPage } 59 is a number, but you're trying to use it as a string, so try \markup \fill-line { #(markup->string firstPage) } I tried: \version "2.25.9" firstPage = #59 \book{

Re: extracting page number

2023-11-03 Thread Jean Abou Samra
Le vendredi 03 novembre 2023 à 09:13 -0700, Paul Scott a écrit : > Thank you!  I thought it was a type problem.  The solution would have > been clear in C or Fortran or Pascal or Forth that I have programmed in. Except that it doesn't work *blush*... I wanted to write "number->string" and some

Re: extracting page number

2023-11-03 Thread Paul Scott
Thank you!  I thought it was a type problem.  The solution would have been clear in C or Fortran or Pascal or Forth that I have programmed in. Paul On 11/3/23 2:43 AM, Jean Abou Samra wrote: Le 3 nov. 2023 à 09:35, Paul Scott a écrit : \markup\fill-line{ \firstPage } 59 is a number, but

Re: extracting page number

2023-11-03 Thread Jean Abou Samra
> Le 3 nov. 2023 à 09:35, Paul Scott a écrit : > > \markup\fill-line{ \firstPage } 59 is a number, but you're trying to use it as a string, so try \markup \fill-line { #(markup->string firstPage) }

Re: extracting page number

2023-11-03 Thread Paul Scott
On 11/3/23 12:42 AM, Jean Abou Samra wrote: Le 3 nov. 2023 à 07:56, Paul Scott a écrit : I know how to use fromproperty to put the page number in a header or footer.  Can I get the page number in a variable so I can use it in another text string? It depends on what kind of variable you ar

Re: extracting page number

2023-11-03 Thread Hans Aikema
> On 3 Nov 2023, at 08:43, Jean Abou Samra wrote: > >>> Le 3 nov. 2023 à 07:56, Paul Scott a écrit : >>> >> I know how to use fromproperty to put the page number in a header or footer. >> Can I get the page number in a variable so I can use it in another text >> string? > > > It depends

Re: extracting page number

2023-11-03 Thread Jean Abou Samra
 > Le 3 nov. 2023 à 07:56, Paul Scott a écrit : > I know how to use fromproperty to put the page number in a header or footer. > Can I get the page number in a variable so I can use it in another text > string? It depends on what kind of variable you are talking about and what you want to

extracting page number

2023-11-02 Thread Paul Scott
2.25.9 I know how to use fromproperty to put the page number in a header or footer.  Can I get the page number in a variable so I can use it in another text string? TIA, Paul