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. Mar 12, 2013 at 17:59

1 Answer 1

3

With the current version of mdframed the issue is fixed:

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .