GeneralMargins not as expected

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
waelyafooz
Posts: 7
Joined: Fri Dec 06, 2013 2:46 pm

Margins not as expected

Post by waelyafooz »

Hi all,

I try to do the margins of my thesis by this.

Code: Select all

\geometry{
  verbose,
  tmargin=2cm,
  bmargin=2.5cm,
  lmargin=3.8cm,
  rmargin=2.5cm
}
I also tried this.

Code: Select all

\usepackage[
  tmargin=2.5cm,
  bmargin=2.5cm,
  lmargin=3.8cm,
  rmargin=2.5cm,
  nohead
]{geometry}
But when I print the page by print and measure it by rule the margin is not correct but when I used MS Word by margin 3.8cm for left and 2.5cm, 2.5cm, 2.5cm for top, right and bottom when I print the Word file and measure it by ruler, that was accurate.
  1. How can I put the accurate margins?
  2. The number of lines in a page is not same MS Word. I used same text same data (with all paragraphs).
My regards
AYHAM

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Margins not as expected

Post by Stefan Kottwitz »

Hi Ayham,

welcome to the forum!

Perhaps check the PDF viewer settings regarding printing settings and also the options of your printer driver. Some may scale the page or change the margins.

The numer of lines on a page depends for example on your font size, the interline space and space between paragraphs, so there may be a difference if you don't use exactly the same settings as in Word. Btw. Word is not the best reference but it's ok to compare, of course.

Stefan
LaTeX.org admin
waelyafooz
Posts: 7
Joined: Fri Dec 06, 2013 2:46 pm

Re: Margins not as expected

Post by waelyafooz »

Many thanks for you Stefan,
I am using TexStudio, and acrobat reader. actually when i save any file from Ms Word as PDF the then i print that file , the margin accurate and file. That means the problem not from the PDF previewer or Printer Device.
Is the any solution for the margin.

my regards
Ayham
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Margins not as expected

Post by Johannes_B »

I would also have suggested to check the printing options.
Can you prepare a minimal document and check again, maybe upload the pdf, so that we can check for something odd.
Are your packages up to date?

Code: Select all

\documentclass[a4paper]{article}
\usepackage{geometry}
\geometry{
  verbose,
  tmargin=2cm,
  bmargin=2.5cm,
  lmargin=3.8cm,
  rmargin=2.5cm
}
\usepackage{showframe}
\usepackage{blindtext}

\begin{document}
\blindtext
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
waelyafooz
Posts: 7
Joined: Fri Dec 06, 2013 2:46 pm

Re: Margins not as expected

Post by waelyafooz »

Many thanks for your help.
How can i i check if the packages update to date ?
i am writing my thesis is the type of document this
\documentclass[a4paper]{article}
my regards
Ayham
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Margins not as expected

Post by Johannes_B »

Write \listfiles in the very first line of the above minimal example. This should give you something like the following in your log-file.

Code: Select all

This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013)


 article.cls    2007/10/19 v1.4h Standard LaTeX document class
  size10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
geometry.sty    2010/09/12 v5.6 Page Geometry
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
   ifpdf.sty    2011/01/30 v2.3 Provides the ifpdf switch (HO)
  ifvtex.sty    2010/03/01 v1.5 Detect VTeX and its facilities (HO)
 ifxetex.sty    2010/09/12 v0.6 Provides ifxetex conditional
showframe.sty    2011/02/24 v0.1i showframe (new impl., RN)
 eso-pic.sty    2013/10/06 v2.0d eso-pic (RN)
atbegshi.sty    2011/10/05 v1.16 At begin shipout hook (HO)
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
blindtext.sty    2012/01/06 V2.0 blindtext-Package
  xspace.sty    2009/10/20 v1.13 Space after command names (DPC,MH)
supp-pdf.mkii
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply