ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \math  or $ doesn't work.
Date: Tue, 2 Jun 2015 22:16:59 +0200	[thread overview]
Message-ID: <09A4DBF9-E8A6-47A3-B7A8-1A3FC3DB1D91@gmail.com> (raw)
In-Reply-To: <20150602150846.49713125@localb.wexfordpress.net>


> On 02 Jun 2015, at 21:08, John Culleton <John@wexfordpress.com> wrote:
> […]
> Everything works. But there is
> something wrong with my math code. There is no
> horizontal bar between the 1 and the 2.  I guess
> I will study "The TEXbook" some more.

Hi John,

It is a good idea to read again The TeXBook, but actually I wonder why should TeX put a horizontal line between 1 and 2 in your code? 
What you are typesetting in mathmode is just 8 followed by 1 in exponent (uppserscript) and 2 in subscript, therefore there shouldn’t be any fraction bar between 1 and 2.

If the font you use has the character, what you want to typeset is the character U+00BD for 1/2 or, if you want to use mathmode, either of the solutions below (wtach the slight differences between the three versions):

\starttext
$8\tfrac{1}{2} × 11$ inch

$8\frac{1}{2} × 11$ inch

$8{1 \over 2} × 11$ inch

\stoptext

Indeed you can replace $…$ with \math{…}.

Best regards: OK
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

      reply	other threads:[~2015-06-02 20:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 15:45 John Culleton
2015-06-02 15:54 ` John Culleton
2015-06-02 16:30   ` Pablo Rodriguez
2015-06-02 19:08     ` John Culleton
2015-06-02 20:16       ` Otared Kavian [this message]

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=09A4DBF9-E8A6-47A3-B7A8-1A3FC3DB1D91@gmail.com \
    --to=otared@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).