1
0
Fork 0

Added summary for Annex II

master
Mike Gerwitz 2013-08-15 13:33:21 -04:00
parent 7f96bcf9fc
commit 204522f61c
1 changed files with 22 additions and 0 deletions

View File

@ -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
}}