* Getting number of figure pages in MkIV
@ 2009-10-31 5:41 Aditya Mahajan
2009-10-31 12:15 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2009-10-31 5:41 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
What is the correct way of getting the number of figure pages in MkIV. The
following, which works in MkII, always gives 0 is MkIV.
\getfiguredimensions[filename]
\noffigurepages
Thanks,
Aditya
___________________________________________________________________________________
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] 3+ messages in thread
* Re: Getting number of figure pages in MkIV
2009-10-31 5:41 Getting number of figure pages in MkIV Aditya Mahajan
@ 2009-10-31 12:15 ` Hans Hagen
2009-10-31 22:52 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2009-10-31 12:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
Aditya Mahajan wrote:
> Hi,
>
> What is the correct way of getting the number of figure pages in MkIV.
> The following, which works in MkII, always gives 0 is MkIV.
>
> \getfiguredimensions[filename]
> \noffigurepages
in grph-inc.mkiv we need to add a check pass for this
\ifconditional\testexternalfigureonly
\ifcase\figurestatus \else
\ctxlua{figures.check()}%
\fi
\signalexternalfigure
\else
or maybe even
\ifconditional\testexternalfigureonly
\ifcase\figurestatus \else
\ctxlua{figures.check()}%
\ctxlua{figures.scale()}%
\fi
\signalexternalfigure
\else
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 3+ messages in thread
* Re: Getting number of figure pages in MkIV
2009-10-31 12:15 ` Hans Hagen
@ 2009-10-31 22:52 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2009-10-31 22:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Sat, 31 Oct 2009, Hans Hagen wrote:
> Aditya Mahajan wrote:
>> Hi,
>>
>> What is the correct way of getting the number of figure pages in MkIV. The
>> following, which works in MkII, always gives 0 is MkIV.
>>
>> \getfiguredimensions[filename]
>> \noffigurepages
>
> in grph-inc.mkiv we need to add a check pass for this
>
> \ifconditional\testexternalfigureonly
> \ifcase\figurestatus \else
> \ctxlua{figures.check()}%
> \fi
> \signalexternalfigure
> \else
This works perfectly.
> \ifconditional\testexternalfigureonly
> \ifcase\figurestatus \else
> \ctxlua{figures.check()}%
> \ctxlua{figures.scale()}%
> \fi
> \signalexternalfigure
> \else
and so does this.
Thanks,
Aditya
___________________________________________________________________________________
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] 3+ messages in thread
end of thread, other threads:[~2009-10-31 22:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-31 5:41 Getting number of figure pages in MkIV Aditya Mahajan
2009-10-31 12:15 ` Hans Hagen
2009-10-31 22:52 ` Aditya Mahajan
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).