1

I am having troubles to set up a title page with article class.

My problem is same than here, but in addition to this example, I am using a two-sided document. If I add titlepage option here, the titlepage is not aligned in middle but aligned in twoside-style. However, for printing, I would prefer a middle-aligned titlepage. How is this possible?

How can I get \maketitle to create a separate title page with the article class?

\documentclass[titlepage,twoside]{article}

\begin{document}

\title{An example}
\author{Me}
\date{Today}
\maketitle

\section{First Section}
Hello world.

\end{document}
  • It seems to me that the title in the middle. – CroCo Sep 27 '15 at 14:29
  • 1
    You can create the titlepage separately with its own geometry and include it in your document using pdfpages. – Johannes_B Sep 27 '15 at 14:29
  • 1
    Please, don't use \maketitle inside the titlepage environment, it is just wrong. – Johannes_B Sep 27 '15 at 14:30
4

You can use geometry package and fix hmarginratio and later restore the original layout.

\documentclass[titlepage,twoside]{article}
\usepackage[pass,showframe]{geometry}       %% showframe just for demo

\begin{document}
\newgeometry{hmarginratio=1:1}    %% make layout symmetric
\title{An example}
\author{Me}
\date{Today}
\maketitle
\restoregeometry              %% restore the layout
\section{First Section}
Hello world.

\end{document}

enter image description here

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.