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 noticed that using the documentclass article and the package graphicx changes the displayed margins. Is that problem known and is it possible to avoid it?

share|improve this question
3  
the graphicx package does not alter the margins. Please edit your question with a complete (small) example showing the problem you see, –  David Carlisle May 3 '12 at 8:30
add comment

1 Answer

graphicx (and some other packages like hyperref and geometry) actually corrects a problem. Without it it can happen that the pdf size shown by the pdf viewer is not equal to the internal \paperwidth and \paperheight. graphicx sets \pdfpagewidth and \pdfpageheight to avoid this problem. If you are getting the wrong page size, make sure that the option of the class actually reflects the page size you want:

\documentclass[a4paper]{article}
\usepackage{graphicx}
\begin{document}
abc
\end{document}
share|improve this answer
    
Oh yes so it does:-) (well pdftex.def does at least) I'd forgotten it did that, who wrote that file...... –  David Carlisle May 3 '12 at 15:55
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.