14 Sep
2012
14 Sep
'12
4:56 a.m.
On Fri, Sep 14 2012, Aditya Mahajan wrote:
Hans already added a generic function \setemeasure to syst-aux, that can be used here.
Thanks, I'll take a look.
Note that a simple \doifnotemptyvalue is not enough. I can pass values like 'fit', 'max', etc to height and width keys, so you must check if what is being passed is a dimension before calling \dimexpr.
Are you sure? According to http://wiki.contextgarden.net/Command/useexternalfigure you have to pass `fit' and `max' to `factor='. -- Peter