Changes

Jump to navigation Jump to search
1,637 bytes added ,  00:16, 5 September 2005
Antykwa & math (preliminary version)
< [[Math]] | [[Bold Typewriter]] | [[Fonts]] >
see [http://www.pragma-ade.com/general/magazines/mag-0005.pdf MyWay No.5 about "Mixed Normal and Bold Math"] by Pragma
</texcode>
== Mixing Math Fonts ==
 
<i>This 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.</i>
 
{{Explanation}}
 
<b>Background</b>: If you use
<texcode>
\setupbodyfont[ant] % 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>
 
So far so good. You get pretty mathematical symbols mathcing the document style. The problem arises when you want to try something like
<texcode>
$\Longrightarrow$
</texcode>
 
<b>Solution:</b> [[User:Taco|Taco]] provided the following code and comments:
 
<texcode>
\starttypescript [math] [antykwa-torunska] [name]
\definefontsynonym [MathRoman] [ComputerModernMath-Roman]
\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