I think you will have to redefine all those parts of the environments dealing 
with fonts. Can you send a minimal example of what you want to achieve? In my 
case, \addfontfeature yields "undefined control sequence".

There are many packages which already take care of these things for you, such 
as caption, ccaption, caption2 for captions, and similar packages for footnotes.

Regards,
Wilfred


--- On Tue, 31/8/10, Marcin Grotomirski <[email protected]> wrote:

> From: Marcin Grotomirski <[email protected]>
> Subject: [XeTeX] Change fonts for different environment/commands
> To: [email protected]
> Date: Tuesday, 31 August, 2010, 6:31 PM
> Hey,
> I want to set a different font for differnt environment.
> Actually I'm
> interested in changing fonts in section titles, but also
> colour in
> footnotes. Should I use "\renewcommand"? I've tried it when
> changing
> colour globally for footnote, but xelatex compilation
> freezes.
> 
> My sample:
> \renewcommand{\thefootnote}{\addfontfeature{color=dddddd}}
> 
> I would appreciate a general solution for changing font
> features for
> different environments.
> 
> Regards,
> Marcin
> 
> 
> --------------------------------------------------
> Subscriptions, Archive, and List information, etc.:
>   http://tug.org/mailman/listinfo/xetex
> 






--------------------------------------------------
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex

Reply via email to