Debian Codegraph @

texmf-dist/doc/latex/fcolumn/README

raw
1 The LaTeX-package `fcolumn', under LPPL 1.3.
2 Author: Edgar Olthof
3 E-mail: edgar <dot> olthof <at> inter <dot> nl <dot> net
4
5 DESCRIPTION
6 In financial reports, text and currency amounts are regularly put in
7 one table, e.g., a year balance or a profit-and-loss overview.
8 This package provides the settings for automatically typesetting
9 such columns, including the sum line (preceded by a rule of the correct
10 width), using the specifier `f'.
11
12 The column specifier f itself is rather simple. It is the predefined
13 version of a generic column F. The generic version expects four
14 arguments: #1 is the separator, #2 is the decimal mark, #3 is
15 the coding used for grouping digits of the integer part and decimal
16 part, and #4 is anything added before typesetting the contents of a
17 column. For example the f-column in the current version of the package
18 is using 3,2 as #3, meaning that numbers are typeset with 2 decimal
19 digits and grouping is done on 3 digits. The grouping character is
20 `.' and the decimal separator is `,', thereby coding for the
21 continental European standard. People in the Anglo-Saxon world would
22 rather code \newcolumntype{f}{F,.{3,2}{}}.
23
24 To show where and how the f-column is used, let's look at a typical
25 financial table, using ASCII-art (for real examples see fcolumn.pdf).
26
27 properties 31 dec 2014 debts 31 dec 2014
28 -----------------------------------------------------
29 house 200.000,00 equity capital 50.000,00
30 bank account -603,23 mortgage 150.000,00
31 savings 28.000,00
32 cash 145,85 profit 27.542,62
33 ---------- ----------
34 227.542,62 227.542,62
35
36 The core part of this table is input as
37 \begin{tabular}{lflf}
38 house & 200000 & equity capital & 50000 \\
39 bank account & -603,23 & mortgage & 150000 \\
40 savings & 28000 \\
41 cash & 145,85 & profit & 27542,62 \\
42 \sumline
43 \end{tabular}
44
45 The column specifier `f' (for `finance') is able to do the
46 typesetting. It constructs the sumline, typesets the numbers,
47 calculates the totals, makes rules of the correct widths, and
48 checks whether the two columns are in balance; if not, the user
49 is warned via a message. A special command \resetsumline exists
50 which allows one to restart a table, so that multiple tables that
51 are aligned are possible in one tabular or longtable environment.
52 The fcolumn specifier can be used in a tabular environment
53 and in the longtable environment. Specific fcolumn formatting,
54 like colour and/or font changes are possible, see the file
55 fcolumn.pdf.
56 From v1.4.4 onwards fcolumn supports tagged pdf. This version
57 (v1.4.5) is for preparing the new LaTeX-release of 1 June 2026:
58 v1.4.4 will not work with that release and v1.4.5 provides a
59 smooth transition, in preparation for v1.5.
60
61 To install:
62 -----------
63 Type `make install' or run the file fcolumn.ins through
64 (La)TeX (in a directory also containing fcolumn.dtx) and move
65 the resultant file fcolumn.sty to a place searched by TeX.
66
67 To generate the documentation:
68 ------------------------------
69 Type `make'. Or run the file fcolumn.dtx through LaTeX,
70 update the glossary and index by makeindex:
71
72 makeindex -s gglo.ist -o fcolumn.gls fcolumn.glo
73 makeindex -s gind.ist -o fcolumn.ind fcolumn.idx
74
75 and then LaTeX fcolumn.dtx again; presto!