[NTG-context] usepath?

Wolfgang Schuster schuster.wolfgang at googlemail.com
Thu Sep 29 17:23:37 CEST 2011


Am 29.09.2011 um 17:18 schrieb Meer, H. van der:

> What are \usepath and \usesubpath supposed to do? I looked into the mkiv-code but could not find an explanation.
> I have a problem finding files from within a project-product-component structure and I hoped to solve through these macros. Sofar without success.
> In the wiki there is an item on project structure containing a \usepath but that didn't help me out.

You can specify with them subdirectories where context looks when you include a component file, e.g. instead of

   \startproduct product

   \component subdirectory/component-1
   \component subdirectory/component-2

   \stopproduct

you can write

   \startproduct product

   \usepath[subdirectory]

   \component component-1
   \component component-2

   \stopproduct

Wolfgang


More information about the ntg-context mailing list