From - Wed Dec 12 13:16:41 2007
Return-Path: <dirk@gawie.sun.ac.za>
X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on di.ens.fr
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled 
	version=3.1.7
Received: from mail2.sun.ac.za (mail2.sun.ac.za [146.232.64.14])
          by nef2.ens.fr (8.13.6/1.01.28121999) with ESMTP id lBCCGTw6045794
          for <metafont@ens.fr>; Wed, 12 Dec 2007 13:16:35 +0100 (CET)
X-Envelope-To: <metafont@ens.fr>
Received: from gawie.sun.ac.za ([146.232.144.33])
	by mail2.sun.ac.za with esmtp (Exim 4.50)
	id 1J2PWT-0002Qc-Jp
	for metafont@ens.fr; Wed, 12 Dec 2007 13:13:05 +0200
Received: by gawie.sun.ac.za (Postfix, from userid 1000)
	id 5316B9B31; Wed, 12 Dec 2007 13:13:04 +0200 (SAST)
Date: Wed, 12 Dec 2007 13:13:04 +0200
From: Dirk Laurie <dpl@sun.ac.za>
To: metafont@ens.fr
Subject: NAPOLEON
Message-ID: <20071212111304.GB14363@gawie.sun.ac.za>
Mail-Followup-To: Dirk Laurie <dpl@sun.ac.za>, metafont@ens.fr
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.13 (2006-08-11)
X-Greylist: Delayed for 01:03:11 by milter-greylist-3.1.4 (nef2.ens.fr [129.199.96.32]); Wed, 12 Dec 2007 13:16:36 +0100 (CET)


NAPOLEON is a MetaPost package for making geometry sketches given
a typical mathematical description.  For example, part of the
NAPOLEON code for the mathematical text

  Circles $k_1$ and $k_2$ are drawn so that
  $k_2$ passes through the centre of $k_1.$
  The circles cut each other in points $A$ and $B.$
  A third circle $k_3$ touches $k_1$ in $C$ and $k_2$ in $D$
  so that $k_1$ and $k_2$ are inside $k_3.$
  $AB$ is extended to meet $k_3$ in $E$ and $F.$
  The lines $DE$ and $DF$ cut $k_2$ respectively in $G$ and $H.$

is

  k3 = circumcircle (k1,k2,C);
  A = cut(k2,k1); B = cut(k1,k2);
  D = cut(k2,O2--O3);
  E = cut(k3,A--B); F = cut(k3,B--A);
  G = cut(k2,E--D); H = cut(k2,F--D);

To find out more, download the README, documentation and source
code from  http://dip.sun.ac.za/~laurie/napoleon.

Dirk Laurie


