Generalgetting the margins correct: Simple Margins

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
yaami
Posts: 12
Joined: Wed Sep 22, 2010 3:43 pm

getting the margins correct: Simple Margins

Post by yaami »

Hi all,

I'm using the simplemargins.sty(http://www.mit.edu:8001/activities/anim ... argins.sty). I've followed http://kb.mit.edu/confluence/pages/view ... plemargins and set the margins in my document as follows:

Code: Select all

\usepackage{simplemargins}
\setleftmargin{1.5in}
\setrightmargin{1.0in}
\settopmargin{1.25in}
\setbottommargin{1.25in}
I need left margin=1.5in, right margin=1.0in, top margin = 1.25in, and bottom margin=1.25in in my document (raggedright).

When I use the above code all margins are about the right size but the bottom margin is not consistent. It is sometimes very large and leaves lot of space at the bottom.
And gets it correct sometimes.

So how do I get the margins correctly (consistently)through out the document. Is there some package that can be used to get the margins correctly with the above specifications.

Thanks.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

getting the margins correct: Simple Margins

Post by frabjous »

Instead of using the simplemargins package, you could try the (much more up to date) geometry package (which you probably already have installed):

Code: Select all

\usepackage[top=1.25in,bottom=1.25in,left=1.5in,right=1in]{geometry}
I don't know if that'll be any better. I couldn't actually duplicate your problem with simplemargins.sty. A minimal working example to test with would be helpful.
yaami
Posts: 12
Joined: Wed Sep 22, 2010 3:43 pm

Re: getting the margins correct: Simple Margins

Post by yaami »

Thanks for the reply. The thing is the bottom margins are not consistent like shown in the attached figures. The oval shape shows the bottom margin. The sizes are 3.5in, 2.25in, 1.75in respectively (also shown in the file comment). The larger margins are observed when the next page has a new section or has a figure. but the normal pages with continuing sections show 1.75 in bottom margins.

Hope this clears what my problem is. And how do I correct this.

Thanks
Attachments
3.5in bottom margin
3.5in bottom margin
3_5.JPG (17.19 KiB) Viewed 7004 times
2.25 in bottom margin
2.25 in bottom margin
2_25.JPG (14.21 KiB) Viewed 7004 times
1.75in bottom margin
1.75in bottom margin
onePage.PNG (13.28 KiB) Viewed 7004 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

getting the margins correct: Simple Margins

Post by frabjous »

The screencaps are useless. I understood your verbal description, but I need to be able to recreate the problem with source code if there's any chance I could provide any help. Please read the link I gave you about minimal working examples.

Does the geometry package do any better.
yaami
Posts: 12
Joined: Wed Sep 22, 2010 3:43 pm

Re: getting the margins correct: Simple Margins

Post by yaami »

frabjous, thanks for your reply. This is my thesis which I'm working on. I'm not sure if I can provide the tex files, because the results are also submitted in a conference. I'm providing the page which has only the include chapter statements. I know this might be useless.

Also the geometry package seems to be working good, it is a lot better than the simple margins. Thanks for suggesting the package. I'll work on this some more and try to get it right.

Thanks a lot again.
Attachments
thesis.tex
(3.53 KiB) Downloaded 261 times
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

getting the margins correct: Simple Margins

Post by frabjous »

As you guessed, that doesn't do much good. See the Post on Avoidable Mistakes. But if the geometry package works out, then perhaps it doesn't matter.

If problems persist, do consider constructing a minimal working example -- if you can't share the actual text of your document (which is understandable) you can use packages like lipsum and blindtext to replace the actual text of your chapters with fake text, and create fake diagrams that just happen to be the same size as the ones you're using.
Post Reply