[texhax] spaces at beginning of environment

Philip G. Ratcliffe philipratcliffe at tiscali.it
Tue Dec 28 23:05:09 CET 2004


> To improve this, I defined the following:
>
> \newenvironment{algenv}{\begin{tabbing}\begalg}{\end{tabbing}}
>
> But now there is a space before the first line of the algorithm when I use
>
> \begin{algenv}
> %algorithm
> \end{algenv}
>
> Can you see what is generating this space, and how can I remove it?

Try this:

\newenvironment{algenv}{\begin{tabbing}\begalg\ignorespaces}{\end{tabbing}}

Cordialmente,  Philip G. Ratcliffe
-----------------------------------------
Professor of Nuclear & Subnuclear Physics
Dipartimento di Fisica e Matematica
Universita degli Studi dell'Insubria
via Valleggio 11
22100 Como (CO)
Italy

Tel. +39 (031) 238.6231
Fax  +39 (031) 238.6119
Cell +39 (340) 2346580
Web  http://www.unico.it/~pgr
-----------------------------------------



More information about the texhax mailing list