|
@@ -0,0 +1,96 @@
|
|
1
|
+{%- import 'macros.tex' as macros %}
|
|
2
|
+\documentclass[a4paper]{article}
|
|
3
|
+%\documentclass[a4paper,landscape]{article}
|
|
4
|
+
|
|
5
|
+\renewcommand{\familydefault}{\sfdefault}
|
|
6
|
+\usepackage[table]{xcolor}
|
|
7
|
+\definecolor{orange}{rgb}{1, 0.7, 0}
|
|
8
|
+\definecolor{lightgrey}{rgb}{0.925, 0.925, 0.925}
|
|
9
|
+
|
|
10
|
+\setlength{\topmargin}{-3cm}
|
|
11
|
+\setlength{\oddsidemargin}{-0.5cm}
|
|
12
|
+\setlength{\evensidemargin}{0cm}
|
|
13
|
+\setlength{\textwidth}{17.5cm}
|
|
14
|
+\setlength{\textheight}{24.5cm}
|
|
15
|
+%\setlength{\textwidth}{25cm}
|
|
16
|
+%\setlength{\textheight}{15cm}
|
|
17
|
+\setlength{\headheight}{84pt}
|
|
18
|
+
|
|
19
|
+\usepackage{fancyvrb}
|
|
20
|
+\usepackage{fvextra}
|
|
21
|
+%\usepackage{framed,color}
|
|
22
|
+%\newenvironment{modulelog}{\snugshade\Verbatim}{\endVerbatim\endsnugshade}
|
|
23
|
+\usepackage{adjustbox}
|
|
24
|
+\newenvironment{modulelog}%
|
|
25
|
+{\par\noindent\adjustbox{margin=0ex,bgcolor=shadecolor,margin=0ex}\bgroup\varwidth\linewidth\Verbatim}%
|
|
26
|
+{\endVerbatim\endvarwidth\egroup}
|
|
27
|
+%\usepackage{xcolor}
|
|
28
|
+
|
|
29
|
+\renewcommand{\baselinestretch}{1,2}
|
|
30
|
+\setlength{\parindent}{0pt}
|
|
31
|
+\setlength{\parskip}{9pt plus3pt minus3pt}
|
|
32
|
+
|
|
33
|
+\usepackage{listings}
|
|
34
|
+\usepackage{color}
|
|
35
|
+\definecolor{bg-partially-covered}{rgb}{1,1,0.6} % light-yellow
|
|
36
|
+\definecolor{bg-uncovered}{rgb}{1,0.8,0.8} % light-red
|
|
37
|
+\definecolor{bg-covered}{rgb}{0.95,1,0.95} % very light-green
|
|
38
|
+\definecolor{bg-clean}{rgb}{1,1,1} % white
|
|
39
|
+\definecolor{mygreen}{rgb}{0,0.6,0}
|
|
40
|
+\definecolor{mygray}{rgb}{0.5,0.5,0.5}
|
|
41
|
+\definecolor{mymauve}{rgb}{0.58,0,0.82}
|
|
42
|
+\lstset{ %
|
|
43
|
+ backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}; should come as last argument
|
|
44
|
+ basicstyle=\footnotesize, % the size of the fonts that are used for the code
|
|
45
|
+ breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
|
|
46
|
+ breaklines=true, % sets automatic line breaking
|
|
47
|
+ captionpos=b, % sets the caption-position to bottom
|
|
48
|
+ commentstyle=\color{mygreen}, % comment style
|
|
49
|
+ deletekeywords={...}, % if you want to delete keywords from the given language
|
|
50
|
+ escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
|
|
51
|
+ extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
|
|
52
|
+ frame=none, % adds a frame around the code
|
|
53
|
+ keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
|
|
54
|
+ keywordstyle=\color{blue}, % keyword style
|
|
55
|
+ language=Octave, % the language of the code
|
|
56
|
+ morekeywords={*,...}, % if you want to add more keywords to the set
|
|
57
|
+ numbers=left, % where to put the line-numbers; possible values are (none, left, right)
|
|
58
|
+ numbersep=5pt, % how far the line-numbers are from the code
|
|
59
|
+ numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
|
|
60
|
+ rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
|
|
61
|
+ showlines=true,
|
|
62
|
+ showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
|
|
63
|
+ showstringspaces=false, % underline spaces within strings only
|
|
64
|
+ showtabs=false, % show tabs within strings adding particular underscores
|
|
65
|
+ stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
|
|
66
|
+ stringstyle=\color{mymauve}, % string literal style
|
|
67
|
+ tabsize=2, % sets default tabsize to 2 spaces
|
|
68
|
+}
|
|
69
|
+\usepackage{hyperref}
|
|
70
|
+\usepackage{longtable}
|
|
71
|
+\usepackage{tabu}
|
|
72
|
+\usepackage{multicol}
|
|
73
|
+\usepackage{booktabs}
|
|
74
|
+\usepackage{graphicx}
|
|
75
|
+\usepackage{lastpage} % for the number of the last page in the document
|
|
76
|
+\usepackage{fancyhdr}
|
|
77
|
+\usepackage{xspace}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+% define commands for easy access
|
|
81
|
+\newcommand{\req}[2]{\begin{infoBox} \textbf{ #1:} #2 \end{infoBox}}
|
|
82
|
+\newcommand{\rfori}[1]{\textbf{Reason for Implementation:} #1 \\}
|
|
83
|
+\newcommand{\fitcrit}[1]{\textbf{Fitcriterion:} #1 \\}
|
|
84
|
+
|
|
85
|
+\fancyhf{}
|
|
86
|
+\renewcommand{\headrulewidth}{0pt}
|
|
87
|
+\renewcommand{\footrulewidth}{0pt}
|
|
88
|
+\lhead{\textcolor{gray}{}}
|
|
89
|
+\chead{\textcolor{gray}{ Requirement Specification for {\tt {{ macros.latex_filter(data.titel) }} }}}
|
|
90
|
+\rhead{\textcolor{gray}{}}
|
|
91
|
+\lfoot{\textcolor{gray}{}}
|
|
92
|
+\cfoot{\textcolor{gray}{}}
|
|
93
|
+\rfoot{\textcolor{gray}{\thepage\,/ \pageref{LastPage}}}
|
|
94
|
+
|
|
95
|
+\begin{document}
|
|
96
|
+
|