[Tex/LaTex] Why is the “layout” option for the geometry package undefined

geometrymargins

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

With the following code :

\documentclass{article}
\usepackage{geometry}
\usepackage[T1]{fontenc}
\geometry{paperwidth=10in,paperheight=6in,layout=a6paper}
\usepackage{lipsum}

\begin{document}
\lipsum[1-10]
\end{document}

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.

Best Answer

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.