Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
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 –  Kirk Hammett Sep 1 '11 at 21:25

1 Answer 1

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. –  Kirk Hammett Sep 1 '11 at 21:26

Your Answer

 
discard

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.