diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
7 files changed, 288 insertions, 58 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'. diff --git a/Master/texmf-dist/tex/latex/bankstatement/csv-camt.def b/Master/texmf-dist/tex/latex/bankstatement/csv-camt.def index 801569bcf85..43f9c8e80a3 100644 --- a/Master/texmf-dist/tex/latex/bankstatement/csv-camt.def +++ b/Master/texmf-dist/tex/latex/bankstatement/csv-camt.def @@ -1,17 +1,38 @@ -% -% definitions for the csv-mt940 format -% -% define the order of keys in your csv file -% simply use arbitrary keys for unused fields +%% +%% This is file `csv-camt.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bankstatement.dtx (with options: `camt') +%% +%% 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. +%% \renewcommand*\STM@JK@dbkeys{Account,PostingDate,ValueDate,Type,Reference,CreditorIdentifier,MandateReference,EndToEndReference,AAA,BBB,CCC,Recipient,IBAN,BIC,Amount,Currency,Info}% -% define usage of key values inside the used longtable -% dates & mixed information & amount \renewcommand*\STM@JK@DTLforeach% {% \DTLforeach{\STM@JK@dbname}% {\postingdate=PostingDate,\valuedate=ValueDate,\type=Type,\reference=Reference,\credid=CreditorIdentifier,\mref=MandateReference,\eref=EndToEndReference,\recipient=Recipient,\iban=IBAN,\bic=BIC,\amount=Amount,\currency=Currency}% {% - \parbox[t]{\widthof{ DD.MM.YYYY }}{\hspace{\STM@JK@parspace}\postingdate\\(\valuedate)} &% + \parbox[t]{\widthof{ DD.MM.YYYY }}{\leavevmode\hphantom{(}\postingdate\\(\valuedate)} &% \parbox[t]{\STM@JK@referencewidth}{\raggedright% \DTLifstringeq{\type}{}{}{\type\\}% \DTLifstringeq{\bic}{}{-}{\bic{}}\DTLifstringeq{\iban}{}{}{ / \iban}\\% @@ -20,17 +41,19 @@ \DTLifstringeq{\mref}{}{}{MREF: \mref\\}% \DTLifstringeq{\eref}{}{}{EREF: \eref\\}% \reference} &% - \DTLifStartsWith{\amount}{-}{\textcolor{\STM@JK@negativecolor}{\amount}}{\amount}% + \DTLifStartsWith{\amount}{-}{\textcolor{\STM@JK@negativecolor}{\num{\amount}}}{\num{\amount}}% \DTLiflastrow{% \ifthenelse{\equal{\STM@JK@closingbalance}{none}}% {}% - {\\\midrule\\ & \STM@JK@closingbalancenamename & \DTLifStartsWith{\STM@JK@closingbalance}{-}{\textcolor{\STM@JK@negativecolor}{\STM@JK@closingbalance}}{\STM@JK@closingbalance}}% + {\\\midrule\\ & \STM@JK@closingbalancename & \DTLifStartsWith{\STM@JK@closingbalance}{-}{\textcolor{\STM@JK@negativecolor}{\num{\STM@JK@closingbalance}}}{\num{\STM@JK@closingbalance}}}% \\\bottomrule% }% {\\ & & \\}% }% }% -% set separator of csv file \DTLsetseparator{;}% -% does the csv file (not) have a header row? ;-) -\renewcommand*\STM@JK@noheader{false}%
\ No newline at end of file +\renewcommand*\STM@JK@noheader{false}% +\sisetup{detect-all,round-integer-to-decimal,round-mode=places,round-precision=2}% +\endinput +%% +%% End of file `csv-camt.def'. diff --git a/Master/texmf-dist/tex/latex/bankstatement/csv-mt940.def b/Master/texmf-dist/tex/latex/bankstatement/csv-mt940.def index ce17e4b6c10..db6ab9139ea 100644 --- a/Master/texmf-dist/tex/latex/bankstatement/csv-mt940.def +++ b/Master/texmf-dist/tex/latex/bankstatement/csv-mt940.def @@ -1,33 +1,56 @@ -% -% definitions for the csv-mt940 format -% -% define the order of keys in your csv file -% simply use arbitrary keys for unused fields +%% +%% This is file `csv-mt940.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bankstatement.dtx (with options: `mt940') +%% +%% 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. +%% \renewcommand*\STM@JK@dbkeys{Account,PostingDate,ValueDate,Type,Reference,Recipient,IBAN,BIC,Amount,Currency,Info}% -% define usage of key values inside the used longtable -% dates & mixed information & amount \renewcommand*\STM@JK@DTLforeach% {% \DTLforeach{\STM@JK@dbname}% {\postingdate=PostingDate,\valuedate=ValueDate,\type=Type,\reference=Reference,\recipient=Recipient,\iban=IBAN,\bic=BIC,\amount=Amount,\currency=Currency}% {% - \parbox[t]{\widthof{ DD.MM.YYYY }}{\hspace{\STM@JK@parspace}\postingdate\\(\valuedate)} &% + \parbox[t]{\widthof{ DD.MM.YYYY }}{\leavevmode\hphantom{(}\postingdate\\(\valuedate)} &% \parbox[t]{\STM@JK@referencewidth}{\raggedright% \DTLifstringeq{\type}{}{}{\type\\}% \DTLifstringeq{\bic}{}{-}{\bic{}}\DTLifstringeq{\iban}{}{}{ / \iban}\\% \DTLifstringeq{\recipient}{}{}{\recipient\\}% \reference} &% - \DTLifStartsWith{\amount}{-}{\textcolor{\STM@JK@negativecolor}{\amount}}{\amount}% + \DTLifStartsWith{\amount}{-}{\textcolor{\STM@JK@negativecolor}{\num{\amount}}}{\num{\amount}}% \DTLiflastrow{% \ifthenelse{\equal{\STM@JK@closingbalance}{none}}% {}% - {\\\midrule\\ & \STM@JK@closingbalancenamename & \DTLifStartsWith{\STM@JK@closingbalance}{-}{\textcolor{\STM@JK@negativecolor}{\STM@JK@closingbalance}}{\STM@JK@closingbalance}}% + {\\\midrule\\ & \STM@JK@closingbalancename & \DTLifStartsWith{\STM@JK@closingbalance}{-}{\textcolor{\STM@JK@negativecolor}{\num{\STM@JK@closingbalance}}}{\num{\STM@JK@closingbalance}}}% \\\bottomrule% }% {\\ & & \\}% }% }% -% set separator of csv file \DTLsetseparator{;}% -% does the csv file (not) have a header row? ;-) -\renewcommand*\STM@JK@noheader{false}%
\ No newline at end of file +\renewcommand*\STM@JK@noheader{false}% +\sisetup{detect-all,round-integer-to-decimal,round-mode=places,round-precision=2}% +\endinput +%% +%% End of file `csv-mt940.def'. diff --git a/Master/texmf-dist/tex/latex/bankstatement/csv-standard-bank-na.def b/Master/texmf-dist/tex/latex/bankstatement/csv-standard-bank-na.def new file mode 100644 index 00000000000..6f263745a59 --- /dev/null +++ b/Master/texmf-dist/tex/latex/bankstatement/csv-standard-bank-na.def @@ -0,0 +1,56 @@ +%% +%% This is file `csv-standard-bank-na.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bankstatement.dtx (with options: `stdbankna') +%% +%% 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. +%% +\renewcommand*\STM@JK@dbkeys{ValueDate,PostingDate,Reference,Narrative,Amount,Balance}% +\renewcommand*\STM@JK@DTLforeach% +{% + \DTLforeach{\STM@JK@dbname}% + {\postingdate=PostingDate,\valuedate=ValueDate,\reference=Reference,\narrative=Narrative,\amount=Amount,\balance=Balance}% + {% + \parbox[t]{\widthof{ (YYYY-MM-DD) }}{\leavevmode\hphantom{(}\postingdate\\(\valuedate)} &% + \parbox[t]{\STM@JK@referencewidth}{\raggedright% + \DTLifstringeq{\reference}{}{}{\reference\\}% + \DTLifstringeq{\narrative}{}{}{\narrative\\}% + } &% + \parbox[t]{\widthof{1234567.89)}}{\raggedleft\DTLifStartsWith{\amount}{-}{\textcolor{\STM@JK@negativecolor}{\num{\amount}\hphantom{)}}}{\num{\amount}\hphantom{)}}\\(\num{\balance})} + \DTLiflastrow{% + \ifthenelse{\equal{\STM@JK@closingbalance}{none}}% + {}% + {\\\midrule\\ & \STM@JK@closingbalancename & \DTLifStartsWith{\STM@JK@closingbalance}{-}% + {\textcolor{\STM@JK@negativecolor}{\num{\STM@JK@closingbalance}}}{\num{\STM@JK@closingbalance}}}% + \\\bottomrule% + }% + {\\ & & \\}% + }% +}% +\DTLsetseparator{,}% +\renewcommand*\STM@JK@noheader{false}% +\sisetup{detect-all,round-integer-to-decimal,round-mode=places,round-precision=2}% +\endinput +%% +%% End of file `csv-standard-bank-na.def'. diff --git a/Master/texmf-dist/tex/latex/bankstatement/stmenglish.def b/Master/texmf-dist/tex/latex/bankstatement/stmenglish.def index e24df2c04b8..1f131c71060 100644 --- a/Master/texmf-dist/tex/latex/bankstatement/stmenglish.def +++ b/Master/texmf-dist/tex/latex/bankstatement/stmenglish.def @@ -1,8 +1,40 @@ -\renewcommand*\STM@JK@holdername{Account holder}% +%% +%% This is file `stmenglish.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bankstatement.dtx (with options: `english') +%% +%% 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. +%% +\renewcommand*\STM@JK@holdername{Account Holder}% \renewcommand*\STM@JK@bicname{BIC}% \renewcommand*\STM@JK@ibanname{IBAN}% \renewcommand*\STM@JK@firstcolumnheading{\bfseries Date}% \renewcommand*\STM@JK@secondcolumnheading{\bfseries Reference}% \renewcommand*\STM@JK@thirdcolumnheading{\bfseries Amount (GBP)}% -\renewcommand*\STM@JK@openingbalancenamename{Opening balance}% -\renewcommand*\STM@JK@closingbalancenamename{Closing balance}%
\ No newline at end of file +\renewcommand*\STM@JK@openingbalancename{Opening Balance}% +\renewcommand*\STM@JK@closingbalancename{Closing Balance}% +\sisetup{output-decimal-marker={.}}% +\endinput +%% +%% End of file `stmenglish.def'. diff --git a/Master/texmf-dist/tex/latex/bankstatement/stmgerman.def b/Master/texmf-dist/tex/latex/bankstatement/stmgerman.def index 80129f674cc..f58a4e2efb2 100644 --- a/Master/texmf-dist/tex/latex/bankstatement/stmgerman.def +++ b/Master/texmf-dist/tex/latex/bankstatement/stmgerman.def @@ -1,8 +1,40 @@ +%% +%% This is file `stmgerman.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bankstatement.dtx (with options: `german') +%% +%% 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. +%% \renewcommand*\STM@JK@holdername{Kontoinhaber}% \renewcommand*\STM@JK@bicname{BIC}% \renewcommand*\STM@JK@ibanname{IBAN}% \renewcommand*\STM@JK@firstcolumnheading{\bfseries Datum}% \renewcommand*\STM@JK@secondcolumnheading{\bfseries Verwendungszweck}% \renewcommand*\STM@JK@thirdcolumnheading{\bfseries Betrag (EUR)}% -\renewcommand*\STM@JK@openingbalancenamename{Anfangssaldo}% -\renewcommand*\STM@JK@closingbalancenamename{Endsaldo}%
\ No newline at end of file +\renewcommand*\STM@JK@openingbalancename{Anfangssaldo}% +\renewcommand*\STM@JK@closingbalancename{Endsaldo}% +\sisetup{output-decimal-marker={,}}% +\endinput +%% +%% End of file `stmgerman.def'. diff --git a/Master/texmf-dist/tex/latex/bankstatement/stmnamibian.def b/Master/texmf-dist/tex/latex/bankstatement/stmnamibian.def new file mode 100644 index 00000000000..c6df9bc4375 --- /dev/null +++ b/Master/texmf-dist/tex/latex/bankstatement/stmnamibian.def @@ -0,0 +1,40 @@ +%% +%% This is file `stmnamibian.def', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% bankstatement.dtx (with options: `namibian') +%% +%% 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. +%% +\renewcommand*\STM@JK@holdername{Account Holder}% +\renewcommand*\STM@JK@bicname{Branch Code}% +\renewcommand*\STM@JK@ibanname{Account Number}% +\renewcommand*\STM@JK@firstcolumnheading{\bfseries Date}% +\renewcommand*\STM@JK@secondcolumnheading{\bfseries Reference}% +\renewcommand*\STM@JK@thirdcolumnheading{\bfseries Amount (NAD)}% +\renewcommand*\STM@JK@openingbalancename{Opening Balance}% +\renewcommand*\STM@JK@closingbalancename{Closing Balance}% +\sisetup{output-decimal-marker={.}}% +\endinput +%% +%% End of file `stmnamibian.def'. |