Page LayoutMargins

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Afshin
Posts: 2
Joined: Wed Oct 15, 2014 11:47 am

Margins

Post by Afshin »

Hi,
I would be thankful if someone can help. My problem is with margins.
This is my code (generated automatically by "TexStudio"):

Code: Select all

\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage[width=216.00mm, height=279.00mm, left=15.00mm, right=15.00mm, top=20.00mm, bottom=20.00mm]{geometry}
\author{Afshin.J}
\begin{document}
My text...
\end{document}
And this is the error that I get:
File ended while scanning definition of \@ProcessOptionsKV
When I remove:

Code: Select all

\usepackage[width=216.00mm, height=279.00mm, left=15.00mm, right=15.00mm, top=20.00mm, bottom=20.00mm]{geometry}
It works BUT I want to have the margins. Moreover, this is the code that TexStudio has generated for me!
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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Margins

Post by Johannes_B »

The code as is is fine. Is your distribution up to date?

Concerning the margins: Please load package showframe. It visualizes your text area, the marginpar-column and the header. Package geometry also gives a warning because the dimensions are over-specified.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Afshin
Posts: 2
Joined: Wed Oct 15, 2014 11:47 am

Re: Margins

Post by Afshin »

Dear Johannes_B,
The problem was solved, it was a file corruption in the MixTeX engine.
Thank you, your advice was a clue.
Afshin
Post Reply