-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequirement_macros.tex
62 lines (50 loc) · 1.76 KB
/
requirement_macros.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
\definecolor{tb-orange}{RGB}{230, 79, 45}
% Command to generate a new subsubsection for a requirement.
% The name is of the form [group]_REQ_[num], where group
% can be set via a call to \group.
% Arguments:
% - ID: usually a number, should be unique for this group
% - Title: The short description of the requirement
% - Description: The full description of the requirement
% - Parent requirements: Links to the parent requirements
% - Partition: Partitioning of this requirement, ignored if empty
\newcommand{\req}[6]{
\begin{mdframed}[backgroundcolor=tb-orange, linecolor=black]
\subsection*{#1: #2} \label{#1}
\paragraph{Description:}
#3
\paragraph{Parent Requirements:}
#4
\ifthenelse{\equal{#5}{}}{}{
\paragraph{Partition:}
#5
}
\paragraph{Implemented by:}
#6
\end{mdframed}
\vspace{.5cm}
}
% Command to link to another requirement
% Arguments:
% - ID: ID of the requirement.
\newcommand{\link}[1]{\hyperref[#1]{#1}}
% Command to generate a new subsubsection for a design decision.
% The name is of the form [group]_DD_[num], where group
% can be set via a call to \group.
% Arguments:
% - ID: usually a number, should be unique for this group
% - Title: The short description of the requirement
% - Description: The full description of the requirement
% - Reasoning: Reason for the choice of design decision.
\newcommand{\dd}[5]{
\begin{mdframed}[backgroundcolor=tb-orange, linecolor=black]
\subsection*{#1: #2} \label{#1}
\paragraph{Description:}
#3
\paragraph{Reasoning:}
#4
\paragraph{Implemented by:}
#5
\end{mdframed}
\vspace{.5cm}
}