Re: [NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-20 Thread Wolfgang Schuster

Henri Menke schrieb am 20.08.2020 um 07:05:

Dear list,

To get properties of a figure without actually typesetting it, it is
handy to use \registerexternalfigure.  However, trying to use it fails.
Consider the following MWE:

 \starttext
 \registerexternalfigure[cow.pdf]
 \stoptext


Wrong command, use \getfiguredimensions[...]


Looking at the definition in grph-inc.mkiv reveals that is it complete
bogus.


Is this necessary?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-19 Thread Henri Menke
Dear list,

To get properties of a figure without actually typesetting it, it is
handy to use \registerexternalfigure.  However, trying to use it fails.
Consider the following MWE:

\starttext
\registerexternalfigure[cow.pdf]
\stoptext

Looking at the definition in grph-inc.mkiv reveals that is it complete
bogus.

\unexpanded\def\registerexternalfigure
  {\dotripleempty\grph_include_register}

\def\grph_include_register[#1][#2][#3]%
  {\startnointerference
 \c_grph_include_test_only
 \setfalse\c_grph_include_flush % == test ?
 \externalfigure[#1][#2][#3]% or
 \externalfigure[#1][#2,\c!display=,\c!mask=,\c!object=\v!no]%
   \stopnointerference}

I guess this is not intentional and was left over at some point.  Could
you please fix this?

Cheers,
Henri
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___