starting out with MKiV -- oversized math fonts
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
Or "undersized bodyfont", since the bodyfont is smaller with luatex, than with pdftex. Cheers, Peter -- http://pmrb.free.fr/contact/
On 8/19/07, Peter Münster
Or "undersized bodyfont", since the bodyfont is smaller with luatex, than with pdftex.
You are right -- it appears that \setupbodyfont[NNpt] only affects the math
font, and that the default is 12pt. If I use NN=10, the fonts agree.
A convenient
way to check is \showfontstrip.
So, how do I get 12pt body font using MKiV?
--
George N. White III
George N. White III wrote:
On 8/19/07, Peter Münster
wrote: Or "undersized bodyfont", since the bodyfont is smaller with luatex, than with pdftex.
You are right -- it appears that \setupbodyfont[NNpt] only affects the math font, and that the default is 12pt. If I use NN=10, the fonts agree. A convenient way to check is \showfontstrip.
So, how do I get 12pt body font using MKiV?
when taco has updated the binaries i will post a new version; that one wil also directly read afm files so that one gets wide fonts (>256) automatically the 10/12 pt problem is also dealt with (has to do with missing info in th elatin modern fonts, i.e. they have zero design size fields) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
George N. White III
-
Hans Hagen
-
Peter Münster