ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [BUG] \registerexternalfigure doesn't work
@ 2020-08-20  5:05 Henri Menke
  2020-08-20 13:35 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Henri Menke @ 2020-08-20  5:05 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

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

* Re: [BUG] \registerexternalfigure doesn't work
  2020-08-20  5:05 [BUG] \registerexternalfigure doesn't work Henri Menke
@ 2020-08-20 13:35 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2020-08-20 13:35 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-08-20 13:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-20  5:05 [BUG] \registerexternalfigure doesn't work Henri Menke
2020-08-20 13:35 ` Wolfgang Schuster

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