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
Text Formatting ⇒ Margin Errors
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
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
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
Re: Margin Errors
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
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
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Margin Errors
I suggest to clean the code a bit, for example remove many manual page breaks (
When you post code, try to keep it minimal. Many pieces in that code don't allow to compile if packages such as
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
Stefan
\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
Re: Margin Errors
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.
I am very new to LaTeX and I have very very minimal knowledge of its functionality. Will learn from now.

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