% ------------------------------------------------------------------------
% File: correct.sty
%       ===========
%
% A (very) simple Revision Control System for LaTeX2e/WinEdt
%
% Version 0.001 2000/12/05 by Aleksander Simonic
%         0.002 2001/03/04 changed by R Schlicht
%
% This package comes with no guarantees and no reserved rights.
% You can use or modify this file at your own risk.
%
% ************************************************************************
%
% Examples of Usage:
% ==================
%
%\usepackage[active,new,old]{correct} % \Add and \Del Corrections
%\usepackage[active]{correct} % Only Additions- in blue colors
%\usepackagep[active,old,nonew]{correct} % Old text - in red
%\usepackage{correct} % Only Additions - no colors: final version
%
% In your preamble you have to also include the color package:
%
% \usepackage{color}
%
% In WinEdt mark your deletions and additions as:
%
% ... \Del{Old Text} \Add{New text}
%
% ------------------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{correct}[2000/12/05 v0.001 Corrections]
\RequirePackage{color}
\newif\ifAddDel \AddDeltrue
\newif\ifAddNew \AddNewtrue
\newif\ifAddOld \AddOldfalse
\DeclareOption{active}{\AddDeltrue}
\DeclareOption{inactive}{\AddDelfalse}
\DeclareOption{new}{\AddNewtrue}
\DeclareOption{nonew}{\AddNewfalse}
\DeclareOption{old}{\AddOldtrue}
\DeclareOption{noold}{\AddOldfalse}
\ExecuteOptions{inactive,noold,new}
\ProcessOptions
% ------------------------------------------------------------------------
% [changed the definitions so that colouring can span over a paragraph break
%  (schlicht 2001/03/04)]
\DeclareRobustCommand\Del[1]{\ifAddOld\ifAddDel{{\color{red}#1}}\else#1\fi\fi}
\DeclareRobustCommand\Add[1]{\ifAddNew\ifAddDel{{\color{blue}#1}}\else#1\fi\fi}
% Alternative without colors
%\DeclareRobustCommand\Del[1]{\ifAddOld\ifAddDel{{\sffamily#1}}\else#1\fi\fi}
%\DeclareRobustCommand\Add[1]{\ifAddNew\ifAddDel{{\bfseries#1}}\else#1\fi\fi}
%------------------------------------------------------------------------
