When I create an algorithm using the algorithm2e package, the distance between the caption at the bottom of the boxed algorithm is too small!


    \If{Condition} {
      Do something \;

How do I increase the space between the box and the caption?

1 Answer 1


After looking through the documentation, I found on section 9.2.2:

\AlCapSkip is the dimension of the distance between algorithm body and caption in plain and boxed mode. You can change by hands or by using \SetAlCapSkip{0ex}.

So adding \SetAlCapSkip{1ex} fixed the problem and it didn't change the captions from normal figures.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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