1 % config: use-template-toolkit=1
2 % config: tag-style=$( )$
5 \documentclass{scrartcl}
7 \usepackage[reqspeclogo,$( IF !rspec.version )$draftlogo$( ELSE )$secondpagelogo$( END )$]{kivitendo}
8 $( KiviLatex.required_packages_for_html )$
12 \setlength{\LTpre}{0pt}
13 \setlength{\LTpost}{0pt}
15 \renewcommand{\kivitendosecondfoot}{%
17 \defaultfont\scriptsize%
18 $( KiviLatex.filter(rspec.displayable_name) )$\\
19 $( !rspec.version ? "Arbeitskopie ohne Version" : "Version " _ rspec.version.version_number _ " vom " _ rspec.version.itime.to_kivitendo(precision='minute') )$
30 \usepackage[T1]{fontenc}
42 \begin{minipage}[t][6cm]{12cm}
44 \textcolor{kivitendodarkred}{$( KiviLatex.filter(rspec.type.description) )$}
47 $( KiviLatex.filter(rspec.customer.name) )$
51 $( KiviLatex.filter(rspec.title) )$
53 %$( IF rspec.version )$
55 Version $( KiviLatex.filter(rspec.version.version_number) )$
74 %$( SET working_copy = rspec.working_copy_id ? rspec.working_copy : rspec )$
75 %$( SET versioned_copies = rspec.version ? working_copy.versioned_copies_sorted(max_version_number = rspec.version.version_number) : working_copy.versioned_copies_sorted )$
76 %$( IF !versioned_copies.size )$
77 Bisher wurden noch keine Versionen angelegt.
79 \begin{longtable}{|p{2cm}|p{2cm}|p{12cm}|}
81 \multicolumn{1}{|r}{\small Version} &
82 \multicolumn{1}{|r|}{\small Datum} &
85 %$( FOREACH versioned_copy = versioned_copies )$
86 \multicolumn{1}{|r}{\small $( KiviLatex.filter(versioned_copy.version.version_number) )$} &
87 \multicolumn{1}{|r|}{\small $( KiviLatex.filter(versioned_copy.version.itime.to_kivitendo(precision='minute')) )$} &
88 \small $( KiviLatex.filter(versioned_copy.version.description) )$\\
94 %$( BLOCK picture_outputter )$
95 % $( SET width_cm = (picture.picture_width / 150.0) * 2.54 )$
96 % $( SET width_cm = width_cm < 16.4 ? width_cm : 16.4 )$
99 \includegraphics[width=$( width_cm )$cm,keepaspectratio]{$( picture.print_file_name )$}
101 \mbox{Abbildung $( picture.number )$: $( KiviLatex.filter(picture.description ? picture.description : picture.picture_file_name) )$}
105 %$( BLOCK text_block_outputter )$
106 % $( SET text_blocks = rspec.text_blocks_sorted(output_position=output_position) )$
107 % $( IF text_blocks.size )$
111 \section{$( heading )$}
113 % $( FOREACH text_block = text_blocks )$
115 \subsection{$( KiviLatex.filter(text_block.title) )$}
117 $( KiviLatex.filter_html(text_block.text_as_restricted_html) )$
119 % $( FOREACH picture = text_block.pictures_sorted.as_list )$
120 $( PROCESS picture_outputter picture=picture )$
128 $( PROCESS text_block_outputter output_position=0 heading='Allgemeines' )$
130 %% Abschnitte und Funktionsblöcke
133 \section{Spezifikation}
135 \setlength{\LTpre}{-0.3cm}
138 %$( FOREACH top_item = rspec.sections_sorted )$
140 \subsection{Abschnitt $( KiviLatex.filter(top_item.fb_number) )$: $( KiviLatex.filter(top_item.title) )$}
142 % $( IF top_item.description )$
143 $( KiviLatex.filter_html(top_item.description_as_restricted_html.replace('\r', '').replace('\n+\Z', '')) )$
147 % $( FOREACH item = top_item.children_sorted )$
148 \parbox[t]{1.0cm}{\textcolor{kivitendodarkred}{$>>>$}}%
150 \begin{longtable}{p{2.8cm}p{11.7cm}}
151 Funktionsblock & $( KiviLatex.filter(item.fb_number) )$\\
152 Beschreibung & $( KiviLatex.filter_html(item.description_as_restricted_html) )$\\
153 Abhängigkeiten & $( KiviLatex.filter(P.requirement_spec_item_dependency_list(item)) )$
156 % $( FOREACH sub_item = item.children_sorted )$
157 \hspace*{1.15cm}\rule{15.2cm}{0.2pt}\\
160 \begin{longtable}{p{2.8cm}p{11.7cm}}
161 Unterfunktionsblock & $( KiviLatex.filter(sub_item.fb_number) )$\\
162 Beschreibung & $( KiviLatex.filter_html(sub_item.description_as_restricted_html) )$\\
163 Abhängigkeiten & $( KiviLatex.filter(P.requirement_spec_item_dependency_list(sub_item)) )$
168 % $( UNLESS loop.last )$
179 %% Textblöcke dahinter
180 $( PROCESS text_block_outputter output_position=1 heading='Weitere Punkte' )$