From 204522f61ca9470ac10fcd90f690b08d04922c27 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 15 Aug 2013 13:33:21 -0400 Subject: [PATCH] Added summary for Annex II --- task.sty | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/task.sty b/task.sty index 8371bf1..e47f42a 100644 --- a/task.sty +++ b/task.sty @@ -11,6 +11,10 @@ \setcounter{taskc}{0} \renewcommand\thetaskc{\Roman{taskc}} +% stores the total low and high until reset +\newcounter{tasktmin} +\newcounter{tasktmax} + \newcounter{subtaskc}[taskc] \setcounter{subtaskc}{0} \renewcommand\thesubtaskc{% @@ -86,6 +90,9 @@ \ifx\@@h\empty\else \@task@setregs#1||% {\scriptsize \the\@@hconf\% Confidence}% + % advance the total counters + \addtocounter{tasktmin}{\@@hmin} + \addtocounter{tasktmax}{\@@hmax} \fi% }% \hspace{\the\taskspace}% @@ -112,3 +119,18 @@ \divide\@@hconf by-\@@hmax \advance\@@hconf by 100\relax } + + +\newcommand\tasksummary{{% + \subsection{Summary} + \pnumoff + \edef\@@range{\arabic{tasktmin}-\arabic{tasktmax}}% + \par {\sc Time Interval:} \expandafter\@task@h\@@range|| Hours% + % determine confidence + \expandafter\@task@setregs\@@range||% + \par {\sc Confidence:} \the\@@hconf\%% + % reset counters + \setcounter{tasktmin}{0}% + \setcounter{tasktmax}{0}% + \pnumrest +}}