% @(#)set_cont.hlq	19.1 (ESO-IPG) 02/25/03 14:03:43 
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
%.COPYRIGHT  (c)  1990 European Southern Observatory
%.IDENT      set_cont.hlq
%.AUTHOR     KB, IPG/ESO
%.KEYWORDS   MIDAS, help files, SET/CONTEXT
%.PURPOSE    On-line help file for the command: SET/CONTEXT
%.VERSION    1.0  27-APR-1987 : Creation, KB
%----------------------------------------------------------------
\se
SECTION./CONT
\es\co
SET/CONTEXT						06-JUL-1998   KB
\oc\su
SET/CONTEXT cntxt
	enable new context
\us\pu
Purpose:  
          Enable new context and increment context level.
\up\sy
Syntax: 
          SET/CONTEXT cntxt [ctx_dir]
\ys\pa
          cntxt = name of context (max. 8 characters!);
\\
              for each context `cntxt' there must exist a file `cntxt.ctx'
              either in MID_CONTEXT or in the current directory or in MID_WORK
              (that's also the search order)
\\
              the context is directly translated into a file name and
              since by default all filenames are lowercase in MIDAS the
              context name is always converted to lowercase!
\ap\pa
          ctx_dir = optional directory of context file 
\\
              if you have a private context with a name matching an already
              existing Midas context (i.e. one stored in MID_CONTEXT) you
              must also enter the `ctx_dir', otherwise you'll never get your
              own context but always the one from Midas, due to the search
              order described above
\ap\sa
See also:
          CLEAR/CONTEXT, SHOW/CONTEXT, HELP [Context], SHOW/COMMAND
\\
          chapter 3, MIDAS Users Guide, volume A
\as\no
Note:
          This command is used to enable application packages which are not 
          part of the core MIDAS. The context file is a normal MIDAS procedure
          used to add new commands, to set specific defaults, to copy standard
          files and so on.
\\
          HELP [Context] displays general info about contexts and a list of
          all contexts currently provided by MIDAS (i.e. context files in
          MID_CONTEXT).
\on\exs
Examples:
\ex
          SET/CONTEXT echelle
          Enable all the commands used for Echelle type data reduction.
\xe \ex
          SET/CONTEXT tijuana
          If you have a procedure tijuana.ctx in the current directory or in
          MID_WORK, this procedure will be executed and the context level
          incremented (no Midas context `tijuana' exists).
\xe \ex
          SET/CONTEXT mos $MID_WORK
          Enable private context `mos' (mos.ctx is in MID_WORK), don't use
          the Midas context `mos' (mos.ctx stored in MID_CONTEXT).
          incremented.
\xe \sxe
