Added ifshowtask time; hiding task time by default
parent
ba34ca18fa
commit
13a6c64e2f
10
task.sty
10
task.sty
|
@ -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
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue