ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Euler Constant and limit
Date: Sun, 25 Nov 2012 22:15:48 +0100	[thread overview]
Message-ID: <D6FF81BA-3472-4F05-80AC-ACBA583DA766@gmail.com> (raw)
In-Reply-To: <1353876366.3603.116.camel@rommel>


Am 25.11.2012 um 21:46 schrieb Kip Warner <kip@thevertigo.com>:

> On Sun, 2012-11-25 at 10:37 +0100, Wolfgang Schuster wrote:
>> You need a font which has the symbol, e.g. Cambria or Lucida OT.
> 
> Hey Wolfgang. Thanks for pointing that out. I had suspected as much,
> which leads me to my next question: What is the setup for selecting a
> new font, but just for math?

You have to define a typeface and enable it but Latin Modern as text font with patella etc.
for math doesn’t look very nice.

\definetypeface[mainface][rm][serif][modern] [default][designsize=auto]
\definetypeface[mainface][ss][sans] [modern] [default][designsize=auto]
\definetypeface[mainface][tt][mono] [modern] [default][designsize=auto]
\definetypeface[mainface][mm][math] [pagella]

\setupbodyfont[mainface]

>>> In addition, the following formula does not typeset correctly. There is
>>> no arrow linking 't' to infinity symbol:
>>> 
>>> \placeformula[formula:Limit of Verhulst equation]
>>> \startformula
>>> \math{\lim_{t\to\infty} P(t) = K.\,}
>>> \stopformula
>> 
>> Works for me (Version 2012.11.23).
> 
> It's probably the font I am using.
> 
>> BTW: Why do you use \math inside of \startformula because it’s the command for inline math in normal text?
> 
> I haven't any explanation. I just thought that that was how you were
> suppose to do it from reading the manuals. How should it be?

\setupbodyfont[pagella]

\starttext

left \math{1 + 2 = 3} middle \m{\Eulerconst} right % \math and \m are synonyms

\blank

before
\startformula
1 + 2 = 3
\stopformula
after

\stoptext

Wolfgang
___________________________________________________________________________________
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:[~2012-11-25 21:15 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-25  1:13 Kip Warner
2012-11-25  9:37 ` Wolfgang Schuster
2012-11-25 20:46   ` Kip Warner
2012-11-25 21:15     ` Wolfgang Schuster [this message]
2012-11-25 21:17     ` Wolfgang Schuster
2012-11-27  6:39       ` Kip Warner
2012-11-27  7:06         ` Wolfgang Schuster
2012-11-28  0:21           ` Kip Warner

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=D6FF81BA-3472-4F05-80AC-ACBA583DA766@gmail.com \
    --to=wolfgang.schuster@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).