我在我的论文前面使用了以下代码:
\begin{titlepage}
\begin{center}
\begin{figure}
\centering
\includegraphics[width=0.5\textwidth]{LOGO_UNIVERSITY.jpeg}
\end{figure}
\vspace{-10cm}
\textsc{\LARGE \\ Institute for Interesting People}\\[0.5cm]
\vspace{.5cm}
\textsc{\Large Master Thesis}\\[1.5cm]
\HRule \\[0.4cm] % Horizontal line
{\huge \bfseries Very Smart Stuff}\\[0.4cm]
\HRule \\[1.5cm]
\vspace{1cm}
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Author:}\\
X
\end{flushleft}
\end{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Supervisors:} \\
Y \\
Z \\
\end{flushright}
\end{minipage}\\[3cm]
{\large \textit{A thesis submitted in partial fulfilment of the requirements\\ for the degree of Master of Science\\}}
\vspace{2cm}
{\large August 2014} \vfill
\end{center}
\end{titlepage}
但是,我想减少徽标和文本“有趣人物研究所”之间的距离。使用命令 \vspace{-10cm} 或例如 \vspace{10cm} 不会改变任何内容。这是怎么回事?我该如何改变它?
注意:命令 \HRule 是通过以下方式定义的
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}.
答案1
您的代码中有几点可以改进,但主要问题是环境figure
,它不属于那里。
这是完善后的版本。请调整间距。
\documentclass[a4paper]{book}
\usepackage{graphicx}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\begin{document}
\begin{titlepage}
\centering
\includegraphics[width=0.5\textwidth]{LOGO_UNIVERSITY.jpeg}
\vspace{1cm}
\textsc{\LARGE Institute for Interesting People}
\vspace{1cm}
\textsc{\Large Master Thesis}\\[1.5cm]
\HRule \\[0.4cm] % Horizontal line
{\huge \bfseries Very Smart Stuff}\\[0.4cm]
\HRule
\vspace{2.5cm}
\begin{tabular}[t]{@{}l@{}}
\emph{Author:}\\
X
\end{tabular}\hfill
\begin{tabular}[t]{@{}l@{}}
\emph{Supervisors:} \\
Y \\
Z \\
\end{tabular}
\vspace{3cm}
{\large\itshape A thesis submitted in partial fulfilment of the requirements\\
for the degree of Master of Science\\}
\vspace{2cm}
{\large August 2014}
\vfill
\end{titlepage}
\end{document}