Changes

Jump to navigation Jump to search
747 bytes removed ,  15:33, 22 November 2012
no edit summary
< [[Main Page]] | [[Math with newmat]] | [[MathML]] | [[Multiline equations]]>
== Using double stroke the doublestroke font ==
Computer Modern and Latin Modern use the msbm font family for [[Blackboard bold|blackboard bold]]. msbm look very dull and usually black board bold should be avoided in math. However, there are certain cases where one needs something ''fancier'' than math bold. The [http://ctan.org/tex-archive/fonts/doublestroke doublestroke fonts] offer one such alternative. This is how these can be used with ConTeXtFor an example of what it looks like, see [http://mirrors.ctan. Note that since we are using org/fonts/doublestroke fonts as the blackboard font, there is really no need to use the blackboard fonts separately/dsdoc. So, the mb math family is reusedpdf its documentation].
<context source="yes">This is how they can be used with ConTeXt. Note that since we are using doublestroke fonts as the blackboard font, there is really no need to use the blackboard fonts separately; so, the math typescript is overwritten.
<texcode>
\loadmapfile[dstroke.map]
\starttypescript [math] [modern,computer-modern,latin-modern,ams] [size]
\definebodyfont [17.3pt,14.4pt,12pt][mm]
[mbmc=dsrom12 sa 1]
\definebodyfont [11pt,10pt,9pt] [mm]
[mbmc=dsrom10 sa 1]
\definebodyfont [8pt,7pt,6pt,5pt,4pt] [mm]
[mbmc=dsrom8 sa 1]
\stoptypescript
\definefamilysynonym [default] [doublestroke] [mbmc]
\def\dstroke {\fam\purefamily {doublestroke}}
\stopcases
\stopformula
</texcode>
 </context> == Double Stroke font by keeping Mathrelations == This definition is nearly as the above one but will keep math relations such as \subsetThe ConTeXt Garden does not have dsrom fonts installed, \subsetneq, \supsetneqq and so on defined in mb. <context source="yes"> \usemodule[amsl]\usemodule[newmat] \loadmapfile[dstroke.map] \starttypescript[math][modern,computer-modern,latin-modern,ams][size] \definebodyfont[17.3pt,14.4pt,12pt][mm][mc=dsrom12 sa 1] \definebodyfont[11pt,10pt,9pt][mm][mc=dsrom10 sa 1] \definebodyfont[8pt,7pt,6pt,5pt,4pt][mm][mc=dsrom8 sa 1]\stoptypescript \definetypeface[modern][mm][math][modern][ams][endocing=\defaultencoding] \setupbodyfont[reset,modern,10pt]  \definefamilysynonym[default][doublestroke][mc] \def\dstroke {\fam\purefamily {doublestroke}} \def\doublestroke#1{{\dstroke#1}} \starttext ${\dstroke RN}$ $\subsetneqq\subsetneq\supsetneqq\supsetneq$ \stoptext </context> Don't know why it wouldn't compile we cannot see the output here, but it works that way round...
[[Category:Math]]
[[Category:Fonts]]

Navigation menu