[Tex/LaTex] Problem with option border of class standalone

standalone

I tested a MWE given in question Standalone producing cropped / truncated formulae. Following the documentation (page 9) I used the class option border={left right bottom top} with left=right=top=0pt and bottom=20pt (20pt only to show the effect here).

With the version 2012/09/15 v1.1b of standalone and the following MWE I get no 20 pt margin at the bottom of my picture. What is the problem?

MWE:

\documentclass[%
% border=1pt
  border={0pt 0pt 20pt 0pt} %left right bottom top
]{standalone}% http://ctan.org/pkg/standalone
\begin{document}
$2^5 = x_5 \times y^8$
\end{document}

Best Answer

It seems that the given order for option border:

left right bottom top

is wrong.

Exchange the position of 20pt in line 3 of the given MWE in the question and you can see that the right order is:

left bottom right top

Is this an error in the code or in the documentation? I will ask the autor.

The complete MWE is:

\documentclass[%
% border=1pt
  border={0pt 20pt 0pt 0pt} % left bottom right top
]{standalone}% http://ctan.org/pkg/standalone
\begin{document}
$2^5 = x_5 \times y^8$
\end{document}

to receive a picture with a bottom margin of 20pt (to have the heading not so close to the picture).

Related Question