On 26-8-2011 08:16, Aditya Mahajan wrote:
Hi Hans,
Two bugs in figure export:
1. If one uses images without extension, then the generated \jobname-images.css file does not contain any extensions; so no figures are shown in the output. One possible fix is to change \dotagfigure in back-ini.mkiv to
\appendtoks % we can have differently scaled images
\def\dotagfigure{\taggedctxcommand{settagfigure(,"\figurefullname","\figurefilepage",\number\dimexpr\figurewidth,\number\dimexpr\figureheight)}}%
\to \everyenableelements % \figurefullname instead of \figurefileoriginal
tricky ... \figurefullname can be the converted image (say that we wa ask for an svg .. .it gets converted to pdf then) .. needs a bit of thinking
2. What is the best way to handle multipage pdf images? I frequently create a big pdf with many images and then use
\externalfigure[...][page=2]
I don't know if svg has support for multiple pages or not.
The 'converter' program can filter the pages ... so we need to pass the page number. So we have 2 todo's Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------