[TxMt] Setting static variables on a per-document basis

Allan Odgaard throw-away-1 at macromates.com
Mon Jul 31 14:16:45 UTC 2006


On 31/7/2006, at 15:57, Matthias Damm wrote:

> [...] Is it possible to set the TM_LATEX_MASTER to a different  
> value only for this file?

Sort of, yes :)

In your document folder, create a file named .textmate_init and let  
it contain:

    if [[ "$TM_FILENAME" == "chapter_or_whatever" ]]; then
       export TM_LATEX_MASTER=master_file_or_whatever
    fi

This file is sourced just before running the actual command so it can  
tamper with the variables already setup.




More information about the textmate mailing list