eddelbuettel / pinp

Pinp Is Not PNAS -- Two-Column PDF Template
147 stars 25 forks source link

change page numbering #60

Closed ikashnitsky closed 6 years ago

ikashnitsky commented 6 years ago

Is it possible to give a custom range of page numbers to a document? [I have a semi crazy idea to layout PhD thesis as a journal issue using pinp]

eddelbuettel commented 6 years ago

"Probably" in the sense of "everything is possible with LaTeX". See eg https://tex.stackexchange.com/questions/66562/how-to-set-page-counter-by-skipping-first-page

Now, is that something pinp needs to expose via its API? Hm. Not so sure... Can you work with a local copy?

ikashnitsky commented 6 years ago

Thanks a lot!

Isn't this something that might be generally useful as a yaml option?

eddelbuettel commented 6 years ago

Yes that is where we would put it (and where you can put it). I just do not think it is of enough general interest to warrant it as a package feature. Which is why I would prefer to close this.

ikashnitsky commented 6 years ago

Ok, I see. Thank you!

eddelbuettel commented 6 years ago

Actually, I think you can even set that in the middle of (or beginning of) your document. No need for YAML header, and no need for modifications!

ikashnitsky commented 5 years ago

@eddelbuettel thanks a lot for pointing me to \setcounter{page}{N} -- this is a really easy and elegant solution to my question.

May I ask another one here. Is there a way to suppress date in the footer and the line "This version was compiled on ..."?

coatless commented 5 years ago

Potentially, you could supply a \date entry in include-after: YAML key that would override the hard coded value used here:

https://github.com/eddelbuettel/pinp/blob/63398731a5ad55799b96420c36b768ee03f27047/inst/rmarkdown/templates/pdf/resources/template.tex#L64