证书布局

证书布局

这是我的证书环境:

\newenvironment{alwayssingle}{%
       \@restonecolfalse
       \if@twocolumn\@restonecoltrue\onecolumn
       \else\if@openright\cleardoublepage\else\clearpage\fi
       \fi}%
       {\if@restonecol\twocolumn
       \else\newpage\thispagestyle{empty}\fi}

这是我的证书布局:

\renewenvironment{cert}{\begin{alwayssingle} \thispagestyle{empty}
  \begin{center}
  \vspace*{1cm}
  {\Large \bfseries  Certificate}
  \end{center}
  \vspace{0.5cm}
  \begin{quote}}
{\end{quote}
\end{alwayssingle}}

证书结束规则如下:

 \newcommand\guideending[5]{%
        \par
        \noindent
        \hskip.5\linewidth
        \hbox{#1}\\
        \hbox to.5\linewidth{Place: #2\hfil}%
        \hbox{#3}\\
        \hbox to.5\linewidth{Date: #4\hfil}%
        \hbox{#5}%
        \par
}

这是证书:

\begin{cert}
Certified that the dissertation entitled \dots
\vspace{0.1 in}

\guideending{Mr. John Doe}{Some Place}{Lecturer in Something}{15 April 2011}
{Some College}
\vspace{1cm}
\centerline{\textbf{Approved and forwarded to Some University}}
\guideending{Some Dean}{Some Place}{Dean}{20 April 2011}
{Some College}
%\vspace{0.05 in}
\textbf{Examiner's Signature \\}
1. \\
2. \\
\end{cert}

我的问题是:证书顶部有很大空间。但结尾转到下一页。那么我该如何减少顶部的空白并使结尾保持在同一页上?

答案1

您通过在环境定义中使用环境\vspace*{1cm}明确地引入了顶部的垂直空间;您可以改用类似这样的方法:centercert

\newenvironment{cert}{\begin{alwayssingle}\thispagestyle{empty}
  {\centering\Large\bfseries  Certificate\par}
  \vspace{0.5cm}
  \begin{quote}
}
{\end{quote}
\end{alwayssingle}}

相关内容