Bold Math (slightly improved solution)
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
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 -----------------------------------------------------------------
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