Commit e6bb070f authored by Andreas Zwinkau's avatar Andreas Zwinkau

IDs in margin only and twosided

parent a56a4771
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
{ \GetProperty{#1}{pfl:fncid} }} { \GetProperty{#1}{pfl:fncid} }}
\newcommand\criteriumlink[1]{\hyperlink{#1}% \newcommand\criteriumlink[1]{\hyperlink{#1}%
{ \GetProperty{#1}{pfl:crtid} }} { \GetProperty{#1}{pfl:crtid} }}
\newcommand\marginid[1]{\marginpar{\centering\textbf{#1}}}
\newcounter{criterium} \newcounter{criterium}
\newcounter{criteriumOpt} \newcounter{criteriumOpt}
...@@ -27,8 +28,8 @@ ...@@ -27,8 +28,8 @@
% document macros % document macros
\newcommand\criterium[2]{ \newcommand\criterium[2]{
\stepcounter{criterium} \stepcounter{criterium}
\par\textbf{M\arabic{criterium} #1}\rdflabel{#2} \par\textbf{#1}\rdflabel{#2}
\marginpar{M\arabic{criterium}} \marginid{M\arabic{criterium}}
\AddProperty{pfl:crtname}{#1} \AddProperty{pfl:crtname}{#1}
\AddPropertyEx{pfl:crtid}{M\arabic{criterium}} \AddPropertyEx{pfl:crtid}{M\arabic{criterium}}
\IfProperty{#2}{pfl:is-fulfilled}{% \IfProperty{#2}{pfl:is-fulfilled}{%
...@@ -38,8 +39,8 @@ ...@@ -38,8 +39,8 @@
\newcommand\criteriumOptional[2]{ \newcommand\criteriumOptional[2]{
\stepcounter{criteriumOpt} \stepcounter{criteriumOpt}
\par\textbf{K\arabic{criteriumOpt} #1}\rdflabel{#2} \par\textbf{#1}\rdflabel{#2}
\marginpar{K\arabic{criteriumOpt}} \marginid{K\arabic{criteriumOpt}}
\AddProperty{pfl:crtname}{#1} \AddProperty{pfl:crtname}{#1}
\AddPropertyEx{pfl:crtid}{K\arabic{criteriumOpt}} \AddPropertyEx{pfl:crtid}{K\arabic{criteriumOpt}}
\IfProperty{#2}{pfl:is-fulfilled}{% \IfProperty{#2}{pfl:is-fulfilled}{%
...@@ -49,16 +50,16 @@ ...@@ -49,16 +50,16 @@
\newcommand\criteriumNot[2]{ \newcommand\criteriumNot[2]{
\stepcounter{criteriumNot} \stepcounter{criteriumNot}
\par\textbf{A\arabic{criteriumNot} #1}\rdflabel{#2} \par\textbf{#1}\rdflabel{#2}
\marginpar{A\arabic{criteriumNot}} \marginid{A\arabic{criteriumNot}}
\AddProperty{pfl:crtname}{#1} \AddProperty{pfl:crtname}{#1}
\AddPropertyEx{pfl:crtid}{A\arabic{criteriumNot}} \AddPropertyEx{pfl:crtid}{A\arabic{criteriumNot}}
\par} \par}
\newcommand\functionality[2]{ \newcommand\functionality[2]{
\stepcounter{functionality} \stepcounter{functionality}
\par\textbf{F\arabic{functionality} #1}\rdflabel{#2} \par\textbf{#1}\rdflabel{#2}
\marginpar{F\arabic{functionality}} \marginid{F\arabic{functionality}}
\AddProperty{pfl:fncname}{#1} \AddProperty{pfl:fncname}{#1}
\AddPropertyEx{pfl:fncid}{F\arabic{functionality}} \AddPropertyEx{pfl:fncid}{F\arabic{functionality}}
\IfProperty{#2}{pfl:is-tested}{% \IfProperty{#2}{pfl:is-tested}{%
...@@ -69,16 +70,16 @@ ...@@ -69,16 +70,16 @@
\newcommand\nonFunctionality[2]{ \newcommand\nonFunctionality[2]{
\stepcounter{nonfunctionality} \stepcounter{nonfunctionality}
\par\textbf{N\arabic{nonfunctionality} #1}\rdflabel{#2} \par\textbf{#1}\rdflabel{#2}
\marginpar{N\arabic{nonfunctionality}} \marginid{N\arabic{nonfunctionality}}
\AddProperty{pfl:fncname}{#1} \AddProperty{pfl:fncname}{#1}
\AddPropertyEx{pfl:fncid}{N\arabic{nonfunctionality}} \AddPropertyEx{pfl:fncid}{N\arabic{nonfunctionality}}
\par} \par}
\newcommand\test[2]{ \newcommand\test[2]{
\stepcounter{test} \stepcounter{test}
\par\textbf{T\arabic{test} #1}\rdflabel{#2} \par\textbf{#1}\rdflabel{#2}
\marginpar{T\arabic{test}} \marginid{T\arabic{test}}
\AddProperty{pfl:tstname}{#1} \AddProperty{pfl:tstname}{#1}
\AddPropertyEx{pfl:tstid}{T\arabic{test}} \AddPropertyEx{pfl:tstid}{T\arabic{test}}
\\ Testing: \Bind{#2}{pfl:tests}{?f}{ \functionalitylink{\GetVal{?f}} } \\ Testing: \Bind{#2}{pfl:tests}{?f}{ \functionalitylink{\GetVal{?f}} }
......
\documentclass[parskip=full,11pt]{scrartcl} \documentclass[parskip=full,11pt,twoside]{scrartcl}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\title{ATURL: Actually Tiny URLs} \title{ATURL: Actually Tiny URLs}
......
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