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') )$
37 \begin{minipage}[t][6cm]{12cm}
39 \textcolor{kivitendodarkred}{$( KiviLatex.filter(rspec.type.description) )$}
42 $( KiviLatex.filter(rspec.customer.name) )$
46 $( KiviLatex.filter(rspec.title) )$
48 %$( IF rspec.version )$
50 Version $( KiviLatex.filter(rspec.version.version_number) )$
69 %$( SET working_copy = rspec.working_copy_id ? rspec.working_copy : rspec )$
70 %$( SET versioned_copies = rspec.version ? working_copy.versioned_copies_sorted(max_version_number = rspec.version.version_number) : working_copy.versioned_copies_sorted )$
71 %$( IF !versioned_copies.size )$
72 Bisher wurden noch keine Versionen angelegt.
74 \begin{longtable}{|p{2cm}|p{2cm}|p{12cm}|}
76 \multicolumn{1}{|r}{\small Version} &
77 \multicolumn{1}{|r|}{\small Datum} &
80 %$( FOREACH versioned_copy = versioned_copies )$
81 \multicolumn{1}{|r}{\small $( KiviLatex.filter(versioned_copy.version.version_number) )$} &
82 \multicolumn{1}{|r|}{\small $( KiviLatex.filter(versioned_copy.version.itime.to_kivitendo(precision='minute')) )$} &
83 \small $( KiviLatex.filter(versioned_copy.version.description) )$\\
89 %$( BLOCK picture_outputter )$
90 % $( SET width_cm = (picture.picture_width / 150.0) * 2.54 )$
91 % $( SET width_cm = width_cm < 16.4 ? width_cm : 16.4 )$
94 \includegraphics[width=$( width_cm )$cm,keepaspectratio]{$( picture.print_file_name )$}
96 \mbox{Abbildung $( picture.number )$: $( KiviLatex.filter(picture.description ? picture.description : picture.picture_file_name) )$}
100 %$( BLOCK text_block_outputter )$
101 % $( SET text_blocks = rspec.text_blocks_sorted(output_position=output_position) )$
102 % $( IF text_blocks.size )$
106 \section{$( heading )$}
108 % $( FOREACH text_block = text_blocks )$
110 \subsection{$( KiviLatex.filter(text_block.title) )$}
112 $( KiviLatex.filter_html(text_block.text_as_restricted_html) )$
114 % $( FOREACH picture = text_block.pictures_sorted.as_list )$
115 $( PROCESS picture_outputter picture=picture )$
123 $( PROCESS text_block_outputter output_position=0 heading='Allgemeines' )$
125 %% Abschnitte und Funktionsblöcke
128 \section{Spezifikation}
130 \setlength{\LTpre}{-0.3cm}
133 %$( FOREACH top_item = rspec.sections_sorted )$
135 \subsection{Abschnitt $( KiviLatex.filter(top_item.fb_number) )$: $( KiviLatex.filter(top_item.title) )$}
137 % $( IF top_item.description )$
138 $( KiviLatex.filter_html(top_item.description_as_restricted_html.replace('\r', '').replace('\n+\Z', '')) )$
142 % $( FOREACH item = top_item.children_sorted )$
143 \parbox[t]{1.0cm}{\textcolor{kivitendodarkred}{$>>>$}}%
145 \begin{longtable}{p{2.8cm}p{11.7cm}}
146 Funktionsblock & $( KiviLatex.filter(item.fb_number) )$\\
147 Beschreibung & $( KiviLatex.filter_html(item.description_as_restricted_html) )$\\
148 Abhängigkeiten & $( KiviLatex.filter(item.presenter.requirement_spec_item_dependency_list) )$
151 % $( FOREACH sub_item = item.children_sorted )$
152 \hspace*{1.15cm}\rule{15.2cm}{0.2pt}\\
155 \begin{longtable}{p{2.8cm}p{11.7cm}}
156 Unterfunktionsblock & $( KiviLatex.filter(sub_item.fb_number) )$\\
157 Beschreibung & $( KiviLatex.filter_html(sub_item.description_as_restricted_html) )$\\
158 Abhängigkeiten & $( KiviLatex.filter(sub_item.presenter.requirement_spec_item_dependency_list) )$
163 % $( UNLESS loop.last )$
174 %% Textblöcke dahinter
175 $( PROCESS text_block_outputter output_position=1 heading='Weitere Punkte' )$