\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}
输出
我想在标题的第一行和第二行之间留出更多间距。我尝试在“Beer”一词后添加\vspace
, \\
, ,但没有任何效果。\newline
答案1
由于您已在加载titling
,请使用其方法:
\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}
调整值以\linespread
满足您的需要和愿望。
如果你使用titlepage
环境的话也可以使用类似的方法:
\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}
答案2
换个方法\baselineskip
——因为是集体做,所以不会对外面造成伤害。
\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}
答案3
这可行,但不是一个完美的解决方案:
\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}
但是,使用本机 KOMA 命令的一致解决方案是:
\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}
答案4
您可以使用 desetspace
包并使用spacing
环境。例如使用这个:
\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}
我懂了: