ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [***SPAM***] Trying to get two styles simultaneiously
@ 2012-04-27 13:25 hwitloc
  2012-04-29  7:58 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: hwitloc @ 2012-04-27 13:25 UTC (permalink / raw)
  To: ntg-context



I have been wrestling with this for hours and I'm sure there's a real easy fix.  Just that it's eluding me.

How can I use \definedescription to set a combination style?

e.g. 
Below I can get a capitalized description header:

\definedescription[rsection][location=left,width=broad,headstyle=cap]

but, I also want it to be bold.  That is a bold+cap at the same time.

I tried \bf\cap  as a headcommand but it didn't seem to work, as was just ignored.


Regards
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [***SPAM***] Trying to get two styles simultaneiously
  2012-04-27 13:25 [***SPAM***] Trying to get two styles simultaneiously hwitloc
@ 2012-04-29  7:58 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2012-04-29  7:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.04.2012 um 15:25 schrieb hwitloc@gmail.com:

> 
> 
> I have been wrestling with this for hours and I'm sure there's a real easy fix.  Just that it's eluding me.
> 
> How can I use \definedescription to set a combination style?
> 
> e.g. 
> Below I can get a capitalized description header:
> 
> \definedescription[rsection][location=left,width=broad,headstyle=cap]
> 
> but, I also want it to be bold.  That is a bold+cap at the same time.
> 
> I tried \bf\cap  as a headcommand but it didn't seem to work, as was just ignored.

When you use Latin Modern you can never achieve what you want because the font doesn’t have a bold caps font but when you use another font like TeX Gyre Pagella it’s possible but you need a different approach because smallcaps are a font feature which have to enabled.

\definefontfeature[smcp][smcp=yes]

\definedescription
  [description]
  [width=broad,
   headstyle={\bf\addff{smcp}}]

\setupbodyfont[pagella]

\starttext

\input ward

\startdescription{Ward}
\input ward
\stopdescription

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-29  7:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-27 13:25 [***SPAM***] Trying to get two styles simultaneiously hwitloc
2012-04-29  7:58 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).