答案1
以下内容提供了您正在寻找的内容:
\documentclass{report}
\usepackage[top=3cm]{geometry}
\begin{document}
\thispagestyle{empty}
\begingroup
\centering
UNIVERSITY
\vspace{\dimexpr3.5cm-\baselineskip}
INSTITUTION
\vspace{\dimexpr3.5cm-\baselineskip}
TITLE
\vspace{\dimexpr4cm-\baselineskip}
NAME
\par
\endgroup
\clearpage
Rest of your document \ldots
\end{document}
\dimexpr<len>-\baselineskip
在测量标题元素之间的v
垂直度时使用space
可确保您不考虑正在打印的文本行。
上面突出显示长度的垂直规则是使用eso-pic
.完整代码如下:
\documentclass{report}
\usepackage[top=3cm]{geometry}
\usepackage{eso-pic}
\begin{document}
\AddToShipoutPictureBG*{%
\AtPageUpperLeft{%
\hspace{.4\paperwidth}\rule[-3cm]{1pt}{3cm}%
}%
\AtPageUpperLeft{%
\hspace{\dimexpr.4\paperwidth+1em}\raisebox{-3cm}{3cm}%
}%
\AtPageUpperLeft{%
\hspace{\dimexpr.4\paperwidth-1em}\raisebox{-3cm}{\rule[-3.5cm]{1pt}{3.5cm}}%
}%
\AtPageUpperLeft{%
\hspace{.4\paperwidth}\raisebox{-6.5cm}{3.5cm}%
}%
\AtPageUpperLeft{%
\hspace{\dimexpr.4\paperwidth-2em}{\raisebox{-3cm}{\rule[-7cm]{1pt}{7cm}}}%
}%
\AtPageUpperLeft{%
\hspace{\dimexpr.4\paperwidth-1em}{\raisebox{-10cm}{7cm}}%
}%
\AtPageUpperLeft{%
\hspace{\dimexpr.4\paperwidth-3em}{\raisebox{-3cm}{\rule[-11cm]{1pt}{11cm}}}%
}%
\AtPageUpperLeft{%
\hspace{\dimexpr.4\paperwidth-2em}{\raisebox{-14cm}{11cm}}%
}%
}%
\thispagestyle{empty}
\begingroup
\centering
UNIVERSITY
\vspace{\dimexpr3.5cm-\baselineskip}
INSTITUTION
\vspace{\dimexpr3.5cm-\baselineskip}
TITLE
\vspace{\dimexpr4cm-\baselineskip}
NAME
\par
\endgroup
\clearpage
Rest of your document \ldots
\end{document}
答案2
这是你想要的吗?
\documentclass{article}
\usepackage[left=0cm,right=0cm, top=3cm,bottom=0cm,bindingoffset=0cm]{geometry}
\begin{document}
\begin{titlepage}
\begin{center}
UNIVERSITY
\end{center}
\vspace{3.5 cm}
\begin{center}
INSTITUTION
\end{center}
\vspace{3.5 cm}
\begin{center}
TITLE
\end{center}
\vspace{4 cm}
\begin{center}
NAME
\end{center}
\end{titlepage}
\end{document}
答案3
这适用于多行文本和不同字体大小。它的工作原理是将文本放在指定高度 + 深度的框内。每个框都\parbox
被视为段落的一行。 \lineskip
由于深度超出,因此在框之间添加了\baselineskip
。
\documentclass{report}
\usepackage[top=3cm]{geometry}
\begin{document}
\thispagestyle{empty}
\begingroup
\lineskip=0pt
\noindent\parbox[t][3.5cm][t]{\textwidth}{\centering
UNIVERSITY}
\parbox[t][3.5cm][t]{\textwidth}{\centering
INSTITUTION}
\parbox[t][4cm][t]{\textwidth}{\centering
TITLE}
\parbox[t]{\textwidth}{\centering
NAME}
\endgroup
\newpage
Rest of your document \ldots
\end{document}