On 11/26/2013 7:59 AM, "H. Özoguz" wrote:
Hello there,

I am new in variables in ConTeXt, so I tried the the following example
of two font-sizes wich should have a ratio of 0.7:


\definefont[big][name:arial at \getvariable{fontsize}{bigsize}]
\definefont[small][name:arial at \getvariable{fontsize}{smallsize}]

\big Dies ist ein großer Text.\blank
\small Dies ist ein kleiner Text.

That does not work, what is the correct syntax?

should be: "what is my error?" ...


(size -> bigsize)

but then the next hurdle is that you get 0.717pt so you need


which is why the next is better:

\definemeasure[fontsize:big]  [17pt]

\definefont[big]  [name:arial at \measure{fontsize:big}]
\definefont[small][name:arial at \measure{fontsize:small}]

    \big   Dies ist ein großer  Text. \blank
    \small Dies ist ein kleiner Text.

Best wikify this!

Alternatively you can set up symbolic sizes (like we already have a b c d), so that

\definefont[big]  [name:arial sa a]

etc can be used


                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
If your question is of interest to others as well, please add an entry to the 

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net

Reply via email to