6
\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage{titling}
\usepackage[T1]{fontenc}
\title{Validation of Numerical Simulation of Fender Tests\par}
\begin{document}
\begin{titlepage}
\begin{center}
\vspace*{3cm}
\textsf{\huge{\thetitle}}
\end{center}
\end{document}

Output

enter image description here

I want some more spacing between the first line and second line of my title. I tried adding \vspace, \\, \newline after the word 'Beer' but nothing works.

lockstep
  • 250,273
Bruce
  • 215

4 Answers4

2

This works, but is not a perfect solution:

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage{titling}
\usepackage[T1]{fontenc}
\begin{document}
\linespread{5}
\begin{titlepage}
\begin{center}
\vspace*{3cm}
\textsf{\huge Evaluation of Security aspects in a Beer\\[.7cm] Production company}
\end{center}
\end{titlepage}
\end{document}

enter image description here

A consistent solution, however, using native KOMA commands would be:

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage[T1]{fontenc}

\setkomafont{title}{\sffamily\huge\linespread{1.5}}
\title{Evaluation of Security aspects in a Beer Production company}
\begin{document}
\maketitle
\end{document}

enter image description here

AboAmmar
  • 46,352
  • 4
  • 58
  • 127
2

A method with changing the \baselineskip -- since it is done in a group, it won't hurt outside.

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage{titling}
\usepackage[T1]{fontenc}
\title{Theory of Brontosaurs -- their thickness and Thin-Lizzy-Likeness}
\usepackage{setspace}
\begin{document}
\begin{titlepage}
\let\origbaselineskip\baselineskip
\begin{center}
\setlength{\baselineskip}{1.5\origbaselineskip}
\textsf{\huge \thetitle}

\setlength{\baselineskip}{2\origbaselineskip}
\textsf{\huge \thetitle }

\setlength{\baselineskip}{3\origbaselineskip}
\textsf{\huge \thetitle }

\end{center}
\end{titlepage}
\end{document}

enter image description here

2

As you are already loading titling, use its methods:

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage[T1]{fontenc}

\usepackage{titling}

\pretitle{\begin{center}\linespread{1.5}\huge\sffamily}
\posttitle{\par\end{center}\vspace{0.5em}}

\begin{document}

\title{Evaluation of Security aspects in a Beer Production company}
\author{Adalbert Uthor}
\date{}

\maketitle

\end{document}

Adjust the value for \linespread to suit your needs and wishes.

enter image description here

If you use the titlepage environment, you can use a similar method:

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage[T1]{fontenc}

\usepackage{titling}

\begin{document}
\title{Evaluation of Security aspects in a Beer Production company}
\author{Adalbert Uthor}
\date{}

\begin{titlepage}
\centering

\vspace*{\stretch{1}}

{\linespread{1.5}\huge\sffamily\thetitle\par}

\vspace{4ex}

{\Large\theauthor\par}

\vspace{\stretch{3}}

\end{titlepage}

\end{document}

enter image description here

egreg
  • 1,121,712
0

You can use de setspace package and use the spacing enviroment. For example using this:

\documentclass[a4paper,12pt,numbers=noenddot]{scrartcl}
\usepackage{titling}
\usepackage[T1]{fontenc}
\usepackage{setspace}

\begin{document}

\begin{titlepage}
\begin{center}
\vspace*{3cm}
 \begin{spacing}{3}
  \textsf{\huge{Evaluation of Security aspects in a Beer Production company}}
 \end{spacing}
\end{center}
\end{titlepage}
\end{document}

I got this:

enter image description here

Alder Miguel
  • 392
  • 1
  • 11