Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
    
Which version do you use? With the current one it works. –  Marco Daniel Mar 12 '13 at 17:59

1 Answer 1

up vote 2 down vote accepted

With the current version of mdframed the issue is fixed:

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.