TransWikia.com

Using package resizegather leads to extra vertical space inside mdframed equations

TeX - LaTeX Asked by JardaFait on October 27, 2020

When I try to add package resizegather, extra vertical space is added into mdframed equations. By gradually truncating the code, I found that commenting package resizegather would fix the problem. See figure below. But I have no idea, what is behind that. I found similar issues described in tasks:

but it didn’t help

MNWE:

documentclass{scrbook}

usepackage{mdframed}
usepackage{amsmath}
usepackage{resizegather}    
usepackage{blindtext}

begin{document}
  chapter{My title test 7}
    blindtext  
    begin{mdframed}
      begin{equation}label{mai:eq1}
        boxed{int f(x) dx = F(x) + c}
      end{equation}
    end{mdframed}
    blindtext  
end{document}

using of the package resizegather

One Answer

You can solve the problem with nccmath and its useshortskip command:

documentclass{scrbook}

usepackage{mdframed}
usepackage{amsmath, nccmath}
usepackage{resizegather}
usepackage{blindtext}

begin{document}
  chapter{My title test 7}
    blindtext
    begin{mdframed}useshortskip
      begin{equation}label{mai:eq1}
        boxed{int f(x) dx = F(x) + c}
      end{equation}
    end{mdframed}
    blindtext
end{document}

enter image description here

Answered by Bernard on October 27, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP