ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "George N. White III" <gnwiii@gmail.com>
To: "NTG ConTeXt" <ntg-context@ntg.nl>
Subject: starting out with MKiV -- oversized math fonts
Date: Sun, 19 Aug 2007 17:02:23 -0300	[thread overview]
Message-ID: <22af238a0708191302m4292c811t1c83755e6f4d601@mail.gmail.com> (raw)

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 <aa056@chebucto.ns.ca>
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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________


             reply	other threads:[~2007-08-19 20:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-19 20:02 George N. White III [this message]
2007-08-19 20:16 ` Peter Münster
2007-08-19 22:53   ` George N. White III
2007-08-19 23:00     ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=22af238a0708191302m4292c811t1c83755e6f4d601@mail.gmail.com \
    --to=gnwiii@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).