diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bankstatement/bankstatement.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/bankstatement/bankstatement.cls | 78 |
1 files changed, 51 insertions, 27 deletions
diff --git a/Master/texmf-dist/tex/latex/bankstatement/bankstatement.cls b/Master/texmf-dist/tex/latex/bankstatement/bankstatement.cls index 7eba22e1852..39dac226689 100644 --- a/Master/texmf-dist/tex/latex/bankstatement/bankstatement.cls +++ b/Master/texmf-dist/tex/latex/bankstatement/bankstatement.cls @@ -1,10 +1,35 @@ +%% +%% This is file `bankstatement.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bankstatement.dtx (with options: `class') +%% +%% Copyright (C) 2015 by: +%% Josef Kleber +%% <josef.kleber@gmx.de> +%% +%% This file may be distributed and/or modified under the conditions of +%% the LaTeX Project Public License, either version 1.3 of this license +%% or (at your option) any later version. The latest version of this +%% license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of LaTeX version +%% 2003/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% The Current Maintainer of this work is Josef Kleber. +%% +%% This work consists of all files listed in manifest.txt. +%% \NeedsTeXFormat{LaTeX2e}% -\ProvidesClass{bankstatement}[2015/01/07 class for csv based bank statements v0.9.1]% -% +\ProvidesClass{bankstatement}[2015/11/14 class for csv based bank statements v0.9.2]% \RequirePackage{xkeyval}% -% needed to allow xxx={yyy} in class options \RequirePackage{xkvltxp}% -% \newcommand*\STM@JK@define@key[4]% {% \expandafter\gdef\csname#1@#3\endcsname{#4}% @@ -17,7 +42,6 @@ \expandafter\def\csname#1@#3\endcsname{##1}% }% }% -% \STM@JK@define@key{STM@JK}{bankstatement}{format}{csv-mt940}% \STM@JK@define@key{STM@JK}{bankstatement}{language}{english}% \STM@JK@define@key{STM@JK}{bankstatement}{title}{}% @@ -35,13 +59,14 @@ \STM@JK@define@key{STM@JK}{bankstatement}{right}{2cm}% \STM@JK@define@key{STM@JK}{bankstatement}{top}{2cm}% \STM@JK@define@key{STM@JK}{bankstatement}{bottom}{2cm}% -% \DeclareOptionX*{\PassOptionsToClass{\CurrentOption}{article}}% -\ExecuteOptionsX{format,language,title,logo,logowidth,holder,bic,iban,referencewidth,negativecolor,sort,openingbalance,closingbalance,left,right,top,bottom}% +\ExecuteOptionsX{format,language,title,logo,logowidth,holder,bic,iban,% + referencewidth,negativecolor,sort,openingbalance,% + closingbalance,left,right,top,bottom}% \ProcessOptionsX*\relax% \LoadClass{article}% -% -\RequirePackage[left=\STM@JK@left,right=\STM@JK@right,top=\STM@JK@top,bottom=\STM@JK@bottom]{geometry}% +\RequirePackage[left=\STM@JK@left,right=\STM@JK@right,top=\STM@JK@top,% + bottom=\STM@JK@bottom]{geometry}% \RequirePackage{longtable}% \RequirePackage{tabularx}% \RequirePackage{xcolor}% @@ -50,7 +75,7 @@ \RequirePackage{datatool}% \RequirePackage{calc}% \RequirePackage{ifthen}% -% +\RequirePackage{siunitx}% \newcommand*\STM@JK@dbkeys{}% \newcommand*\STM@JK@DTLforeach{}% \newcommand*\STM@JK@holdername{}% @@ -59,26 +84,19 @@ \newcommand*\STM@JK@firstcolumnheading{}% \newcommand*\STM@JK@secondcolumnheading{}% \newcommand*\STM@JK@thirdcolumnheading{}% -\newcommand*\STM@JK@openingbalancenamename{}% -\newcommand*\STM@JK@closingbalancenamename{}% -% +\newcommand*\STM@JK@openingbalancename{}% +\newcommand*\STM@JK@closingbalancename{}% \newcommand*\STM@JK@headingsep{0.5cm}% \newcommand*\STM@JK@noheader{false}% -% -\newlength\STM@JK@parspace% -\AtBeginDocument{\setlength\STM@JK@parspace{\widthof{(}}}% \newcounter{STM@JK@count}% -% \input{\STM@JK@format.def}% \input{stm\STM@JK@language.def}% -% \newcommand*\STM@JK@includelogo% {% \ifthenelse{\equal{\STM@JK@logo}{}}% {}% {\hfill\includegraphics[width=\STM@JK@logowidth]{\STM@JK@logo}}% }% -% \newcommand*\STM@JK@header% {% \noindent% @@ -91,7 +109,6 @@ \end{tabularx}% \vspace{\STM@JK@headingsep}% }% -% \newcommand\bankstatement[2][]% {% \begingroup% @@ -99,9 +116,11 @@ \stepcounter{STM@JK@count}% \xdef\STM@JK@dbname{stm\arabic{STM@JK@count}}% \ifthenelse{\equal{\STM@JK@noheader}{false}}% - {\DTLloaddb[keys={\STM@JK@dbkeys},noheader=false]{\STM@JK@dbname}{#2}}% - {\DTLloaddb[keys={\STM@JK@dbkeys},noheader=true]{\STM@JK@dbname}{#2}}% - \DTLsort{\STM@JK@sort}{\STM@JK@dbname}% + {\DTLloadrawdb[keys={\STM@JK@dbkeys},noheader=false]{\STM@JK@dbname}{#2}}% + {\DTLloadrawdb[keys={\STM@JK@dbkeys},noheader=true]{\STM@JK@dbname}{#2}}% + \ifthenelse{\equal{\STM@JK@sort}{}}% + {}% + {\DTLsort{\STM@JK@sort}{\STM@JK@dbname}}% \STM@JK@header% \begin{longtable}{llr}% \toprule% @@ -112,11 +131,16 @@ \endhead% \ifthenelse{\equal{\STM@JK@openingbalance}{none}}% {}% - { & & \\ & \STM@JK@openingbalancenamename & \DTLifStartsWith{\STM@JK@openingbalance}{-}{\textcolor{\STM@JK@negativecolor}{\STM@JK@openingbalance}}{\STM@JK@openingbalance} \\\midrule}% + { & & \\ & \STM@JK@openingbalancename &% + \DTLifStartsWith{\STM@JK@openingbalance}{-}% + {\textcolor{\STM@JK@negativecolor}{\num{\STM@JK@openingbalance}}}% + {\num{\STM@JK@openingbalance}} \\\midrule}% \STM@JK@DTLforeach% \end{longtable}% \endgroup% }% -% -\AtBeginDocument{\disable@keys{bankstatement}{format,language,left,right,top,bottom}}% -%
\ No newline at end of file +\AtBeginDocument{\disable@keys{bankstatement}% + {format,language,left,right,top,bottom}}% +\endinput +%% +%% End of file `bankstatement.cls'. |