On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote:
> How can I change the font size of labels within one picture?
(Untested): See https://www.contextgarden.net/Command/setupMPinstance
\setupMPinstance[metafun][textstyle=sans]
Or define a new instance, which sets the textstyle to
On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote:
> Hi, I’m trying to understand MetaPost better.
>
> I’d like to draw a fat line that’s cut at its end points.
You mean like linecap = butt?
\startMPpage[offset=5mm]
path p;
p := origin -- (7cm,0);
interim linecap := butt;
On Mon, 4 Jul 2022, Johann Birnick via ntg-context wrote:
> please have a look at the following example:
>
> \starttext
> $\overbar{\alpha} \overbar{\beta}$
> \stoptext
>
> The first one works just fine, whereas the second one looks very odd.
> (At least in MkIV...)
>
> Any ideas?
I don't
How can I change the font size of labels within one picture?
Hraban
\startMPpage
defaultfont := "\truefontname{Sans}";
defaultfontsize := \the\bodyfontsize;
label.top(defaultfontsize, (0,0));
defaultfontsize := 4bp;
label.top(defaultfontsize, (50,0));
% shows that the variable changed,
% but
Hi, I’m trying to understand MetaPost better.
I’d like to draw a fat line that’s cut at its end points.
I learned, “cutdraw” should do the trick, but I get a parallelogram
instead of a rectangle.
What’s wrong?
Hraban
\startMPpage
draw (0,20)--(20,20) withpen pensquare scaled 10;
cutdraw