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[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
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in New Issue