[texhax] beamer, fontspec and (x)keyval

Arno Trautmann Arno.Trautmann at gmx.de
Mon Jun 27 12:00:26 CEST 2011

Hi all,

I just stumbled upon a problem using beamer and fontspec. The following code


halts with

3: Package xkeyval Error: `black' undefined in families `beamerthc'.

See the xkeyval package documentation for explanation.
Type  H <return>  for immediate help.
l.3 \setbeamercolor{structure}{black}

Interchanging lines 2 and 3 “solves” the problem. Now I guess the problem is caused by the use of xkeyval in fontspec (the problem also arises when xkeyval is loaded alone), while beamer uses keyval. So I have two things:

• I'd like to understand what exactly causes the error
• How can I avoid this error and proceed with xkeyval loaded /before/ any beamer-settings?

I'm thankful for any hints,

Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

More information about the texhax mailing list