From cf2cbc512e7c8f18c61eb6604adc68155cf468a3 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 12 Mar 2015 22:29:57 +0000 Subject: fcolumn (12mar15) git-svn-id: svn://tug.org/texlive/trunk@36499 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/fcolumn/README | 48 ++++++++++++++++++++++++ Master/texmf-dist/doc/latex/fcolumn/fcolumn.pdf | Bin 0 -> 212093 bytes 2 files changed, 48 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/fcolumn/README create mode 100644 Master/texmf-dist/doc/latex/fcolumn/fcolumn.pdf (limited to 'Master/texmf-dist/doc/latex/fcolumn') diff --git a/Master/texmf-dist/doc/latex/fcolumn/README b/Master/texmf-dist/doc/latex/fcolumn/README new file mode 100644 index 00000000000..27e64940f25 --- /dev/null +++ b/Master/texmf-dist/doc/latex/fcolumn/README @@ -0,0 +1,48 @@ +The LaTeX-package ``fcolumn'' + +In financial reports, text and currency amounts are regularly put in +one table, e.g., a year balance or a profit-and-loss overview. +This package provides the settings for automatically typesetting +such columns, including the sum line (preceded by a rule of the correct +width), using the specifier ``f''. + +The column specifier f itself is rather simple. It is the predefined +version of a generic column F. The generic version expects three +arguments: |#1| is the separator, |#2| is the decimal mark, and |#3| +the coding used for grouping digits of the integer part and decimal +part. For example the f-column in the current version of the package +is using 3.2 as #3, meaning that numbers are typeset with 2 decimal +digits and grouping is done on 3 digits. The decimal separator is +``,'' and the grouping character is ``.'', thereby coding for the +continental European standard. People in the Anglo-saxon world would +rather code |\newcolumntype{f}{F{,}{.}{3,2}}|. + +To show where and how the f-column is used, let's look at a typical +financial table. + +properties 31 dec 2014 debts 31 dec 2014 +----------------------------------------------------- +house 200.000,00 equity capital 50.000,00 +bank account -603,23 mortgage 150.000,00 +savings 28.000,00 +cash 145,85 profit 27.542,62 + ---------- ---------- + 227.542,62 227.542,62 + +The core part of the table is input as +\begin{table} +\begin{tabular}{lflf} +house & 20000000 & equity capital & 5000000\\ +bank account & -60323 & mortgage & 15000000\\ +savings & 2800000\\ +cash & 14585 & profit & 2754262\\ +\sumline +\end{tabular} +\end{table} + +The column specifier ``f'' (for ``finance'') is able to do the +typesetting. It constructs the sum line, typesets the numbers, +calculates the totals, and checks whether the two columns are in +balance; if not, the user is warned via a message. A special command +\resetsumline exists which alllows one to restart a table, so that +multiple tables in one tabular environment are possible. diff --git a/Master/texmf-dist/doc/latex/fcolumn/fcolumn.pdf b/Master/texmf-dist/doc/latex/fcolumn/fcolumn.pdf new file mode 100644 index 00000000000..33c18d4202e Binary files /dev/null and b/Master/texmf-dist/doc/latex/fcolumn/fcolumn.pdf differ -- cgit v1.2.3