Changes

Jump to navigation Jump to search
753 bytes added ,  18:54, 3 June 2020
m
remove link to former font page
< [[Math]] | [[FontsBold Typewriter]] >
see Hans has descibed how to work with bold math in [http://www.pragma-ade.com/general/magazines/mag-0005.pdf MyWay No.5 about "Mixed Normal and Bold Math"] by Pragma.  ---- David Munger wrote in [http://www.ntg.nl/pipermail/ntg-context/2004/005314.html However, this post] and [http://www.ntg.nl/pipermail/ntg-context/2004/005315.html its followup]: I've just found a little workaround for using boldsymbols. It works even with the [[Math method only seems to work with nath|nath]] modulelucida fonts. It's probably not the best way of doing it, but since it does the trick 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]], it doesn't work with inline formulae. So in that case, better useFonts ==
<texcodei>\unprotect\define[1]\boldsymbol{{\hbox{\o@dollar \bfm #1 \o@dollar}}}\protectThis should be better documented and should go into a separate document, but until then I just leave it here before it gets lost. Perhaps the example above could be typeset in a similar way as well.</texcodei>
I also have to:{{Explanation}}
<b>Background</b>: If you use
<texcode>
\definebodyfont setupbodyfont[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=boldant]% 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>
Then, I may define very handy commands So far so good. You get pretty mathematical symbols mathcing the document style. The problem arises when you want to try something like 
<texcode>
$\define\grad{\boldsymbol{\nabla}}\define[1]\vec{\boldsymbol{#1}}\define[1]\unitvec{\hat{\vec{#1}}}Longrightarrow$
</texcode>
<b>Solution:</b> [[User:Taco|Taco]] provided the following code and formulas like this typeset perfectlycomments:
<texcode>
\starttypescript [ math] [antykwa-torunska] [name] \grad h = a definefontsynonym [MathRoman] [ComputerModernMath-Roman] \unitvec{n} definefontsynonym [MathExtension] [ComputerModernMath-Extension] %definefontsynonym [MathItalic] [ComputerModernMath-Italic] \definefontsynonym [MathSymbol] [ComputerModernMath-Symbol]\stoptypescript
</texcode>
Since there is more in the MathItalic fonts than just letters, it
may produce un-even effects.
 
If you want more detailed control, you have to load extra math
font families and redefine 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])
[[Category:Math]]
[[Category:Fonts]]

Navigation menu