reqif/templates/tex/requirement_specification.tex

33 rivejä
1.3 KiB
TeX

{%- import 'macros.tex' as macros %}
{%- include 'head.tex' %}
{%- include 'titlepage.tex' %}
\tableofcontents
\newpage
{%- for uid in data.uid_list_sorted %}
{% with item=data.item_dict[uid] %}
{%- if item.system_type_uid == '_4-K5EHYYEem_kd-7nxt1sg' %}
\section{ {{macros.latex_filter(item.Heading)}} }
{%- elif item.system_type_uid == '_MR7eNHYYEem_kd-7nxt1sg' %}
\subsection{\xspace{}{{ macros.latex_filter(item.ID) }}: {{macros.latex_filter(item.Heading)}} }
{%- if 'Description' in item and item.Description != '' %}
{{ macros.requirement_filter(item.Description) }}
{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' or 'Fitcriterion' in item and item.Fitcriterion != ''%}
\begin{tabu}{lX}
\toprule
{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' %}
\emph{Reason} & {{ macros.requirement_filter(item.ReasonForImplementation) }}\\
{%- endif %}
{%- if 'Fitcriterion' in item and item.Fitcriterion != '' %}
\emph{Fitcriterion} & {{ macros.requirement_filter(item.Fitcriterion) }}\\
{%- endif %}
\bottomrule
\end{tabu}
{%- endif %}
{%- endif %}
{%- endif %}
{% endwith %}
{%- endfor %}
{% include 'foot.tex' %}