making post task space tweakable

This commit is contained in:
Michael Kohlhase 2014-03-24 06:06:21 +01:00
parent 143ab8c9a4
commit cd90509503
3 changed files with 12 additions and 2 deletions

View File

@ -416,11 +416,13 @@
\def\task@set#1{\edef\task@id{task\thetask@all}
\def\task@wphases{0-0}\def\task@partners{}\def\task@lead{}
\setkeys{task}{#1}}
\def\task@post@title@space{\quad}
\newcounter{alltasks}
\def\task@post@title@space{\quad}
\newenvironment{task}[1][]%
{\stepcounter{alltasks}
\@task{#1}\item[\pdata@target{task}{\taskin\task@id\wp@id}{\task@label{\thetask@wp}}]%
\@ifundefined{task@title}{}{\textbf\task@title}%
\@ifundefined{task@title}{}{\textbf\task@title}\task@post@title@space%
\def\@initial{0-0}\ifx\task@wphases\@initial\else%
\ (\let\@@sep=\relax\@for\@I:=\task@wphases%
\do{\decode@wphase\@I\@@sep\show@wphase\wphase@start\wphase@end\wphase@force\let\@@sep=\sep@wphases}%

View File

@ -1441,13 +1441,21 @@
\setkeys{task}{#1}}
% \end{macrocode}
%
% \begin{macro}{\task@post@title@space}
% make the space after the title tweakable
% \begin{macrocode}
\def\task@post@title@space{\quad}
% \end{macrocode}
% \end{macro}
%
% \begin{environment}{task}
% \begin{macrocode}
\newcounter{alltasks}
\def\task@post@title@space{\quad}
\newenvironment{task}[1][]%
{\stepcounter{alltasks}
\@task{#1}\item[\pdata@target{task}{\taskin\task@id\wp@id}{\task@label{\thetask@wp}}]%
\@ifundefined{task@title}{}{\textbf\task@title}%
\@ifundefined{task@title}{}{\textbf\task@title}\task@post@title@space%
\def\@initial{0-0}\ifx\task@wphases\@initial\else%
\ (\let\@@sep=\relax\@for\@I:=\task@wphases%
\do{\decode@wphase\@I\@@sep\show@wphase\wphase@start\wphase@end\wphase@force\let\@@sep=\sep@wphases}%

Binary file not shown.