Text FormattingMargin Errors

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
revanth
Posts: 3
Joined: Wed May 23, 2012 8:18 pm

Margin Errors

Post by revanth »

Hi Team,

I am not able to get the correct margin settings for my pdf. Each page of the generated pdf is showing up a different margin style i.e. the margins are not consistent across all the pages. Please help me in this regard.

-- RN

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: Margin Errors

Post by Stefan Kottwitz »

Hi,

welcome to the board!

Please provide further information, such as you are doing your margins now. Did you make any settings for your margins? We would see more if you would copy your preamble here. The best would be if you would post a copy of your code here (with your preamble) including dummy text, which shows the inconsistency.

Stefan
LaTeX.org admin
revanth
Posts: 3
Joined: Wed May 23, 2012 8:18 pm

Re: Margin Errors

Post by revanth »

Hi,

I have attached the .tex and .sty file. The problem that I am facing is that I am not have the top and bottom margins consistent across all the pages in the generated pdf. I want the margin length to be 1 in.

-- RN
Attachments
pw.tex
.tex file
(6.22 KiB) Downloaded 239 times
pw.sty
.sty file
(10.01 KiB) Downloaded 225 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Margin Errors

Post by Stefan Kottwitz »

I suggest to clean the code a bit, for example remove many manual page breaks (\newpage directly after \clearpage is not meaningful, many \clearpage are unnecessary), set textheight = 9.6in once with geometry but not on each page.

When you post code, try to keep it minimal. Many pieces in that code don't allow to compile if packages such as pwasu are not available, just remove commands and settings wich are irrelevant. You can see it, when you remove a piece, compile, and the problem stays. As it is, it's hardly testable.

I removed some lines to make it compilable on my system, and noticed different top margins. I can see that switching the spacing causes it. To verify, comment out those \SingleSpace commands. After I did that, the margins were equal.

Stefan
LaTeX.org admin
revanth
Posts: 3
Joined: Wed May 23, 2012 8:18 pm

Re: Margin Errors

Post by revanth »

Thank you Stefan for the response. I'll try to make the suggested changes and let you know.
I am very new to LaTeX and I have very very minimal knowledge of its functionality. Will learn from now. :)
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Margin Errors

Post by Stefan Kottwitz »

Very good plan ;) let us know when we can help.

Stefan
LaTeX.org admin
Post Reply