Changes

Jump to navigation Jump to search
791 bytes added ,  08:29, 2 July 2022
m
Text replacement - "pragma-ade.com" to "pragma-ade.nl"
< [[Math]] | [[FontsBold Typewriter]] >
see Hans has descibed how to work with bold math in [http://www.pragma-ade.comnl/general/magazines/mag-0005.pdf MyWay No.5 about "Mixed Normal and Bold Math"] by Pragma. However, this method only seems to work with lucida fonts. For other fonts (currently only for latin modern and euler), one can also define
<texcode>\definetypeface [boldmath] [mm] [boldmath] [latin----modern] [default]</texcode>
David Munger wrote in [http://www.ntg.nl/pipermail/ntg-context/2004/005314.html this post] and [http:then use <code>boldsymbol<//www.ntg.nl/pipermail/ntg-context/2004/005315code> around symbol that you want in bold.html its followup]:== Mixing Math Fonts ==
<i>This should be better documented and should go into a separate document, but until then I've just found a little workaround for using boldsymbolsleave it here before it gets lost. It works even with Perhaps the [[Math with nath|nath]] module. It's probably not the best example above could be typeset in a similar way of doing it, but since it does the trick for me, I guess it might useful to other ConTeXtersas well.</i>
{{Explanation}}
 
<b>Background</b>: If you use
<texcode>
\definesetupbodyfont[1ant]\boldsymbol{{\hbox{\formula{\bfm #1}}}}% 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>
When using [[Math with nath|nath]], it doesn't work with inline formulaeSo far so good. So in that case, better useYou get pretty mathematical symbols mathcing the document style. The problem arises when you want to try something like
<texcode>
$\unprotect\define[1]\boldsymbol{{\hbox{\o@dollar \bfm #1 \o@dollar}}}\protectLongrightarrow$
</texcode>
I also have to<b>Solution:</b> [[User:Taco|Taco]] provided the following code and comments:
<texcode>
\definebodyfontstarttypescript [math] [antykwa-torunska] [name] \definefontsynonym [17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt,4ptMathRoman] [ComputerModernMath-Roman] \definefontsynonym [mmMathExtension] [ComputerModernMath-Extension] %definefontsynonym [mrbf=cmbx10 sa 1, exbf=cmex10 sa 1, mibf=cmmib10 sa 1, sybf=cmbsy10 sa 1, mabf=msam10 sa 1MathItalic] [ComputerModernMath-Italic \setupformulaedefinefontsynonym [method=boldMathSymbol] [ComputerModernMath-Symbol]\stoptypescript
</texcode>
ThenSince there is more in the MathItalic fonts than just letters, I itmay define very handy commands likeproduce un-even effects.
<texcode>If you want more detailed control, you have to load extra math\define\grad{\boldsymbol{\nabla}}font families and redefine selected bits of the math collection\define(see also [1http://source.contextgarden.net/tex/context/base/font-unk.tex font-unk.tex]\vec{\boldsymbol{#1}}\define, [1http://source.contextgarden.net/tex/context/base/math-tex.tex math-tex.tex]\unitvec{\hat{\vec{#1}}}<and [http://source.contextgarden.net/texcode>type-syn.tex type-syn.tex])
and formulas like this typeset perfectly[[Category:Math]] <texcode>\[ \grad h = a \unitvec{n} \[Category:Fonts]]</texcode>

Navigation menu