ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Changing font size
Date: Sat, 18 Mar 2006 21:52:26 -0800	[thread overview]
Message-ID: <90C0F965-7AB6-4D6E-BA35-9860763C839E@cox.net> (raw)

All,

I have this:

\startMPpage %figure library name: sec3q1

%initialize window parameters
numeric xmin, xmax, xscl, ymin, ymax, yscl;
xmin:=-10;
xmax:=10;
xscl:=1;
ymin:=-200;
ymax:=200;
yscl:=20;

%initialize number of points
numeric num_points;
num_points:=200;

%initialize dimensions of image
numeric width, height;
width=1.5in;
height=1.5in;

%create the grid
create_grid(xmin,xmax,xscl,ymin,ymax,yscl,width,height);

boolean lbl_scl; lbl_scl:=false;

%create the axes
create_axes(xmin,xmax,ymin,ymax,width,height,lbl_scl)("$x$")("$y$");

%draw the function
drawfcn("x","(x+6)*(x-1)* 
(x-5)",xmin,xmax,ymin,ymax,width,height,num_points,xmin,xmax)
withcolor blue ;

%initialize scale
numeric ux, uy;
(xmax-xmin)*ux=width;
(ymax-ymin)*uy=height;

%define polynomial
vardef f(expr x)=
(x+6)*(x-1)*(x-5)
enddef;

%label extrema
dotlabel.top(btex Local Maximum etex, (-3.2,f(-3.2)) xyscaled (ux,uy));
dotlabel.bot(btex Local Minimum etex, (3.2,f(3.2)) xyscaled (ux,uy));

\stopMPpage

What I'd like to do is typeset those "Local Maximum" and "Local  
Minimum" in the defaultfont at a size 2 pts smaller than the default.  
Any easy way to do this?

             reply	other threads:[~2006-03-19  5:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-19  5:52 David Arnold [this message]
2006-03-19 17:41 ` Aditya Mahajan
2006-03-19 17:53 ` Mojca Miklavec

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=90C0F965-7AB6-4D6E-BA35-9860763C839E@cox.net \
    --to=dwarnold45@cox.net \
    --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).