Sign up ×
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.

After .cls file changes, \includegraphics[scale=0.5]{img/GoalHierarchyMetaModel.png} command gives the following error.

! Package keyval Error: scale=0.5 undefined.

See the keyval package documentation for explanation.
Type  H <return>  for immediate help.

l.6 ...[scale=0.5]{img/GoalHierarchyMetaModel.png}

MWE can be accessed from google drive in here.

main_e.tex is the working one, main_m.tex outputs error above. Only difference between those files is documentclass.

  • main_e.tex uses \documentclass[conference]{IEEEtran}
  • main_m.tex uses \documentclass[chaparabic,ceng,phd,12pt,oneandhalf]{metu}
share|improve this question

marked as duplicate by Heiko Oberdiek, Speravir, Jubobs, Adam Liter, Masroor Apr 22 '14 at 23:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Let me guess: you have \usepackage[turkish]{babel}. – egreg Apr 22 '14 at 19:20
Possibly the first class loads graphicx while the second loads graphics. I recommend you explicitly load graphicx if you want to include image files. – Nicola Talbot Apr 22 '14 at 19:22
If you're using babel for Turkish, look at… – egreg Apr 22 '14 at 19:26
@Speravir: But the latter does not contain the alternative solution of egreg via xkeyval. Thus some merging should be done. – Heiko Oberdiek Apr 22 '14 at 21:36
@HeikoOberdiek: Or even better: \newgeometry doesn't work with Turkish babel package, because it does contain much more solution ways. – Heiko Oberdiek Apr 22 '14 at 21:39

1 Answer 1

up vote 5 down vote accepted

As egreg guessed your class has \RequirePackage[english,turkish]{babel} which apparently redefines = you need to locally set it back:

share|improve this answer
Thanks a lot, now it is working. – Cahit Gungor Apr 23 '14 at 19:22

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