Am 11.07.2012 um 17:17 schrieb Meer, H. van der:

I want to make my figure captions both slanted and small, or bold and small,etc.
The wiki has for setupcaptions:

headstyle normal, bold, .. , small, ..
style     normal, bold, .. , small, ..

I therefore expected to work the following setup:

\setupcaptions[headstyle={slanted,small},style={bold,small}]
\starttext
\placefigure{A dummy figure}{\externalfigure[dummy]}
Caption test.
\stoptext

But no, two seems too much. style={bold} does work and style={small} but style = {bold,small} does not. From the general principles of ConTeXt's parameter handling I would have expected this to work.
Of course I could have used style={\bf\switchtobodyfont[small]}, but I would prefer to refrain from low level font commands when possible.

I am right the setupcaptions should work with combined fontsettings, or is it my mistake?

You misunderstand how named styles work. When you have style key (can be style, textstyle etc.)
for a command you can write “style=\bf” and use the font switch as argument. Another way to set
the font is to use a name, e.g. “style=bold”. The argument in this case is a identifier which is defined as

  \definealternativestyle [\v!bold]                                   [\bf] []

As you can see “bold” is only a synonym for \bf (with the third argument you can specify what should
happen when a command when the identifier is used in a heading, see below for a example.

\definehead[HeadA][section][style=bold]
\definehead[HeadB][section][style=italic]

\starttext

\HeadA{normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal}

normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal

\HeadB{normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal}

normal \style[style=italic]{italic} normal \style[style=bold]{bold} normal \style[style=\it]{it} normal \style[style=\bf]{bf} normal
 
\stoptext


Having a list as argument for the style key is interesting and you have my vote for this but it would
be more complex and slower than the current mechanism.

Wolfgang