ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Munger <mungerd@users.sourceforge.net>
Subject: boldsymbol workaround
Date: Sun, 22 Feb 2004 21:31:11 -0500	[thread overview]
Message-ID: <20040223023111.GA27507@tempete.lac.qc.ca> (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} \]

             reply	other threads:[~2004-02-23  2:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-23  2:31 David Munger [this message]
2004-02-23  3:24 ` Re : " David Munger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040223023111.GA27507@tempete.lac.qc.ca \
    --to=mungerd@users.sourceforge.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).