You need to use raw LaTeX

See section 4 here

Von meinem iPad gesendet

> Am 02.12.2023 um 15:39 schrieb Dennis Fisher <fis...@plessthan.com>:
> 
> OS X
> R 4.3.1
> 
> Colleagues
> 
> I often create multipage PDFs [pdf()] in which the text "Page X" appears in 
> the margin.  These PDFs are created automatically using a massive R script.
> 
> One of my clients requested that I change this to:
>    Page X of XX
> where XX is the total number of pages.  
> 
> I don't know the number of expected pages so I can't think of any clever way 
> to do this.  I suppose that I could create the PDF, find out the number of 
> pages, then have a second pass in which the R script was fed the number of 
> pages.  However, there is one disadvantage to this -- the original PDF 
> contains a timestamp on each page -- the new version would have a different 
> timestamp -- so I would prefer to not use this approach.
> 
> Has anyone thought of some terribly clever way to solve this problem?
> 
> Dennis
> 
> Dennis Fisher MD
> P < (The "P Less Than" Company)
> Phone / Fax: 1-866-PLessThan (1-866-753-7784)
> www.PLessThan.com
> 
> ______________________________________________
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to