# Defining pages of a document

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 -

\documentclass{article}

\begin{document}
\topskip=0pt
\vspace*{\fill}
TEXT TEXT TEXT TEXT
\vspace*{\fill}
\pagebreak
\end{document}

• \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
• 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:

\documentclass{beamer}

\geometry{paper=a4paper,vmargin=0pt}

\begin{document}

\begin{frame}[allowframebreaks]

foo
\framebreak

bar
\end{frame}

\end{document}

• 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