now, milestones really crossreference; fixes #16

This commit is contained in:
Michael Kohlhase 2016-04-20 10:34:09 +02:00
parent cb4c3a77ae
commit 35d9dbf90c
4 changed files with 10 additions and 4 deletions

View File

@ -411,11 +411,14 @@
\pdata@def{mile}\mile@id{verif}{\mile@verif}% \pdata@def{mile}\mile@id{verif}{\mile@verif}%
\pdata@def{mile}\mile@id{title}{#2}% \pdata@def{mile}\mile@id{title}{#2}%
\pdata@def{mile}\mile@id{description}{#3}% \pdata@def{mile}\mile@id{description}{#3}%
\@ifundefined{mile@stones}{\xdef\mile@stones{\mile@id}}{\xdef\mile@stones{\mile@stones,\mile@id}}% \@ifundefined{mile@stones}%
{\xdef\mile@stones{\mile@id}}%
{\xdef\mile@stones{\mile@stones,\mile@id}}%
\@milestone{\mile@id}{#2}{#3}% presentation \@milestone{\mile@id}{#2}{#3}% presentation
\else\deliv@error\fi} \else\deliv@error\fi}
\newcommand\@milestone[3]{% id, title, description \newcommand\@milestone[3]{% id, title, description
\item \textbf{\miles@legend@milestone \pdataref{mile}{#1}{label} (\miles@legend@month \pdataref{mile}\mile@id{month}) \item \textbf{\miles@legend@milestone \pdata@target{mile}\mile@id{\pdataref{mile}{#1}{label}}
(\miles@legend@month \pdataref{mile}\mile@id{month})
\textbf{#2}} #3} \textbf{#2}} #3}
\newcommand\miles@legend@month{Month} \newcommand\miles@legend@month{Month}
\newcommand\miles@legend@milestone{Milestone} \newcommand\miles@legend@milestone{Milestone}

View File

@ -1434,7 +1434,9 @@
\pdata@def{mile}\mile@id{verif}{\mile@verif}% \pdata@def{mile}\mile@id{verif}{\mile@verif}%
\pdata@def{mile}\mile@id{title}{#2}% \pdata@def{mile}\mile@id{title}{#2}%
\pdata@def{mile}\mile@id{description}{#3}% \pdata@def{mile}\mile@id{description}{#3}%
\@ifundefined{mile@stones}{\xdef\mile@stones{\mile@id}}{\xdef\mile@stones{\mile@stones,\mile@id}}% \@ifundefined{mile@stones}%
{\xdef\mile@stones{\mile@id}}%
{\xdef\mile@stones{\mile@stones,\mile@id}}%
\@milestone{\mile@id}{#2}{#3}% presentation \@milestone{\mile@id}{#2}{#3}% presentation
\else\deliv@error\fi} \else\deliv@error\fi}
% \end{macrocode} % \end{macrocode}
@ -1444,7 +1446,8 @@
% the corresponding presentation macro. % the corresponding presentation macro.
% \begin{macrocode} % \begin{macrocode}
\newcommand\@milestone[3]{% id, title, description \newcommand\@milestone[3]{% id, title, description
\item \textbf{\miles@legend@milestone \pdataref{mile}{#1}{label} (\miles@legend@month \pdataref{mile}\mile@id{month}) \item \textbf{\miles@legend@milestone \pdata@target{mile}\mile@id{\pdataref{mile}{#1}{label}}
(\miles@legend@month \pdataref{mile}\mile@id{month})
\textbf{#2}} #3} \textbf{#2}} #3}
\newcommand\miles@legend@month{Month} \newcommand\miles@legend@month{Month}
\newcommand\miles@legend@milestone{Milestone} \newcommand\miles@legend@milestone{Milestone}

Binary file not shown.

Binary file not shown.