TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am having problem while using layout options with geometry package, I cannot seem to compile the .tex file.

With the following code :



I am getting this error when compiling .tex with pdflatex

! Package keyval Error: layout undefined.
  1. Please help me resolve this problem?
  2. And how do I check if all options in the package are working.

I am using MikTeX 2.8 on Windows XP and WinEdt IDE.

share|improve this question
What version of geometry are you using? Find out by adding \listfiles before \documentclass{article}. This compiles without problem on TeX Live 2009 on ScribTeX (with geometry 2010/03/13 v5.3). – Werner Sep 1 '11 at 20:53
thanks a lot, it was older version, now I updated it to v5.6 – Prabhanjan Naib Sep 1 '11 at 21:25
up vote 6 down vote accepted

Comparing the obsolete geometry v4.2 manual with the manual of the current version 5.6, it seems that the layout package option was introduced in version 5 (which was a major upgrade). Update your TeX distribution in order to get the current version of geometry, and everything should be fine. (I compiled your example, and it worked without problem.)

EDIT: Here are the links to: 1. Latest version of geometry for manual install; 2. MiKTeX 2.9 for TeX distribution upgrade; 3. TeX Live 2011 for TeX distribution change.

share|improve this answer
It was an older version, updated it to v5.6, it's working now. Thank you. – Prabhanjan Naib Sep 1 '11 at 21:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.