From f69724bbb64ea8f9b2ab46e250a9c2484d7d3ea2 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 16 Aug 2013 08:45:45 -0400 Subject: [PATCH] Added support for trailing tasksummary paragraph --- task.sty | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/task.sty b/task.sty index 9099eba..9edc13f 100644 --- a/task.sty +++ b/task.sty @@ -127,7 +127,7 @@ } -\newcommand\tasksummary{{% +\newcommand\tasksummary[1][]{{% \subsection{Summary} \pnumoff \edef\@@range{\arabic{tasktmin}-\arabic{tasktmax}}% @@ -138,5 +138,10 @@ % reset counters \setcounter{tasktmin}{0}% \setcounter{tasktmax}{0}% + % output any comments, if available + \def\@@comments{#1}% + \ifx\@@comments\empty\else + \par\@@comments + \fi \pnumrest }}