book
class arranges the text as it is required for printing. The margins are set automatically. If we don't want that formatting, oneside
option is available, but it changes the formatting of the document globally. I just want the titlepage
environment of the document like it is in the article
class. It should be horizontally centered like in the article
class. It should also be vertically centered like in the book
class. After exploring some answers on this site, I tried afterpage
package, but didn't find it helpful. Can somebody help me to redefine titlepage
environment?
\documentclass{book}
\usepackage{lipsum}
\title{Title}
\author{Niranjan}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
\lipsum
\end{document}
geometry
package, you can control the page geometry, and use itssavegeometry
and\newgeometry
command to locally change the titlepage geometry. The\layout
command of eponymous package and theshowframe
option ofgeometry
can help for a proper setting of the margins