externalfigure is not finding figures in other directories, and I'm not sure if it's something I've messed up while compiling and testing new Ubuntu edgy backport packages. If I have fig.1 (a metapost eps file) in the current directory, then this test file works fine \starttext \externalfigure[fig.1] \stoptext But context won't find 1/fig.1 even if fig.1 is in the 1/ directory. This test file \starttext \externalfigure[1/fig.1] \stoptext produces this error in the log file systems : begin file test at line 1 figures : figure 1/fig.1 can not be found and a dummy figure. ConTeXt ver: 2007.04.17 12:51 MKII fmt: 2007.5.30 (on Ubuntu/i386) If you have any thoughts or have seen this behavior, let me know. -Sanjoy
Hi Sanjoy, Sanjoy Mahajan schrieb:
externalfigure is not finding figures in other directories, and I'm not sure if it's something I've messed up while compiling and testing new Ubuntu edgy backport packages. If I have fig.1 (a metapost eps file) in the current directory, then this test file works fine
\starttext \externalfigure[fig.1] \stoptext
But context won't find 1/fig.1 even if fig.1 is in the 1/ directory. This test file
\starttext \externalfigure[1/fig.1] \stoptext
produces this error in the log file
systems : begin file test at line 1 figures : figure 1/fig.1 can not be found
and a dummy figure.
ConTeXt ver: 2007.04.17 12:51 MKII fmt: 2007.5.30 (on Ubuntu/i386)
If you have any thoughts or have seen this behavior, let me know.
have you tried \externalfigure[./1/fig.1] ? Another option is to add the directory to the search path and not to use directories in the name. \setupexternalfigures[directory={% ./1,% ./2,% ../whatever/include}] I use relative and absolute paths in the search path and have no such problems. But I must admit, that I never used directories in the figure name. Greetings, Peter
-Sanjoy ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
have you tried
\externalfigure[./1/fig.1] ?
Good thought, although it also did not work. The behavior very strange because the subdirectory specification sort of works if the figure name is 1/fig.2 but not if it is 1/fig.1 or 1/fig.3. I say 'sort of' because it finds the figure and gets the dimensions from the .rli file it makes, but it doesn't include the figure in the PDF. I'm trying \tracingall to see whether I can find what goes wrong.
Another option is to add the directory to the search path and not to use directories in the name.
\setupexternalfigures[directory={% ./1,% ./2,% ../whatever/include}]
Thanks, that works reliably. -Sanjoy `If we are fortunate, Republicans will complete their self-destruction before they extinguish the Constitution and destroy America.' --Paul Roberts, former assistant Treasury Secretary under Reagan
Le Wed, 30 May 2007 14:02:19 +0100, Sanjoy Mahajan a écrit:
have you tried
\externalfigure[./1/fig.1] ?
Good thought, although it also did not work.
The behavior very strange because the subdirectory specification sort of works if the figure name is 1/fig.2 but not if it is 1/fig.1 or 1/fig.3. I say 'sort of' because it finds the figure and gets the dimensions from the .rli file it makes, but it doesn't include the figure in the PDF.
I'm trying \tracingall to see whether I can find what goes wrong.
Another option is to add the directory to the search path and not to use directories in the name.
\setupexternalfigures[directory={% ./1,% ./2,% ../whatever/include}]
Thanks, that works reliably.
-Sanjoy
`If we are fortunate, Republicans will complete their self-destruction before they extinguish the Constitution and destroy America.' --Paul Roberts, former assistant Treasury Secretary under Reagan ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________
Hi Sanjoy I put this in my env file and all images, external docs are found, assuming that they are in "children" folders of the *.tex doc \setupexternalfigures[directory={img,img/base,doc,doc/ascenseur,doc/elec}] etc I've not tested more than 3 levels of folders. Cheers
participants (3)
-
Olivier Turlier
-
Peter Rolf
-
Sanjoy Mahajan