[Tex/LaTex] Line spacing in title

spacingtitles

I am creating a LaTeX document with a header as follows.

enter image description here

I am however trying to get author slightly closer to the date so that it looks a little better.

Currently the LaTeX equivalent is:

\documentclass{article}

\usepackage[a4paper, portrait, margin=0.3in]{geometry}
\usepackage{setspace}

\begin{document}

\hrule
\begin{flushright}
    Author
\end{flushright}
\begin{flushleft}
    \huge \textbf{Title}
    \hfill
    \normalsize Date
\end{flushleft}
\hrule

\end{document}

Best Answer

If you first type the title and then put Author and Date in a table, you can have full control of the vertical distance between then. Here I used 10mm.

\documentclass{article}
\usepackage[a4paper, portrait, margin=0.3in]{geometry}
\usepackage{setspace}
\usepackage{lipsum}
\begin{document}
\hrule
\noindent\textbf{\huge Title}
\hfill
\begin{tabular}[b]{r@{}}
  Author\\[10mm]
  Date
\end{tabular}
\hrule\strut\newline

\lipsum[1]
\strut\newline

\hrule
\noindent\parbox[b]{0.8\linewidth}{\textbf{\huge Very long title that needs more than one row in the title}}
\hfill
\begin{tabular}[b]{r@{}}
  Author\\[10mm]
  Date
\end{tabular}
\hrule\strut\newline

\end{document}

In the second case when the title spans more than one row I put it in a \parbox to align its bottom baseline with the Date baseline. That can of course be done for the single line case also.

enter image description here