Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is my environment for the certificate:

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

This is my certificate layout:

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

And these rules for certificate ending:

 \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
}

And this is the cerificate:

\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}

My issue is: there is huge space at top of the certificate. But the ending goes to the next page. So how can I reduce blank space at the top and make the ending remain on the same page?

share|improve this question
    
This is a mess. What is alwayssingle for? (Are you sure you need it?) Why are you using the quote environment? Why does your final snippet begin with \begin{cert} and end with \end{abstract}? Take as much of the spacing out of the final cert environment as you can, and put it all in auxiliary macros that you call within cert. –  Matthew Leingang Apr 9 '11 at 12:54
    
@Mathew \end{abstract} is my mistake. In my actual tex file I have quite illogical names. To make my question simple I modified it before posting. I have corrected it now.alwayssingle is to make it single column even if the main document is in multiple columns. –  nixnotwin Apr 9 '11 at 13:45

1 Answer 1

up vote 3 down vote accepted

You are explicitly introducing vertical space at the top by using \vspace*{1cm} and the center environment in the definition of the cert environment; you can use something like this instead:

\newenvironment{cert}{\begin{alwayssingle}\thispagestyle{empty}
  {\centering\Large\bfseries  Certificate\par}
  \vspace{0.5cm}
  \begin{quote}
}
{\end{quote}
\end{alwayssingle}}
share|improve this answer
    
Thank you, it worked. –  nixnotwin Apr 10 '11 at 2:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.