Commit 3a0b8a1b authored by Andreas Zwinkau's avatar Andreas Zwinkau

Nice link texts

parent 2e61ce1f
......@@ -15,6 +15,10 @@
\usepackage{rdfref-query}
\newcommand\partOf[1]{\AddProperty{doc:partOf}{#1}}
\newcommand\tests[1]{\AddProperty{pfl:tests}{#1}}
\newcommand\testlink[1]{\hyperlink{#1}%
{ \GetProperty{#1}{pfl:tstid} }}
\newcommand\functionalitylink[1]{\hyperlink{#1}%
{ \GetProperty{#1}{pfl:fncid} }}
\newcounter{functionality}
\newcounter{test}
......@@ -24,13 +28,17 @@
\stepcounter{test}
\par\textbf{T\arabic{test} #1}\rdflabel{#2}
\marginpar{T\arabic{test}}
Testing: \Bind{#2}{pfl:tests}{?f}{ \GetVal{?f} }
\AddProperty{pfl:tstname}{#1}
\AddPropertyEx{pfl:tstid}{T\arabic{test}}
Testing: \Bind{#2}{pfl:tests}{?f}{ \functionalitylink{\GetVal{?f}} }
\par}
\newcommand\functionality[2]{
\stepcounter{functionality}
\par\textbf{F\arabic{functionality} #1}\rdflabel{#2}
\marginpar{F\arabic{functionality}}
Tested by: \Bind{?t}{pfl:tests}{#2}{ \GetVal{?t} }
\AddProperty{pfl:fncname}{#1}
\AddPropertyEx{pfl:fncid}{F\arabic{functionality}}
Tested by: \Bind{?t}{pfl:tests}{#2}{ \testlink{\GetVal{?t}} }
\par}
\begin{document}
......@@ -59,4 +67,12 @@
\test{First Start}{tst:first}
\tests{fnc:bar}
\test{Trial}{tst:trial}
\tests{fnc:bar}
\pagebreak
\test{The End}{tst:end}
\tests{fnc:foo}
\end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment