Commit 2e61ce1f authored by Andreas Zwinkau's avatar Andreas Zwinkau

Revised

parent 49aa78bb
......@@ -4,7 +4,7 @@ default: $(NAME).pdf
all: $(NAME).pdf
build/%.pdf: %.tex sty/*.sty
build/%.pdf: %.tex *.sty
mkdir -p build
latexmk -pdf -g -f -auxdir=build -outdir=build $<
......@@ -15,7 +15,7 @@ build/%.pdf: %.tex sty/*.sty
.PHONY: show clean distclean
show: $(NAME)_debug.pdf
show: $(NAME).pdf
xdg-open $<
clean:
......
......@@ -11,33 +11,48 @@
\usepackage{csquotes}
% cross referencing
\usepackage{sty/rdfref-user}
\usepackage{sty/rdfref-query}
\usepackage{rdfref-user}
\usepackage{rdfref-query}
\newcommand\partOf[1]{\AddProperty{doc:partOf}{#1}}
\newcommand\tests[1]{\AddProperty{pfl:tests}{#1}}
\newcommand\test[2]{\subsection{#1}\rdflabel{#2}
Testing: \Bind{#2}{pfl:tests}{?f}{ \GetVal{?f} }}
\newcommand\functionality[2]{\subsection{#1}\rdflabel{#2}
Tested by: \Bind{?t}{pfl:tests}{#2}{ \GetVal{?t} }}
\newcounter{functionality}
\newcounter{test}
% document macros
\newcommand\test[2]{
\stepcounter{test}
\par\textbf{T\arabic{test} #1}\rdflabel{#2}
\marginpar{T\arabic{test}}
Testing: \Bind{#2}{pfl:tests}{?f}{ \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} }
\par}
\begin{document}
\section{Funktionen}
\section{Kriterien}
\rdflabel{sec:funktionen}
\subsection{Muss}
\rdflabel{sec:muss}
\partOf{sec:funktionen}
\functionality{Foo}{fnc:foo}
\functionality{Bar}{fnc:bar}
\subsection{Kann}
\rdflabel{sec:kann}
\partOf{sec:funktionen}
\section{Funktionen}
\functionality{Foo}{fnc:foo}
\functionality{Bar}{fnc:bar}
\section{Tests}
\rdflabel{sec:tests}
......
\ProvidesPackage{rdfref-query}
\RequirePackage{sty/rdfref-core}
\RequirePackage{rdfref-core}
\def\Var#1{Variable: #1}
\def\Value#1{Value: #1}
......
\ProvidesPackage{rdfref-user}
\RequirePackage{sty/rdfref-core,nameref}
\RequirePackage{rdfref-core,nameref}
\newwrite\exportfile
\def\RootObject{_:doc}
......
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