Bold Math (slightly improved solution)
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (2)
-
Aditya Mahajan
-
Hans Hagen