From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Dimension in mkiv definefont
Date: Thu, 3 Jul 2014 06:39:37 +0200 [thread overview]
Message-ID: <A402372C-853D-4254-A318-04DC805A2773@gmail.com> (raw)
In-Reply-To: <53B47D08.1090405@koloro.de>
Am 02.07.2014 um 23:43 schrieb Uwe Koloska <ml@KOLORO.DE>:
> Dear list,
>
> the following runs fine in mkii (i.e. if compiled with 'texexec') but
> gives an error with mkiv (compiled with 'context'):
>
> \showframe
>
> \newdimen\Ssize \Ssize=18pt
> %\definefont[MyFont][Serif at 18pt]
> \definefont[MyFont][Serif at \Ssize]
>
> \starttext
> \MyFont
> \input knuth
> \stoptext
>
> I have just installed the current version of context-minimals:
> ConTeXt ver: 2013.06.07 17:34 MKII fmt: 2014.7.2 int: english/english
>
> What ist the mkiv way to set a dimension that will be used in a number
> of \definefont commands?
Use the \definemeasure command to set the value and the \measure command to access it.
\definemeasure[Ssize][18pt]
\definefont[MyFont][Serif at \measure{Ssize}]
\starttext
\MyFont
\input knuth
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
prev parent reply other threads:[~2014-07-03 4:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-02 21:43 Uwe Koloska
2014-07-03 4:39 ` Wolfgang Schuster [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A402372C-853D-4254-A318-04DC805A2773@gmail.com \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).