Document Classes ⇒ Problem with margins in Report class
Problem with margins in Report class
I am typing my thesis in latex and I am using Report document class for this purpose. the original problem for me was page numbering. I used Roman numbering and Arabic one for different pages and somehow latex was resetting the numbering for abstract page,...
I solved this problem by using \notitlepage as an option for report class. The new problem now is that I cant set the margins by myself. It seems when I use notitlepage command, the margins are automatically set to 2in from left and right and 1in from top and bottom. Could anyone let me know what should I do for this problem?
Thanks in advance.
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
Problem with margins in Report class
Re: Problem with margins in Report class
\documentclass[12pt,notitlepage]{report}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{bm}
\usepackage{amsmath}
\usepackage{cite}
\usepackage{caption3}
\usepackage{multirow}
\usepackage{mathrsfs}
\usepackage{setspace}
\usepackage{slashbox}
%\usepackage{multirow}
\usepackage{rotating}
\usepackage{nomencl}
\usepackage{pdfpages}
\usepackage{float}
\usepackage{subfig}
\usepackage{simplemargins}
And these commands for margining:
\setleftmargin{1.5in}
\setrightmargin{1in}
\settopmargin{1in}
\setbottommargin{1in}
I disabled package by package and saw the output file, the problem still remains!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with margins in Report class
[1] View topic: Board Rules — Everybody, by all means, read before posting!
[2] View topic: Avoidable mistakes
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Problem with margins in Report class
Re: Problem with margins in Report class
Yes, I am using geometry package but it doesnt make effect on the margins!
Problem with margins in Report class
Code: Select all
\usepackage[top=1in,left=1.5in,bottom=1in,right=1in]{geometry}
If so, post a proper minimal working example showing how it doesn't work.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Problem with margins in Report class
Don't just load every package you come across in the net. You should preferably use packages that are listed on CTAN. These are official packages and mostly part of a common LaTeX distribution. And you don't need both packages. The preferable one is geometry. Set up the margins as frabjous already demonstrated.sina2010 wrote:I just saw a webpage talking about the margins stuff and recommending to use simplemargins package. I downloaded simplemargins.sty from internet ( I cant remember from where exactly)
Yes, I am using geometry package but it doesnt make effect on the margins!
And by the way, a simple search for »simplemargins.sty« in your favorite search engine yields possible sources of that package. But this package is far from being recommendable, not only because it's outdated (1993). The geometry package is more sophisticated. Another point against this package is that it sets the paper size self-handed to letter paper dimensions. Informations about that can only be found in the package file itself.
Code: Select all
\documentclass[11pt,notitlepage,english]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[%
bindingoffset=0.5in,
includeheadfoot,
margin=1in
]{geometry}
\usepackage{fancyhdr}
\usepackage{blindtext}
% Page layout (fancyhdr)
\fancyhf{}
\lhead{\nouppercase{\leftmark}}
\rhead{\thepage}
\pagestyle{fancy}
\begin{document}
\Blinddocument
\end{document}
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10