% This file illustrates the differences between Aspell's TeX mode
% and the new patch. Spell-check it with both versions to see the
% differences.

% Discretionary hyphens and italic corrections are ignored:
  do\-check do\/check
% TeX accents are not implemented as both LaTeX and Aspell can
% handle UTF-8.

% Content in math mode is skipped:
  $ dontcheck $
  $$ dontcheck $$
  \[ dontcheck \]

% Certain environments are skipped as well:
  \begin{equation} dontcheck \end{equation}
% Environments can be nested:
  \begin{center}
    docheck
    \begin{equation}
      dontcheck
      \begin{array}
        dontcheck
      \end{array}
    \end{equation}
    docheck
  \end{center}  
% To add more environments, use "add-tex-ignore-env". Any definition
% applies to a starred form as well:  
  \begin{equation*} dontcheck \end{equation*}

% If a macro argument is to be ignored, then it is ignored no matters
% what it contains:
  \roman{dontcheck} \roman{\emph{dontcheck}}
  
% But one can force macro arguments to be checked even if Aspell is
% skipping content:
  $ dontcheck \hbox{docheck $dontcheck \hbox{docheck}$} $
  \roman{dontcheck} \roman{\hbox{docheck}}
% This is achieved by the new "T" argument to "add-tex-command". (There
% is also a new "s" argument, but it is reserved for the "begin" macro
% and should not be used for anything else.)

% As a last resort, spell checking can be turned off completely:
  docheck
  % aspell:off
  dontcheck
  \hbox{dontcheck}
  % aspell:on
  docheck
