ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: display math overcrowded with $$..$$
Date: Fri, 17 Mar 2006 05:44:39 +0000	[thread overview]
Message-ID: <E1FK7lP-00038x-00@skye.ra.phy.cam.ac.uk> (raw)

The following file produces a overcrowded displayed formula (the
integral sign almost touches the line of text below it):

\starttext
$$\ln(1+x)=\int_1^{1+x}{dt\over t}$$ is very useful.
The logarithm is the area of regions A and B.
\stoptext

But if I use \startformula..\stopformula instead of $$..$$, then the
spacing is fine.  I make the pdf file with 'texexec --pdf try.tex' and
see the problem on my laptop (Debian testing/unstable i386, teTeX
3.0-14 + cm-super font package):

               texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
               texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
                   tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
               context : ver: 2005.01.31
               cont-en : ver: 2005.01.31  fmt: 2006.2.18  mes: english

I thought a conTeXt upgrade might fix it, but I haven't (yet!) won the
battle with teTeX and map and encoding files.  However, the live ConTeXt
(2006.02.15) on the Wiki displays, no pun intended, the same spacing
problem.

Should I not use $$..$$ for display math?  I'm learning context as I
convert my plain tex + eplain files.  The Wiki page on Math
<http://wiki.contextgarden.net/Math> says that context inherits its math
from plain TeX, which implies that $$ should work.  However, no examples
on the page use $$, so maybe I shouldn't be so presumptuous.

Although I'd like $$..$$ and \startformula..\stopformula to be
equivalent, I can write a script to convert plain TeX $$..$$
constructions to \{start,stop}formula

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

             reply	other threads:[~2006-03-17  5:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17  5:44 Sanjoy Mahajan [this message]
2006-03-17  9:14 ` Taco Hoekwater

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=E1FK7lP-00038x-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --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).