ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Kip Warner <kip@thevertigo.com>
To: Wolfgang Schuster <wolfgang.schuster@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Euler Constant and limit
Date: Mon, 26 Nov 2012 22:39:52 -0800	[thread overview]
Message-ID: <1353998392.3428.45.camel@rommel> (raw)
In-Reply-To: <462A77D6-AABA-4C07-9C8F-0EB9311743EE@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2170 bytes --]

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]
...

> >>> 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

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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  6:39 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 [this message]
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=1353998392.3428.45.camel@rommel \
    --to=kip@thevertigo.com \
    --cc=ntg-context@ntg.nl \
    --cc=wolfgang.schuster@gmail.com \
    /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).