ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bold Math (slightly improved solution)
@ 2007-06-04  6:56 Aditya Mahajan
  2007-06-04  8:36 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2007-06-04  6:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

I needed to use \boldsymbol recently, and studied the different 
solutions that have been posted on the mailing list. Using a \hbox 
wrapper seems to be the easiest way, but none of the definitions using 
\hbox took care of spacing around the symbols. Since ConTeXt now has 
equivalents of amsmath's \binrel@ and \binrel@@ commands, here is an 
improved definition of \boldsymbol.

\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [modern]
                 [encoding=texnansi]

\unprotect
\def\boldsymbol#1%
   {\preparebinrel{#1}%
    \currentbinrel
    {\mathchoice
     {\hbox{\switchtoformulabodyfont             [boldmath]$\m@th#1$}}
     {\hbox{\switchtoformulabodyfont             [boldmath]$\m@th#1$}}
     {\hbox{\switchtoformulabodyfont      [boldmath,script]$\m@th#1$}}
     {\hbox{\switchtoformulabodyfont[boldmath,scriptscript]$\m@th#1$}}}}

\protect

\starttext
$a \times b$ $a \boldsymbol{\times} b$
\stoptext

This is equivalent to \boldsymbol of amsbsy.sty. I have added this to 
the wiki,

Aditya
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Bold Math (slightly improved solution)
  2007-06-04  6:56 Bold Math (slightly improved solution) Aditya Mahajan
@ 2007-06-04  8:36 ` Hans Hagen
  2007-06-04  9:08   ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2007-06-04  8:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

how about \closesymbol (sluitsymbol in dtch)


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: Bold Math (slightly improved solution)
  2007-06-04  8:36 ` Hans Hagen
@ 2007-06-04  9:08   ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2007-06-04  9:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen wrote:
> how about \closesymbol (sluitsymbol in dtch)
>
>   
sorry, different thread -) 

Hans 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2007-06-04  9:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-04  6:56 Bold Math (slightly improved solution) Aditya Mahajan
2007-06-04  8:36 ` Hans Hagen
2007-06-04  9:08   ` Hans Hagen

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).