1
0
Fork 0

Added \complete to task.sty

master
Mike Gerwitz 2013-08-30 16:10:55 -04:00
parent 81bc27eb42
commit 655db67469
1 changed files with 16 additions and 2 deletions

View File

@ -88,6 +88,7 @@
\goodbreak\leavevmode\@margin@sig \goodbreak\leavevmode\@margin@sig
% enable overlap command % enable overlap command
\let\overlap\@task@overlap \let\overlap\@task@overlap
\let\complete\@task@complete
% typeset % typeset
\llap{% \llap{%
\raisebox{-1.8\baselineskip}[0em][0em]{% \raisebox{-1.8\baselineskip}[0em][0em]{%
@ -104,8 +105,8 @@
\@task@setregs#1||% \@task@setregs#1||%
{\scriptsize \the\@@hconf\% Confidence}% {\scriptsize \the\@@hconf\% Confidence}%
% advance the total counters % advance the total counters
\addtocounter{tasktmin}{\@@hmin} \addtocounter{tasktmin}{\@@hmin}%
\addtocounter{tasktmax}{\@@hmax} \addtocounter{tasktmax}{\@@hmax}%
\fi% \fi%
}% }%
\hspace{\the\taskspace}% \hspace{\the\taskspace}%
@ -135,6 +136,19 @@
} }
\def\@task@complete#1{%
\ifx\@@h\empty\else
\expandafter\@task@setregs\@@h||%
% undo previous operation
\addtocounter{tasktmin}{-\@@hmin}%
\addtocounter{tasktmax}{-\@@hmax}%
% add exact time
\addtocounter{tasktmin}{#1}%
\addtocounter{tasktmax}{#1}%
\fi
}
\def\@task@setregs#1-#2||{% \def\@task@setregs#1-#2||{%
\@@hmin#1\relax \@@hmin#1\relax
\@@hmax#2\relax \@@hmax#2\relax