I have a 1 inch top margin in all the pages that I have in my DVI file. When I convert this to PDF however the top margin reduces! I am not sure why this is happening. Could someone tell me how to ensure a top margin of at least 1 inch in the PDF?
Tell me more
×
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.
|
As Alexander Grahn suggested - instead of using
I recommend using pdfLaTeX for directly producing PDF without those conversions, it has further benefits for example its microtypographic capabilities. |
||||
|
|

dvipdfmx -p a4ordvipdfmx -p letter. In case you produce PDF via Postscript, is the intermediate PS correctly sized? Trydvips -t a4, if not and you want A4. The final PDF should be correctly sized, if you do conversion withps2pdf -sPAPERSIZE=a4 ...(or similar for letter). For Windows, the option must read-sPAPERSIZE#a4. – AlexG Jun 28 '11 at 7:59dvipdf) for me. It also works when usingletterpaperinstead.\documentclass[a4paper]{article} \usepackage[margin=1in]{geometry} \usepackage{lipsum} \begin{document} \lipsum[1-20] \end{document}Please provide a MWE by yourself so we can see better what's going wrong. – Martin Scharrer♦ Jun 28 '11 at 20:03dvipsto convert DVI -> PostScript, and thenps2pdfto convert PostScript -> PDF. Then you can specify the appropriate paper size on thedvipscommand line. For example, to get the A4 paper size, first rundvips -t a4 foo.dviand thenps2pdf foo.ps foo.pdf. For letter paper size, rundvips -t letter foo.dvi, etc. The paper size specified on dvips command line should match the paper size selected in the Latex source code. – Jukka Suomela Jun 28 '11 at 20:04dvipdfinternally runsdvipswith default settings. Depending on the system configuration, dvips might use letter or A4 paper size by default. Hence if it works for you, it does not necessarily work for someone else... – Jukka Suomela Jun 28 '11 at 20:08