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 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
3  
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. –  user15662 Mar 21 '13 at 1:51
show 1 more comment

1 Answer

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

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

\newgeometry{top=5mm, bottom=8mm, left=1cm, right=1cm, includefoot, footskip=5pt}
\lipsum[1]
\end{document}

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
add comment

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.