ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Setup font size by dimension variable
@ 2013-08-04 10:29 Dmitriy Tokarev
  2013-08-04 10:45 ` Philipp Gesang
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitriy Tokarev @ 2013-08-04 10:29 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi all,

I want to set the font size by using the dimension variable, but it doesn't work. What am I doing wrong?

\definemeasure[AAA][20pt]
\newdimen\BBB \BBB=20pt

\starttext
TEXT

% don't work
\switchtobodyfont[\measure{AAA}]
AAA

% don't work
\switchtobodyfont[\the\BBB]
BBB

% ok
\switchtobodyfont[20pt]
TEXT 20pt

\stoptext

--
Dmitriy
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-08-04 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-04 10:29 Setup font size by dimension variable Dmitriy Tokarev
2013-08-04 10:45 ` Philipp Gesang
2013-08-04 10:48   ` Philipp Gesang
2013-08-04 12:27     ` [***SPAM***] " Dmitriy Tokarev

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).