From f623b7217e996bf49442c7aa8266c0c468c88e99 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 23 Jan 2014 09:15:22 +0100 Subject: [PATCH] Plugin LxLatex in KiviLatex umbenannt --- .../Plugin/{LxLatex.pm => KiviLatex.pm} | 6 +-- templates/print/Standard/requirement_spec.tex | 40 +++++++++---------- 2 files changed, 23 insertions(+), 23 deletions(-) rename SL/Template/Plugin/{LxLatex.pm => KiviLatex.pm} (91%) diff --git a/SL/Template/Plugin/LxLatex.pm b/SL/Template/Plugin/KiviLatex.pm similarity index 91% rename from SL/Template/Plugin/LxLatex.pm rename to SL/Template/Plugin/KiviLatex.pm index 13687fb1e..21b0779df 100644 --- a/SL/Template/Plugin/LxLatex.pm +++ b/SL/Template/Plugin/KiviLatex.pm @@ -1,4 +1,4 @@ -package SL::Template::Plugin::LxLatex; +package SL::Template::Plugin::KiviLatex; use strict; use parent qw( Template::Plugin::Filter ); @@ -14,7 +14,7 @@ sub new { sub init { my $self = shift; - $self->install_filter($self->{ _ARGS }->[0] || 'LxLatex'); + $self->install_filter($self->{ _ARGS }->[0] || 'KiviLatex'); return $self; } @@ -72,4 +72,4 @@ sub filter_html { return join('', @parts); } -return 'SL::Template::Plugin::LxLatex'; +return 'SL::Template::Plugin::KiviLatex'; diff --git a/templates/print/Standard/requirement_spec.tex b/templates/print/Standard/requirement_spec.tex index 85d92640c..cfc6c8dbe 100644 --- a/templates/print/Standard/requirement_spec.tex +++ b/templates/print/Standard/requirement_spec.tex @@ -1,6 +1,6 @@ % config: use-template-toolkit=1 % config: tag-style=$( )$ -$( USE LxLatex )$ +$( USE KiviLatex )$ $( USE P )$ \documentclass{scrartcl} @@ -14,7 +14,7 @@ $( USE P )$ \renewcommand{\kivitendosecondfoot}{% \parbox{12cm}{% \defaultfont\scriptsize% - $( LxLatex.filter(rspec.displayable_name) )$\\ + $( KiviLatex.filter(rspec.displayable_name) )$\\ $( !rspec.version ? "Arbeitskopie ohne Version" : "Version " _ rspec.version.version_number _ " vom " _ rspec.version.itime.to_kivitendo(precision='minute') )$ \vspace*{0.2cm}% @@ -35,18 +35,18 @@ $( USE P )$ \put(3.5,-5){% \begin{minipage}[t][6cm]{12cm} \Large - \textcolor{kivitendodarkred}{$( LxLatex.filter(rspec.type.description) )$} + \textcolor{kivitendodarkred}{$( KiviLatex.filter(rspec.type.description) )$} \huge - $( LxLatex.filter(rspec.customer.name) )$ + $( KiviLatex.filter(rspec.customer.name) )$ \vspace*{0.5cm} \Large - $( LxLatex.filter(rspec.title) )$ + $( KiviLatex.filter(rspec.title) )$ \normalsize %$( IF rspec.version )$ - Version $( LxLatex.filter(rspec.version.version_number) )$ + Version $( KiviLatex.filter(rspec.version.version_number) )$ %$( END )$ \end{minipage}% } @@ -77,9 +77,9 @@ $( USE P )$ \small Beschreibung\\ \hline %$( FOREACH versioned_copy = versioned_copies )$ - \multicolumn{1}{|r}{\small $( LxLatex.filter(versioned_copy.version.version_number) )$} & - \multicolumn{1}{|r|}{\small $( LxLatex.filter(versioned_copy.version.itime.to_kivitendo(precision='minute')) )$} & - \small $( LxLatex.filter(versioned_copy.version.description) )$\\ + \multicolumn{1}{|r}{\small $( KiviLatex.filter(versioned_copy.version.version_number) )$} & + \multicolumn{1}{|r|}{\small $( KiviLatex.filter(versioned_copy.version.itime.to_kivitendo(precision='minute')) )$} & + \small $( KiviLatex.filter(versioned_copy.version.description) )$\\ %$( END )$ \hline \end{longtable} @@ -92,7 +92,7 @@ $( USE P )$ \centering \includegraphics[width=$( width_cm )$cm,keepaspectratio]{$( picture.print_file_name )$} -\mbox{Abbildung $( picture.number )$: $( LxLatex.filter(picture.description ? picture.description : picture.picture_file_name) )$} +\mbox{Abbildung $( picture.number )$: $( KiviLatex.filter(picture.description ? picture.description : picture.picture_file_name) )$} \end{figure} %$( END )$ @@ -106,9 +106,9 @@ $( USE P )$ % $( FOREACH text_block = text_blocks )$ - \subsection{$( LxLatex.filter(text_block.title) )$} + \subsection{$( KiviLatex.filter(text_block.title) )$} -$( LxLatex.filter_html(text_block.text_as_restricted_html) )$ +$( KiviLatex.filter_html(text_block.text_as_restricted_html) )$ % $( FOREACH picture = text_block.pictures_sorted.as_list )$ $( PROCESS picture_outputter picture=picture )$ @@ -131,10 +131,10 @@ $( PROCESS text_block_outputter output_position=0 heading='Allgemeines' )$ %$( FOREACH top_item = rspec.sections_sorted )$ - \subsection{Abschnitt $( LxLatex.filter(top_item.fb_number) )$: $( LxLatex.filter(top_item.title) )$} + \subsection{Abschnitt $( KiviLatex.filter(top_item.fb_number) )$: $( KiviLatex.filter(top_item.title) )$} % $( IF top_item.description )$ - $( LxLatex.filter_html(top_item.description_as_restricted_html.replace('\r', '').replace('\n+\Z', '')) )$ + $( KiviLatex.filter_html(top_item.description_as_restricted_html.replace('\r', '').replace('\n+\Z', '')) )$ \vspace{0.5cm} % $( END )$ @@ -142,9 +142,9 @@ $( PROCESS text_block_outputter output_position=0 heading='Allgemeines' )$ \parbox[t]{1.0cm}{\textcolor{kivitendodarkred}{$>>>$}}% \parbox[t]{15.0cm}{% \begin{longtable}{p{2.8cm}p{11.7cm}} - Funktionsblock & $( LxLatex.filter(item.fb_number) )$\\ - Beschreibung & $( LxLatex.filter_html(item.description_as_restricted_html) )$\\ - Abhängigkeiten & $( LxLatex.filter(P.requirement_spec_item_dependency_list(item)) )$ + Funktionsblock & $( KiviLatex.filter(item.fb_number) )$\\ + Beschreibung & $( KiviLatex.filter_html(item.description_as_restricted_html) )$\\ + Abhängigkeiten & $( KiviLatex.filter(P.requirement_spec_item_dependency_list(item)) )$ \end{longtable}} % $( FOREACH sub_item = item.children_sorted )$ @@ -152,9 +152,9 @@ $( PROCESS text_block_outputter output_position=0 heading='Allgemeines' )$ \hspace*{1.0cm}% \parbox[t]{15.0cm}{% \begin{longtable}{p{2.8cm}p{11.7cm}} - Unterfunktionsblock & $( LxLatex.filter(sub_item.fb_number) )$\\ - Beschreibung & $( LxLatex.filter_html(sub_item.description_as_restricted_html) )$\\ - Abhängigkeiten & $( LxLatex.filter(P.requirement_spec_item_dependency_list(sub_item)) )$ + Unterfunktionsblock & $( KiviLatex.filter(sub_item.fb_number) )$\\ + Beschreibung & $( KiviLatex.filter_html(sub_item.description_as_restricted_html) )$\\ + Abhängigkeiten & $( KiviLatex.filter(P.requirement_spec_item_dependency_list(sub_item)) )$ \end{longtable}} % $( END )$ -- 2.20.1