Thanks to all. This time around I will use the lua route since I know the number of pages and it seems more natural to me...I will understand what it is doing even if I look at the thing after one month.
Bharat On Wed, Feb 23, 2011 at 10:27 AM, Aditya Mahajan <adit...@umich.edu> wrote: > On Wed, 23 Feb 2011, Curiouslearn wrote: > >> I will try to do this using lua loop. I should learn it. I am learning >> so many new things currently that I have not had a chance to learn >> Lua. >> >> I was wondering if Aditya's filter module could be used to use Python >> instead of Lua, but I suppose I should ask that as a new question. > > It is easy to do this in TeX, so no need to go to lua (or python). > > Call > > \getfiguredimensions[filename] > > Then you can use > > \noffigurepages > \figurenaturalwidth \figurenaturalheight > > to place each page of the figure. Something like: > > \getfiguredimensions[filename] > \dorecurse{\noffigurepages} > {\externalfigure[figurename][page=\recurselevel]} > > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________