We have a problem concerning the vertical alignment of a mdframed followed by minipages. Latex put not the objects right after each other. It distributes them over the whole page and maximizes the vertical space between them. The following code shows the problem (after the mdframed). Does anybody know how to get the next minipage just next to the end of the mdframed?



\documentclass[a4paper,12pt, twoside, bibliography=totocnumbered]{scrreprt}








\hfill\textbf{\arabic{questionobject}}\ \ \newline
{\normalfont\footnotesize{\ \ (Fall \arabic{itemobject})}}


       \thequestionobject} \ \hspace{3mm}
        \questionVignette{The quick brown fox jumps over the lazy dog. Jeder wackere Bayer vertilgt bequem zwo Pfund Kalbshaxen. Heavy boxes perform waltzes and jigs. The five boxing wizards jump quickly. Five quacking Zephyrs jolt my wax bed. A quick movement of the enemy will jeopardize six gunboats. Portez ce vieux whisky au juge blond qui fume. Zornig und gequält rügen jeweils Pontifex und Volk die maßlose bischöfliche Hybris. Die heiße Zypernsonne quälte Max und Victoria ja böse auf dem Weg bis zur Küste.}\par
         \questionText{What is the correct answer?}\par

    \item  Nothing
    \item  Everything
    \item  Nearly nothing
    \item  All of them
    \item  I don't know



    \setcounter{questionobjectcase} {0}
    Fallstudie Nr. \stepcounter{itemobject} 


  • Use \raggedbottom. And I would advise you to use tcolorbox instead of mdframed -- much better and more stable. – Ulrike Fischer Jul 27 '17 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.