Article View: comp.text.tex
Article #711Space problem behind environment
From: E. v.d. Maarel
Date: Tue, 04 Aug 1992 10:52
Date: Tue, 04 Aug 1992 10:52
57 lines
2009 bytes
2009 bytes
Hi,
Here's something I don't understand:
I use \newenvironment to define an environment which
makes subequations numbers, like in < 1.2a--1.3b >.
It is similar to the thing defined in subeqn.sty,
however I tried to make it based on LaTeX's way of
defining things.
The thing is that right behind closing the equations with
\end{subequations}, ther is a little extra space inserted, so
the next line f text is not flush the left margin.
This space is typically about 3pt.
Try the attached example.
Applying % behind the \end{subequations} solves the problem.
I just want to (try to) understand what is happening.
Anybody any idea?
Thanks,
--Eric
-BEGIN EXAMPLE--------------------------------------------------------
\documentstyle{article}
\newfont{\Bbb}{msbm10}
\newcommand{\RR}{\mbox{\Bbb R}}
%subequations environment
\newcounter{saveequation}
\newenvironment{subequations}{
\refstepcounter{equation}
\setcounter{saveequation}{\value{equation}}
\setcounter{equation}{0}
\renewcommand{\theequation}{
\thesection.\thesaveequation\alph{equation}
}
}{
\setcounter{equation}{\value{saveequation}}%
}
\begin{document}
\section{Watch this}
Here is an example of the thing that goes wrong.
Notice the following formula sequence:
\begin{subequations}
\begin{eqnarray}
&& Ax = b,\\
&& x\in \RR^n
\end{eqnarray}
\end{subequations}
This is it!
Notice the small space ($\approx 3\mbox{pt}$, not constant witin a file).
\end{document}
-END EXAMPLE----------------------------------------------------------
Technical Details
Message-ID:
<6935@charon.cwi.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!mips!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!cwi.nl!maarelShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!elroy.jpl.nasa.gov!swrinde!mips!darwin.sura.net!jvnc.net!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!sun4nl!cwi.nl!maarel From: maarel@cwi.nl (E. v.d. Maarel) Newsgroups: comp.text.tex Subject: Space problem behind environment Message-ID: <6935@charon.cwi.nl> Date: 4 Aug 92 10:52:59 GMT Sender: news@cwi.nl Distribution: eunet Organization: CWI, Amsterdam Lines: 57