How to create a command that sums using latex

Asked

Viewed 32 times

1

I need to put page numbering in the document I’m creating, but this document starts from page 20 for example, so I should use a command that does something like:

\cfoot{Página \thepage+20 de (Número total de Páginas)}

where thepage+20 would have to display the current page + 20, how to proceed?!

  • 1

    Wouldn’t it be enough to define the initial value of the page as 20? I think the \setcounter{page} does that.

  • thanks, it worked out!!!

1 answer

2


To control page numbering, simply set the value of the respective counter. In Latex, just use it at the beginning of the file to set the counter to start at 20:

\setcounter{page}{20}

Thus, the first page will be 20 and the subsequent ones will be counted normally, adding 1 to the counter.

References in the Stack Exchange network:

How can I set the page number to any needed value?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.