Open main menu

Changes

917 bytes added ,  08:29, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
< [[Math]] | [[FontsBold Typewriter]] >
David Munger wrote Hans has descibed how to work with bold math in [http://www.ntgpragma-ade.nl/pipermail/ntg-context/2004/005314.html this post] and [http:/general/www.ntg.nlmagazines/pipermail/ntgmag-context/2004/0053150005.html its followup]: I've just found a little workaround for using boldsymbolspdf MyWay No. It works even with the [[5 about "Mixed Normal and Bold Math with nath|nath"]] module. It's probably not the best way of doing itHowever, but since it does the trick this method only seems to work with lucida fonts. For other fonts (currently only for melatin modern and euler), I guess it might useful to other ConTeXters.one can also define
<texcode>
\definedefinetypeface [1boldmath] [mm] [boldmath] [latin-modern] [default]\boldsymbol{{\hbox{\formula{\bfm #1}}}}
</texcode>
When using [[and then use <code>boldsymbol</code> around symbol that you want in bold.== Mixing Math with nath|nath]]Fonts == <i>This should be better documented and should go into a separate document, but until then I just leave it doesn't work with inline formulaehere before it gets lost. So Perhaps the example above could be typeset in that case, better usea similar way as well.</i> {{Explanation}}
<b>Background</b>: If you use
<texcode>
\unprotect\definesetupbodyfont[1ant]\boldsymbol{{\hbox{\o@dollar \bfm #1 \o@dollar}}}\protect% Antykwa Torunska
</texcode>
the math will be typeset with Antykwa as well. <i>(Perhaps this is a deprecated way of selecting fonts, I don't know. It works on my distribution, but not on the garden. Please use at your own risk.)</i>
I also have So far so good. You get pretty mathematical symbols mathcing the document style. The problem arises when you want to:try something like
<texcode>
$\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]Longrightarrow$
</texcode>
Then, I may define very handy commands like<b>Solution:</b> [[User:Taco|Taco]] provided the following code and comments:
<texcode>
\definestarttypescript [math] [antykwa-torunska] [name] \grad{definefontsynonym [MathRoman] [ComputerModernMath-Roman] \boldsymbol{\nabla}}definefontsynonym [MathExtension] [ComputerModernMath-Extension]\define %definefontsynonym [MathItalic] [1ComputerModernMath-Italic]\vec{\boldsymbol{#1}} \definedefinefontsynonym [MathSymbol] [1ComputerModernMath-Symbol]\unitvec{\hat{\vec{#1}}}stoptypescript
</texcode>
Since there is more in the MathItalic fonts than just letters, itmay produce un-even effects. If you want more detailed control, you have to load extra mathfont families and formulas like this typeset perfectlyredefine selected bits of the math collection(see also [http://source.contextgarden.net/tex/context/base/font-unk.tex font-unk.tex], [http://source.contextgarden.net/tex/context/base/math-tex.tex math-tex.tex] and [http://source.contextgarden.net/type-syn.tex type-syn.tex])
<texcode>[[Category:Math]]\[ \grad h = a \unitvec{n} \[Category:Fonts]]</texcode>