[comp.text.tex] Bug in Doublespace.sty

KATAN@CGRVAX.UWaterloo.CA ("Kim A. Tan") (03/09/91)

Dear LaTeX users,
 
I found a small bug in the doublespace.sty. If you use the command
\singlespace and then reissue \doublespace later in your LaTeX document,
you will have a error that you ended you document without an \end{document}.
 
The following is part of the original doublespace.sty:
 
-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----
\def\onehalfspace{\spacing{1.5}}
\let\endonehalfspace=\endspacing
 
\def\doublespace{\spacing{2}}
\let\doublespace=\endspacing
%%   ^^^^^^^^^^^
-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----
 
The following is the fix for the doublespace.sty:
 
-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----
\def\onehalfspace{\spacing{1.5}}
\let\endonehalfspace=\endspacing
 
\def\doublespace{\spacing{2}}
\let\enddoublespace=\endspacing
%%      ^^^^^^^^^^^
-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----Cut-----
 
This solved my problem, hope this fix is correctly done. Since I am not
an expert of TeX.
 
--Kim