* boldsymbol workaround
@ 2004-02-23 2:31 David Munger
2004-02-23 3:24 ` Re : " David Munger
0 siblings, 1 reply; 2+ messages in thread
From: David Munger @ 2004-02-23 2:31 UTC (permalink / raw)
Hi all,
I've just found a little workaround for using boldsymbols. It works
even with the nath module. It's probably not the best way of doing it,
but since it does the trick for me, I guess it might useful to other
ConTeXters.
Here it is:
\define[1]\boldsymbol{{\hbox{\formula{\bfm #1}}}}
I also have to:
\definebodyfont
[17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4pt]
[mm]
[mrbf=cmbx10 sa 1,
exbf=cmex10 sa 1,
mibf=cmmib10 sa 1,
sybf=cmbsy10 sa 1,
mabf=msam10 sa 1]
\setupformulae[method=bold]
Then, I may define very handy commands like
\define\grad{\boldsymbol{\nabla}}
\define[1]\vec{\boldsymbol{#1}}
\define[1]\unitvec{\hat{\vec{#1}}}
and formulas like this typeset perfectly:
\[ \grad h = a \unitvec{n} \]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re : boldsymbol workaround
2004-02-23 2:31 boldsymbol workaround David Munger
@ 2004-02-23 3:24 ` David Munger
0 siblings, 0 replies; 2+ messages in thread
From: David Munger @ 2004-02-23 3:24 UTC (permalink / raw)
> \define[1]\boldsymbol{{\hbox{\formula{\bfm #1}}}}
When using nath, it doesn't work with inline formulas. So in that case,
better use
\unprotect
\define[1]\boldsymbol{{\hbox{\o@dollar \bfm #1 \o@dollar}}}
\protect
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-02-23 3:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 2:31 boldsymbol workaround David Munger
2004-02-23 3:24 ` Re : " David Munger
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).