TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing one article using top and bottom margin.

 \usepackage[top=.5cm, bottom=.8cm, left=1cm, right=1cm, includefoot,showframe]{geometry}

I observe some spacing between frame and footer (here mdframed). How can i reduce spacing between footer and frame?

enter image description here

share|improve this question
Please provide a minimal working example. – Svend Tveskæg Mar 20 '13 at 8:42
Maybe wikipedia is usefull here: en.wikibooks.org/wiki/LaTeX/Page_Layout#Page_dimensions – Dave Mar 20 '13 at 9:05
footskip!.... – Harish Kumar Mar 20 '13 at 12:35
The package mdframed doesn't use the page layout for drawing a frame. The splitting point is a little bit earlier and the frame is aligned at the top. It guess you are looking for something like the package showframe does. – Marco Daniel Mar 20 '13 at 14:06
Can i extend mdframed to bottom or top side. – manish Mar 21 '13 at 1:51

footskip is the key to adjusting the gap between the footer and the main body text, even when using the includefoot key in geometry. Here's an example showing the difference:

enter image description here

\usepackage{lipsum,geometry}% http://ctan.org/pkg/{lipsum,geometry}
\geometry{top=5mm, bottom=8mm, left=1cm, right=1cm, includefoot, footskip=0pt, paperwidth=5cm, showframe}

\newgeometry{top=5mm, bottom=8mm, left=1cm, right=1cm, includefoot, footskip=5pt}

On the left is a footskip of 0pt, while the right shows a footskip of 5pt. The default document classes fixes this at 30pt.

share|improve this answer

Your Answer


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.