General ⇒ problem running latex
problem running latex
Hi,
I recently bought a new computer and installed miktex on it. For some reason, when I try to run my files (that I've used many times before) I get the following error message:
! Package keyval Error: book undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.458 }
?
can any one help me with that problem?
I recently bought a new computer and installed miktex on it. For some reason, when I try to run my files (that I've used many times before) I get the following error message:
! Package keyval Error: book undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.458 }
?
can any one help me with that problem?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
problem running latex
Hi,
welcome to the board!
Which is the line before that error, i.e. before line 458?
Perhaps make a copy of the document, hack it down, and post the reduced
minimal working example, which still produces the error, here.
Stefan
welcome to the board!
Which is the line before that error, i.e. before line 458?
Perhaps make a copy of the document, hack it down, and post the reduced

Stefan
LaTeX.org admin
Re: problem running latex
Hi!
Thanks for the prompt reply! the problem is - there is no line 458 in my file! I have only 107 lines in it... and it gives me the same error (with the same line number) with other files that have different lengths and different commands. also, all of these files worked in my old computer.
Thanks for the prompt reply! the problem is - there is no line 458 in my file! I have only 107 lines in it... and it gives me the same error (with the same line number) with other files that have different lengths and different commands. also, all of these files worked in my old computer.
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
problem running latex
Somewhere should be a book option within an argument, look for this.
For example,
would raise exactly the same error
Stefan
For example,
Code: Select all
\usepackage[book]{geometry}
Code: Select all
! Package keyval Error: book undefined.
LaTeX.org admin
Re: problem running latex
I understand - but nowhere do I have this. In fact, even my template file - which has nothing other than installations of packages etc., gives the same error message.
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: problem running latex
As I said: make a copy, reduce it step by step, test, reduce again, until you have isolated the problem to a line or a package or to a short example which you can post. The problem could be in your template or in your code - as long as you don't post it, we can just guess, as I did.
Stefan
Stefan
LaTeX.org admin
Re: problem running latex
here's my file - it's totally reduced yet it doesn't work.
- Attachments
-
- TEMPerry.tex
- (1.65 KiB) Downloaded 316 times
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
Re: problem running latex
Ok, I tested it, no errors here. Could you please also post your .log file of your compilation of this example?
Stefan
Stefan
LaTeX.org admin
problem running latex
I really appreciate all your help. Here's my log:
Code: Select all
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
entering extended mode
("C:/Users/perrytom/Dropbox/~Ph.D/Tex Files/TEMPerry.tex"
LaTeX2e <2011/06/27>
Babel <v3.8m> and hyphenation patterns for english, afrikaans, ancientgreek, ar
abic, armenian, assamese, basque, bengali, bokmal, bulgarian, catalan, coptic,
croatian, czech, danish, dutch, esperanto, estonian, farsi, finnish, french, ga
lician, german, german-x-2009-06-19, greek, gujarati, hindi, hungarian, iceland
ic, indonesian, interlingua, irish, italian, kannada, kurmanji, lao, latin, lat
vian, lithuanian, malayalam, marathi, mongolian, mongolianlmc, monogreek, ngerm
an, ngerman-x-2009-06-19, nynorsk, oriya, panjabi, pinyin, polish, portuguese,
romanian, russian, sanskrit, serbian, slovak, slovenian, spanish, swedish, swis
sgerman, tamil, telugu, turkish, turkmen, ukenglish, ukrainian, uppersorbian, u
senglishmax, welsh, loaded.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\article.cls"
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\size12.clo"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsmath.sty"
For additional information on amsmath, use the `?' option.
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amstext.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsgen.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsbsy.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\math\amsopn.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amsfonts.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\amsfonts\amssymb.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ams\classes\amsthm.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\latexsym.sty")
("C:\Users\perrytom\Dropbox\~Ph.D\Tex Files\fancyhdr.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\enumitem\enumitem.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\tools\array.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\multirow\multirow.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\babel.sty"
*************************************
* Local config file bblopts.cfg used
*
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\00miktex\bblopts.cfg")
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\english.ldf"
("C:\Program Files (x86)\MiKTeX 2.9\tex\generic\babel\babel.def")))
("C:\Users\perrytom\Dropbox\~Ph.D\Tex Files\csquotes.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\etoolbox\etoolbox.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\misc\etex.sty"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\graphics\keyval.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\csquotes\csquotes.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\csquotes\csquotes.cfg"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\parskip.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\setspace\setspace.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\epigraph\epigraph.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\footmisc\footmisc.sty")
("C:\Users\perrytom\Dropbox\~Ph.D\Tex Files\biblatex.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\logreq\logreq.sty"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\logreq\logreq.def"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\base\ifthen.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\ltxmisc\url.sty")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\blx-compat.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\biblatex.def")
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\bbx\authoryear-icomp.bbx
" ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\bbx\authoryear.bbx"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\bbx\standard.bbx")))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\cbx\authoryear-icomp.cbx
") ("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\biblatex.cfg"))
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\lbx\american.lbx"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\lbx\english.lbx"
! Package keyval Error: book undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.458 }
?
- Stefan Kottwitz
- Site Admin
- Posts: 10348
- Joined: Mon Mar 10, 2008 9:44 pm
problem running latex
This error seems to be related to biblatex:
To verify this, try without biblatex, i.e. remove
and
as well, or comment out these three lines.
If biblatex is the cause, update this package.
Stefan
Code: Select all
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\lbx\american.lbx"
("C:\Program Files (x86)\MiKTeX 2.9\tex\latex\biblatex\lbx\english.lbx"
! Package keyval Error: book undefined.
See the keyval package documentation for explanation.
Type H <return> for immediate help.
...
l.458 }
Code: Select all
\usepackage[style=authoryear-icomp,autocite=inline]{biblatex} %% footnote for footnoted references
\addbibresource{TEMPbibfile.bib}
Code: Select all
\printbibliography
If biblatex is the cause, update this package.
Stefan
LaTeX.org admin