Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question
1  
While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \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. –  Peter Grill Jan 17 '13 at 5:09
    
Yes, you have a point. I can't reproduce the problem either in a MWE. It seems to be a problem of my big document. I'll check and see. –  NVaughan Jan 17 '13 at 14:56
add comment

1 Answer

You've set parsep twice. Remove the second occurence parsep=.5\baselineskip

share|improve this answer
    
You're right. I've deleted the first one in the question. Cheers! –  NVaughan Jan 17 '13 at 3:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.