2

Here, I would like to put the title just below the top margin, so how can I remove or change such skip?

\documentclass{scrbook}

\usepackage[showframe,margin=4cm,a4paper]{geometry}

\begin{document}
    \title{TITLE}
    \maketitle
\end{document}

enter image description here

Diaa
  • 9,599
  • I'm short in time, so only some hints: Use a custom title (using titlepage environment) instead of the predefined one. Or use an in-page title (option titlepage=false) instead of a title page. Or use option titlepage=firstiscover to define the first title page of \maketitle to be a cover page and use the cover page setup commands to define the margins of this page (see scrguien.pdf for more information). – Schweinebacke May 10 '17 at 10:15
  • @Schweinebacke Thanks for your suggestions. I would be grateful if you could provide me with compilable answers since I tried to do this on my own, but I failed somehow in case of titlepage environment solution. – Diaa May 10 '17 at 10:23
  • 2
    https://tex.stackexchange.com/a/210280/37907 – Johannes_B May 10 '17 at 10:59
  • 2
    \maketitle is completely overrated if you are doing a one time only thing. – Johannes_B May 10 '17 at 11:00

1 Answers1

3

If you don't like the default title pages I would recommend to build a custom title using titlepage environment, e.g.:

\documentclass{scrbook}

\usepackage[showframe,margin=4cm,a4paper]{geometry}

\begin{document}
\begin{titlepage}
  \centering
  \huge\textsf{\textbf{TITLE}}
  \bigskip

  \normalsize \today
\end{titlepage}
\end{document}

enter image description here

See Johannes answer to "How to customize my titlepage?" for more suggestions.

But if you really just want to remove the initial vertical skip you could also patch \maketitle:

\documentclass{scrbook}

\usepackage[showframe,margin=4cm,a4paper]{geometry}

\usepackage{xpatch}
\xpatchcmd{\maketitle}{\null\vfill}{}{}

\begin{document}
    \title{TITLE}
    \maketitle
\end{document}

enter image description here

Schweinebacke
  • 26,336