I have formatted one page of my document in a particular way. (including alignments) Now I want to have that particular setting for every page of my document. This would have been very easy if the page was an environment. (\renewenvironment would have solved my problem) My question is is there any way to renew the definitions of a page in the preamble itself so that they'll be held throughout the document for every page.

Here is the code -


  • \thispagestyle? \pagestyle for global setting? – JouleV Apr 23 at 14:13
  • I want every page to be vertically centered, I've a code ready with me, I just want it to be global. – Niranjan Apr 23 at 14:15
  • I think \pagestyle won't work here. There are only four valid options for that command. – Niranjan Apr 23 at 14:17
  • With titlesec you can define a new page style – JouleV Apr 23 at 14:18
  • 2
    if you have \pagebreak now it's a single edit to make them all \end{mypage} \begin{mypage} you could do it other ways but that seems the most natural markup. – David Carlisle Apr 23 at 14:50

There are document classes that are vertically centered by default:


\setbeamertemplate{navigation symbols}{}





  • beamer generally adds extra info to each page and setting beamer at the top of this master file would still require changes throughout the existing pages this question was "Given a scripted document" how to globally change all the pages to vertically centered reflow just from the initial page definition (much like a word processor could) – KJO Apr 23 at 17:41
  • Sorry, I want my document in article class. – Niranjan Apr 24 at 4:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.