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