I have this chunk of code for the title page:
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{My Title}
\author{My Name}
\date{Today}
\maketitle
I want to position My Title more above on the page. How do I possible achieve this?
titles
I have this chunk of code for the title page:
\documentclass{article}
\usepackage[utf8]{inputenc}
\title{My Title}
\author{My Name}
\date{Today}
\maketitle
I want to position My Title more above on the page. How do I possible achieve this?
Best Answer
Let's start by seeing where the title is right now. Completing the example and adding
geometry
withpass, showframe
, we can see the defaults:If you want to fiddle with the margins, do this before adjusting the title. For example, if we drop the
pass
, we'll getgeometry
's defaults:This itself has the effect of reducing the vertical space before the title, because the new top margin is smaller than LaTeX's default.
But you might, of course, want a still smaller margin. If so, adjust that before considering the title.
Adding
we get
If, when you've sorted the page layout, you'd still like to adjust the title position, consider loading the
titling
package.The default uses a
center
environment for the title, so let's try just using\centering
instead:Obviously, the document is now quite unbalanced: if you change
top
, you will want to change the other margins, too. Tweak as required.