3

I have the following .tex code:

\documentclass[11pt]{article}

\usepackage{titling}

\begin{document}

\title{Letter}
\setlength{\droptitle}{-10em}

%\author{}

\maketitle

\end{document}

As you can see I'm not using the author field, and I have pushed the title part a bit up. Though, now the gap between the title and the date is a bit too much for me. Is there a way to shorten that gap, in the sense that the date and all the text under it moves a bit up closer to the title?

3

With \maketitlehookc, which is what is inserted between author and date. Similarly \maketitlehooka denotes code inserted before title, \maketitlehookb is inserted between title and author and \maketitlehookd is inserted after date.

\documentclass[11pt]{article}

\usepackage{titling}
\setlength{\droptitle}{-10em}

\usepackage{lipsum}
\title{Letter}
%\author{}
\renewcommand\maketitlehookc{\vspace{-10ex}}
\begin{document}

\title{Letter}
\maketitle
\lipsum

\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.