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>
Cc: Kip Warner <kip@thevertigo.com>
Subject: Re: Euler Constant and limit
Date: Tue, 27 Nov 2012 08:06:29 +0100	[thread overview]
Message-ID: <2DB60702-480E-41EA-BECB-86323EE64668@gmail.com> (raw)
In-Reply-To: <1353998392.3428.45.camel@rommel>


Am 27.11.2012 um 07:39 schrieb Kip Warner <kip@thevertigo.com>:

> On Sun, 2012-11-25 at 22:17 +0100, Wolfgang Schuster wrote:
>> 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]
> 
> So that would define a typeface for Latin Modern as the main body text
> and Pagella for math? So any time one typesets formulas or uses \math,
> it will automatically come out as Pagella? If that is the case, it
> didn't seem to work. I added the following to my environment, but the
> typesetting of formulae did not change:
> 
> ...
>    % Font to use for math...
>    \definetypeface[mainface][mm][math][pagella]

Better define a complete set which includes also serif and sans.
Afterwards you have to enable it with \setupbodyfont[…].

>>>>> 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 = 3release a new 
>> \stopformula
>> after
>> 
>> \stoptext
>> 
>> Wolfgang
> 
> Sorry Wolfgang, you lost me. What should the following have been written as?
> 
>        \placeformula[formula:Limit of Verhulst equation]
>        \startformula
>        \math{\lim_{t\to\infty} P(t) = K.\,}
>        \stopformula

\placeformula[formula:Limit of Verhulst equation]
\startformula
\lim_{t\to\infty} P(t) = K.
\stopformula

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-27  7:06 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
2012-11-25 21:17     ` Wolfgang Schuster
2012-11-27  6:39       ` Kip Warner
2012-11-27  7:06         ` Wolfgang Schuster [this message]
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=2DB60702-480E-41EA-BECB-86323EE64668@gmail.com \
    --to=wolfgang.schuster@gmail.com \
    --cc=kip@thevertigo.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).