I'm having trouble handling vertical space with my custom environments. I noticed that
using \unskip
after the environment eliminates that space, but I have found now solution for the space before the environment.
My definition is as follows (I'm using the enumitem
package):
\newenvironment*{ejemplo}[1][]%
{%
\begin{enumerate}%
[%
nolistsep,%
topsep=0pt,%
rightmargin=0pt,%
leftmargin=1.5\parindent,%
parsep=.5\baselineskip,%
align=left,
]%
\item[#1]%
}
{%
\end{enumerate}%
\unskip%
}
Any ideas on how to avoid that previous vspace?
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. I attempted to reproduce the problem and was not able to with a basic test case.