6

I have some problems about vertical spacing before and after some environments inside a mdframed environment. It is as if topsep=0. The insertion of \setlengh{\topsep}{8pt plus 2pt minus 4pt} fixes the problem except for the first list environment inside each mdframed environment.

enter image description here

\documentclass{article}
\usepackage{amsthm}
\usepackage{lipsum}
\usepackage[framemethod=tikz]{mdframed}
\newtheorem{theorem}{Theorem}

\begin{document}    
\verb?\topsep?=\the\topsep

\begin{mdframed}
\verb?\topsep?=\the\topsep

\lipsum[11]

\begin{itemize}
  \item \verb?\topsep?=\the\topsep
\end{itemize}                      

\lipsum[11]

\begin{itemize}
  \item \verb?\topsep?=\the\topsep
\end{itemize}

\lipsum[11]

\begin{verbatim}
  $[G\colon H\cap K] = [G\colon H][H\colon H\cap K]$
\end{verbatim}

\begin{theorem}
  \lipsum[11]
\end{theorem}

\lipsum[11]
\end{mdframed}
\end{document}
1
  • Which version do you use? With the current one it works. – Marco Daniel Mar 12 '13 at 17:59
3

With the current version of mdframed the issue is fixed:

enter image description here

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.