19 Aug
2007
19 Aug
'07
10:02 p.m.
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