Consider the following MWE:


\usepackage[framemethod=TikZ]{mdframed} % noteboxes, boxes, etc.

                {\strut \MakeUppercase#1~\csname the #1\endcsname\ifstrempty{##1}{}{:~##1}};}}%
            frametitleaboveskip={\dimexpr (\ht\strutbox)*-1\relax},}%


        Warm kitty, sweet kitty, little ball of fur. Warm kitty, sweet kitty, purr, purr, purr.

        A kitten is a baby cat.

It produces this as output:

enter image description here

If I change frametitleaboveskip={\dimexpr (\ht\strutbox)*-1\relax} to frametitleaboveskip={\dimexpr (\ht\strutbox)*-2\relax}, the output will look like:

enter image description here

But if change it to frametitleaboveskip={\dimexpr (\ht\strutbox)*-1.99\relax}, the output seems to be the same as frametitleaboveskip={\dimexpr (\ht\strutbox)*-1\relax} except for a mysterious pt that appears:

enter image description here

How can I move the frametitle box up by a real amount?


See this explanation: https://tex.stackexchange.com/a/126359/47927

So, in short, you have to reorder

\dimexpr (\ht\strutbox)*-1.99\relax


\dimexpr -1.99\ht\strutbox\relax

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.