[NTG-context] Missing math symbols (MK-IV)

gummybears oracleopp at gmail.com
Mon Mar 22 18:54:40 CET 2010


In a previous email I commented that the integral symbols, when using the
unicode font Cambria or Asana,
don't look ok. It has to do with the way e.g \iint, \iiint etc are
constructed. Whether or
not the symbol is present in the unicode font, the tex macro \repeatintegral
is used
(fallback option). I don't want to use the Cambria or Asana font entirely,
as the other math typesetting
doesn't look nice. Just for the missing symbols.

Found an earlier post (Thomas A. Schmitz titled symbols in luatex date
2008-01-02) where
a solution was presented by Wolfgang Schuster. Basically I am using his
and came up with the following (only works ok in text mode). Also looked at
but not sure how to make it work with unicode fonts (could not find any
looked at the source files, but don't know what to fill in for the 6
parameters to definemathcharacter)

Question : what is the right way I can make this work (definemathcharacter,
something else) ?
Question : some of these symbols are defined in char-def.lua but missing in
What is needed to make them active ? Can I do it myself and send a list of
missing symbols with their unicode value ?

Thanks for the help.

% test of some math symbols
  \definefontsynonym [Serif] [name:asana][features=default]
\definetypeface [MathSymbols] [rm] [serif] [mathsymbols] [default]

% undefine iint, iiint, iiiint
\definemathcommand [iint]   {}
\definemathcommand [iiint]  {}
\definemathcommand [iiiint] {}
% define my own
\definecharacter integral
\definecharacter dblintegral
\definecharacter tripleintegral
\definecharacter contourintegral
\definecharacter surfaceintegral
\definecharacter volumeintegral
integral \integral double integral \dblintegral triple integral
\NC \text{integral} \NC \text{\integral}_{a}^{b} \NR
\NC \text{double integral} \NC \text{\dblintegral}_{a}^{b}\NR
\NC \text{triple integral} \NC \text{\tripleintegral}\NR
\NC \text{contour integral} \NC \text{\contourintegral}_{a}^{b} \NR
\NC \text{surface integral} \NC \text{\surfaceintegral}_{a}^{b} \NR
\NC \text{volume integral}  \NC \text{\volumeintegral}_{a}^{b} \NR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20100322/42db0abc/attachment.html>

More information about the ntg-context mailing list