1
0
Fork 0

Added ifshowtask time; hiding task time by default

master
Mike Gerwitz 2013-09-10 13:23:29 -04:00
parent ba34ca18fa
commit 13a6c64e2f
1 changed files with 73 additions and 63 deletions

View File

@ -3,6 +3,8 @@
\RequirePackage[usenames,dvipsnames]{xcolor}
\RequirePackage{etex}
\newif\ifshowtasktime
\newcommand\taskname{Requisite}
% Tango Icon Theme Aluminum
@ -97,13 +99,17 @@
\\
\vphantom{M}%
\ifx\@@h\empty\else
\ifshowtasktime
{\small\@task@h#1||\,h}%
\fi
\fi%
\\
\vphantom{M}%
\ifx\@@h\empty\else
\@task@setregs#1||%
\ifshowtasktime
{\scriptsize \the\@@hconf\% Confidence}%
\fi
% advance the total counters
\addtocounter{tasktmin}{\@@hmin}%
\addtocounter{tasktmax}{\@@hmax}%
@ -175,6 +181,7 @@
\newcommand\tasksummary[1][]{{%
\ifshowtasktime
\vfill
\subsection{Summary}
\pnumoff
@ -196,11 +203,13 @@
\par\@@comments
\fi
\pnumrest
\fi
}}
\newwrite\@taskstats
\newcommand\projectsummary{{%
\ifshowtasktime
\section{Project Summary}
\pnumoff
\edef\@@range{\arabic{taskamin}-\arabic{taskamax}}%
@ -242,4 +251,5 @@
\setcounter{taskamin}{0}\setcounter{taskamax}{0}%
\setcounter{taskaomin}{0}\setcounter{taskaomax}{0}%
\pnumrest
\fi
}}