0

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

\usepackage[lined,boxed]{algorithm2e}

  \begin{algorithm}[h]
    \If{Condition} {
      Do something \;
    }
    \caption{Algoritm...}
  \end{algorithm}

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

1 Answer 1

4

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.