ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <darnold@northcoast.com>
Subject: Font question in Metapost
Date: Sun, 03 Dec 2000 17:26:18 -0800	[thread overview]
Message-ID: <3.0.5.32.20001203172618.00ad6a90@mail.northcoast.com> (raw)

All,

I have this file (see below) where I would like to make the font size of
all my math labels smaller, say 8pt instead of 10pt. Is there a simple way
to do this? I tried \scriptsize, but that was unsatisfactory when it came
to the matrices. What I really need is some sort of declaration to use a
smaller font. I am trying to do this in plain metapost.

input mp-tool;

beginfig(7);

%initialize scale
numeric u; 1u=1in;

%draw rectangles
path p, q;
p=unitsquare xyscaled(0.5u,1u) rotated 30;
draw p;
label(btex $\scriptstyle C(A)$ etex, center p);
q:=unitsquare xyscaled (0.5u,1u) rotated 120;
pair a;
a:=right*0.5u rotated 120;
q:=q shifted -a;
draw q;
label(btex $\scriptstyle N(A^T)$ etex, center q);

%label basis for C(A)
label.top(btex $B=\left\{\pmatrix{1\cr 0\cr 0},
  \pmatrix{0\cr 1\cr 0}\right\}$ etex, point 2 of p);

%label basis for N(A^T)
label.bot(btex $B=\left\{\pmatrix{0\cr 0\cr 1}\right\}$ etex, point 3 of q);

%save current picture
picture pic; pic:=currentpicture; currentpicture:=nullpicture;

%draw rectangles
path p, q;
p=unitsquare xyscaled(0.5u,1u) rotated -30;
pair a;
a:=right*0.5u rotated -30;
p:=p shifted -a;
draw p;
label(btex $\scriptstyle C(A^T)$ etex, center p);
q:=unitsquare xyscaled (0.5u,1u) rotated -120;
draw q;
label(btex $\scriptstyle N(A)$ etex, center q);

%label basis for C(A)
label.top(btex $B=\left\{\pmatrix{1\cr -1\cr  0\cr 0\cr 0},
  \pmatrix{0\cr 0\cr 1\cr 1\cr 1}\right\}$ etex, point 3 of p);

%label basis for N(A^T)
label.bot(btex $B=\left\{\pmatrix{1\cr 1\cr 0\cr 0\cr 0},
  \pmatrix{0\cr 0\cr -1\cr 1\cr 0},
  \pmatrix{0\cr 0\cr -1\cr 0\cr 1}\right\}$ etex, point 2 of q);

%bring back right-hand side
draw pic shifted (4u,0);
endfig;

end.


                 reply	other threads:[~2000-12-04  1:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3.0.5.32.20001203172618.00ad6a90@mail.northcoast.com \
    --to=darnold@northcoast.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).