# [texhax] Vertical spacing.

Rahul Singh rsingh9 at cs.gmu.edu
Wed Dec 22 13:33:06 CET 2004


1.  I have the following theorem environment.
This environment puts a vertical space of
".1 in" after a theorem statement.

================================
\newenvironment{theorem}[Theorem]
{\refstepcounter{theorem}
{\\*[.1in]}
================================

2. Some theorem statements have an
enumerate at the end. An enumerate
puts some vertical space at the end.

The following is an example of
a theorem statement with an enumerate.

================================
\begin{theorem}
Let $(x_n) \rightarrow x \in \R$ and
$(y_n) \rightarrow y \in \R$.
\begin{enumerate}
\item[(a)] $(x_n + y_n) \rightarrow x + y$.
\item[(b)] $(x_n - y_n) \rightarrow x - y$.
\item[(c)] $(x_n \, y_n) \rightarrow x \, y$.
\item[(d)] $(c \, y_n) \rightarrow c \, y$, $c \in \R$.
\item[(e)] Let $y \neq 0 \neq y_n$, for every $n \in \N$.
$\left( \frac{x_n}{y_n} \right) = \frac{x}{y}$.
\end{enumerate}
\end{theorem}
==================================

3. The above theorem statement gives the error

================================
! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...

l.2649 \end{theorem}
================================

4. I would like to remove the error in such a
way that the vertical space after a theorem
statement is ".1 in" independent of the
last latex statement in theorem statement.

References that explain these kind of issues