Getting number of figure pages in MkIV
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
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 -----------------------------------------------------------------
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
participants (2)
-
Aditya Mahajan
-
Hans Hagen