[metapost] Labeling an angle
mailanholgerpeters at web.de
mailanholgerpeters at web.de
Sat Dec 23 23:11:10 CET 2006
Hi,
thanks for your help, but I'd rather have a sector of a circle drawn around it, as in:
http://de.wikipedia.org/wiki/Bild:Vertical_angles.png
Is there an easier way than to do hard-coded positioning of the circle and the label?
Holger
> -----Ursprüngliche Nachricht-----
> Von: rjerrard at math.concordia.ab.ca
> Gesendet: 23.12.06 20:17:59
> An: mailanholgerpeters at web.de
> CC: metapost at tug.org
> Betreff: Re: [metapost] Labeling an angle
> On Sat, 2006-12-23 at 20:02 +0100, mailanholgerpeters at web.de wrote:
> > Hi,
> >
> > I started writing summaries of the lectures I'm taking. For geometric drawings, I use metapost.
> >
> > There, I often have to label angles (alpha, beta, gamma, etc) for example between two straight lines. How do I do that?
> >
> > Holger
>
> Hi Holger, I use commands like:
>
> label.rt(btex $\theta=\frac{\pi}{3}$ etex, (0,0)) withcolor (1,0,0);
>
> which gives a red theta=pi/3 in latex style at location (0,0). Of
> course, you can use any latex symbol instead of theta, drop or change
> the withcolor, and change the location easily enough. The label.rt will
> place the label to the right of the specified location and center it
> vertically (.top, .bot, lft, .urt, .lrt, .ulft, and .llft, are possible
> label extensions).
>
> To have this work, I also need to use:
>
> verbatimtex
> %&latex
> \documentclass{article}
> \usepackage{colordvi}
> \begin{document}
> etex;
>
> at the beginning of the metapost file and
>
> verbatimtex
> \end{document}
> etex;
>
> at the end of the metapost file.
>
> Hope that helps, Bob
> --
> Dr. Robert J. Jerrard, Professor of Mathematics,
> Concordia University College of Alberta,
> 7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
> Phone: (780) 479-9291, Fax: (780) 474-1933.
>
>
__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsstärkeren E-Mail-Postfach!
Mehr Infos unter http://freemail.web.de/home/landingpad/?mc=021131
More information about the metapost
mailing list