# [metapost] Problem with defaultscale

John Kitzmiller jkitz at verizon.net
Mon Aug 4 19:03:06 CEST 2008

----- Original Message -----
From: "Oliver Buerschaper" <oliver.buerschaper at mpq.mpg.de>
To: <metapost at tug.org>

> I'm trying to change the default font size MetaPost uses for labels
> but the following code keeps giving me trouble:
>
> ---
> beginfig(1);
>     defaultscale := 6;
>     label(btex Hallo $\sum$ etex, origin);
> endfig;
>

defaultscale sets the size of the metapost font. It does not affect typeset labels.

Try this to see:

beginfig(1);
defaultscale := 6;
label(btex Hallo $\sum$ etex, origin);
label.bot("Hallo",origin);
endfig;

But I cannot be much help on how to change the size of typeset labels as I have trouble there too.  Seems like putting latex commands inside btex ... etex should work, I have seen files where it does, but it does not (yet) for my installation.

Also, if you make a preamble like...

prologues:=3;
filenametemplate "%j%c.mps";
verbatimtex
%&latex
\documentclass{minimal}
\usepackage{charter}
\begin{document}
etex

...you can change the font of typeset labels by using a package.

I think some of this is involved in the changes the team are making.

--John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/metapost/attachments/20080804/854de5cd/attachment.html