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.
\documentclass[10pt]{article}
\usepackage{mathpazo}  
\usepackage[a4paper,margin=10mm]{geometry}
\begin{document}
\fbox{%
  \begin{minipage}{\linewidth}
    \textbf{Course:} \hfill \textbf{Essay} \rule{2em}{0.2pt} \textbf{of} \rule{2em}{0.2pt}
  \end{minipage}
}
\end{document}

The right margin of the fbox is cut off when I print the document. It looks fine in print preview, however. What can I do about this? Where is the problem? What should I try to diagnose the problem?

Looking more closely at the pdf onscreen, it seems like the left margin is still bigger than the right margin: they should be the same. Could this have something to do with it?

share|improve this question
    
I don't think this is an issue about (La)TeX, but with your printer and its abilities to print near the border of pages. Some pdf viewers (Preview and Adobe Reader at least) will offer you an option to “scale to fit” which reduces the size of the document a bit to stay within the printer margins. –  Juan A. Navarro Jan 25 '11 at 12:44
    
@Juan I was using evince's "shrink to fit" option, but it makes no difference. I will try a different pdf reader... –  Seamus Jan 25 '11 at 12:54
    
Okular does the same thing. –  Seamus Jan 25 '11 at 12:58
1  
@Seamus: a lot of the printers need 5mm on the right and left side, there are some technical reasons that they cannot print there. –  Herbert Jan 25 '11 at 13:38
1  
I think this is a common problem people frequently run into, so it is worth having this question here as a reference –  Martin H Jan 25 '11 at 15:21

1 Answer 1

up vote 3 down vote accepted
\usepackage[a4paper,left=10mm,right=15mm,top=10mm,bottom=10mm]{geometry}

Fixed the problem. Too small margins mess with what the printer is capable of.

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.