[texhax] beamer, fontspec and (x)keyval

Ulrike Fischer news3 at nililand.de
Mon Jun 27 14:13:35 CEST 2011


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

-- 
Ulrike Fischer 



More information about the texhax mailing list