[texhax] beamer, fontspec and (x)keyval

Arno Trautmann Arno.Trautmann at gmx.de
Mon Jun 27 15:12:32 CEST 2011


Ulrike Fischer wrote:
> Am Mon, 27 Jun 2011 12:00:26 +0200 schrieb Arno Trautmann:
> 
>> Hi all,
>>
>> I just stumbled upon a problem using beamer and fontspec. The following code
>>
>> \documentclass{beamer}
>> \usepackage{fontspec}
>> \setbeamercolor{structure}{black}
>>
>> 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. 
> 
> But quite probably doesn't do whatever you expect it to do. You
> can't put simply a color in the second argument. The syntax of the
> command is:
> 
> \setbeamercolor{some beamer element}{fg=red}
> or
> \setbeamercolor{some beamer element}{bg=red}
> 
> (fg=foreground, bg=background)
> 
> You get an error with xkeyval because it is better in error checking

Ah, thanks! The code was from a student and I wanted to understand what was wrong. The error checking explains it …

cheers
Arno
-- 
NEU: FreePhone - kostenlos mobil telefonieren!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the texhax mailing list