When I format the following example, based on the wiki, the math fonts
don't match
the body fonts. Note that "tex.print(c)" uses the body font and is
small compared
to the output from "tex.print("$...$")". The last line shows this is
a math-mode issue, not really a problem with output from lua:
% t-mkiv.tex -- test file for luatex and ConTeXt
% see: <http://wiki.contextgarden.net/Mark_IV>
% Compile:
% texmfstart texexec --lua t-mkiv
\starttext
Using lua for a calculation:
\startlua
a = 1.5
b = 1.8
c = a*b
tex.print(c)
\stoplua
\ctxlua{tex.print("$\string\\sqrt{2} = " .. math.sqrt(2) .. "$")}
There is a problem with the size of math fonts: X$X$X or x$x$x.
\stoptext
--
George N. White III <[EMAIL PROTECTED]>
Head of St. Margarets Bay, Nova Scotia
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________