There's not much to guide me in the log file ( the only not found was : files > readfile > asked name: 'loc', not found), but context (ConTeXt ver: 2011.08.04 00:42 MKIV fmt: 2011.8.12 int: english/english) seems not to have found the component text, or the graphic…. So far I have lost days to this…and I'm afraid I'm none the wiser now. But I do appreciate the effort. Thanks. On 12 Aug 2011, at 08:25, Wolfgang Schuster wrote: > > Am 12.08.2011 um 07:52 schrieb Ian Lawrence: > >> So here is the simplest example I could manage… >> >> […] > > I show you how it’s done without problems on a simple example. > > All your files are in directory with the two subfolders “tex” for for subparts > of your document and “graphic” for figures. > > relabs.tex > relabs-environment.tex > tex/pickedup.tex > graphics/pic.pdf > > > The content (i attached all files) of the tex-files is: > > > \startproduct relabs > > \environment relabs-environment > > \section{Graphic} > > \placefigure[force] > {A Graphic} > {\externalfigure[pic]} > > \section{File} > > \component pickedup > > \stopproduct > > > > \startenvironment relabs-environment > > \doifmodeelse{*product} > {\setupexternalfigures[directory={graphics}]} > {\setupexternalfigures[directory={../graphics}]} > > \usepath[tex] > > \stopenvironment > > > > \startcomponent pickedup > > \environment relabs-environment > > \subsection{Text} > > \input knuth > > \subsection{Graphic} > > \placefigure[force] > {Another graphic} > {\externalfigure[pic]} > > \stopcomponent > > > > I used product and component because you can now set different figure > paths for both files. When you process the product context should search > in the “graphic” folder which is in the same folder but when you process > the component context should first go into the parent folder and then > look in “graphics”. > > > For the inclusion of files you can specify with “\usepath” where context > should look and all you need as argument for \component is the name of > the file. > > Wolfgang > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________