template and Makefile improvements
This commit is contained in:
parent
5a8f5e1603
commit
af2221019b
@ -1,14 +1,18 @@
|
|||||||
.PHONY: all
|
TARGET=specification
|
||||||
.PRECIOUS: %.tex
|
|
||||||
|
|
||||||
all: specification.pdf clean
|
.PHONY: all tex pdf clean cleanall
|
||||||
|
|
||||||
%.tex: %.reqif
|
all: pdf clean
|
||||||
python3 reqif/scripts/parse.py $<
|
|
||||||
|
|
||||||
%.pdf: %.tex
|
tex:
|
||||||
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $<
|
python3 reqif/scripts/parse.py $(TARGET).reqif
|
||||||
|
|
||||||
|
pdf: tex
|
||||||
|
latexmk -pdf -pdflatex="pdflatex -interaction=nonstopmode" -use-make $(TARGET).tex
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
latexmk -c
|
latexmk -c -f $(TARGET).tex
|
||||||
rm -f *~ *.tex
|
rm -f *~ *.tex
|
||||||
|
|
||||||
|
cleanall: clean
|
||||||
|
rm $(TARGET).pdf
|
@ -9,18 +9,18 @@
|
|||||||
{%- if item.system_type_uid == '_4-K5EHYYEem_kd-7nxt1sg' %}
|
{%- if item.system_type_uid == '_4-K5EHYYEem_kd-7nxt1sg' %}
|
||||||
\section{ {{macros.latex_filter(item.Heading)}} }
|
\section{ {{macros.latex_filter(item.Heading)}} }
|
||||||
{%- elif item.system_type_uid == '_MR7eNHYYEem_kd-7nxt1sg' %}
|
{%- elif item.system_type_uid == '_MR7eNHYYEem_kd-7nxt1sg' %}
|
||||||
\subsection{\xspace{}{{ macros.latex_filter(item.ID) }}: {{macros.latex_filter(item.Heading)}} }
|
\subsection{\xspace{}{{ item.ID }}: {{ item.Heading }} }
|
||||||
{%- if 'Description' in item and item.Description != '' %}
|
{%- if 'Description' in item and item.Description != '' %}
|
||||||
{{ macros.requirement_filter(item.Description) }}
|
{{ item.Description }}
|
||||||
{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' or 'Fitcriterion' in item and item.Fitcriterion != ''%}
|
{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' or 'Fitcriterion' in item and item.Fitcriterion != ''%}
|
||||||
|
|
||||||
\begin{tabu}{lX}
|
\begin{tabu}{lX}
|
||||||
\toprule
|
\toprule
|
||||||
{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' %}
|
{%- if 'ReasonForImplementation' in item and item.ReasonForImplementation != '' %}
|
||||||
\emph{Reason} & {{ macros.requirement_filter(item.ReasonForImplementation) }}\\
|
\emph{Reason} & {{ item.ReasonForImplementation }}\\
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if 'Fitcriterion' in item and item.Fitcriterion != '' %}
|
{%- if 'Fitcriterion' in item and item.Fitcriterion != '' %}
|
||||||
\emph{Fitcriterion} & {{ macros.requirement_filter(item.Fitcriterion) }}\\
|
\emph{Fitcriterion} & {{ item.Fitcriterion }}\\
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
\bottomrule
|
\bottomrule
|
||||||
\end{tabu}
|
\end{tabu}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user