## \ifnotswp

I would like to have some macros executed only if we are *not* running in scientific word.

\ifnot\swp

\usepackage{all-my-tough-to-understand-macros}

\usepackage{tcilatex}

\fi

probably could use \makeatletter and \@ifundefined{\swp}{\usepackage{mystuff}}{}

so, I need something that only swp defines, and preferably not in tcilatex (because I will load this later, too, even if I am typsetting my document with latex)

how would I do this?

### Unless you pick out something

Unless you pick out something that's defined only in tcilatex.tex, you will have to create your own switch.  There isn't anything special in the LaTeX files that SW creates besides adding tcilatex.tex when the document is saved with the SWP/SW/SN file type.  If you save using the Portable LaTeX file type, then there wouldn't be even tcilatex.tex around.  The only distinguishing items would be comments in the file, which aren't seen by the LaTeX compiler.

After all, SW doesn't do the LaTeX compile.  SW gives you the visual interface, but the .tex files generated could be compiled by any LaTeX implementation.