1

I have a piece of code that i want to have have a blank line space worth of text between title and author, author and date, and in between date and content. I have tried some methods, using \\, \newline, but these don't even work for me. Can someone help me get the desired result i want?

% {
\documentclass[letterpaper,12pt]{article}

\makeatletter
\renewcommand{\maketitle}
{{\centering
    \@title \\ 
    \@author \\ 
    \@date \\
}}
\makeatother

\setlength\parindent{.25cm} 


% }

\title{Title}
\author{Author}
\date{Date}

\renewcommand{\section}[1]{\refstepcounter{section}{\centering\textsc{\Roman{section}. #1}\par}}

\begin{document}

\maketitle

\section{Where is it found in the wild?}

Loggerhead turtles are located worldwide primarily in subtropical and temperate regions of the Atlantic, Pacific, and Indian Oceans, and the Mediterranean Sea. They also live in Argentina, and from Chile to Alaska.
\end{document}
2
  • 1
    Maybe \renewcommand{\maketitle} {{\centering \@title \\~\\ \@author \\~\\ \@date \\~\\ }} Commented Apr 4 at 17:58
  • Does replacing \\ by \\[\baselineskip] gives you the expected result?
    – jlab
    Commented Apr 4 at 18:00

1 Answer 1

1

You can specify the vertical spacing by \[x],

% {
\documentclass[letterpaper,12pt]{article}

\makeatletter
\renewcommand{\maketitle}
{{\centering
    \@title \\[2\baselineskip] 
    \@author \\[24pt] 
    \@date \\[12pt]
}}
\makeatother

% }

\title{Title}
\author{Author}
\date{Date}


\begin{document}

\maketitle

\section{Where is it found in the wild?}

Loggerhead turtles are located worldwide primarily in subtropical and temperate regions of the Atlantic, Pacific, and Indian Oceans, and the Mediterranean Sea. They also live in Argentina, and from Chile to Alaska.
\end{document}

which produces

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .