On Mon, 20 Oct 2008, Jan-Erik Hägglöf wrote:
Where in this "structure" do I place "settings.tex" so it can be found by context from anywhere in my document-structure?
For files which are specific to one or two projects, I usually place them in the directory:
main-dir/ | +---- settings.tex | +---- project-1/ | | | +--- component-1-1.tex | +---- project-2/ and then in component-1-1.tex, put \environment settingsThere is no need to tell the relative path to context. When context cannot find a file in the current dir, it looks up two (or three?) levels to find the file.
As Mojca said, this has the added advantage of making the structure self-sufficient. You can just copy the main-dir on a different computer and everything works.
For files that are used in many different projects, I usually make it a module (if you are not using any advanced features, like localenvironments or setupmodules, modules and environments are the same)
I have created a directory texmf-local/tex/context/aditya where I put all my files (and sync them to a svn server so that I can use them on different computers).
I suppose I should do something like "context --make" after placing the file. If I do the usual upgrade what happens then?
You make need to run luatools --generate (or texhash if using mkii) if place the files in texmf-local. To prevent any accidents with upgrades, create a directory in texmf-local/tex/context that is unique. You can also create the directory in $TEXMFHOME/tex/context (which is usually $HOME/tex/context in *nix systems, I do not know about win/mac). Normally upgrades do not touch anything in $TEXMFHOME.
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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________