<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">%%
%% The LaTeX Companion, 3ed
%%
%% Example 6-7-22 on page I-490 in "fcolumn --- Managing financial tables".
%%
%% Copyright (C) 2022 Frank Mittelbach
%%
%% It may be distributed and/or modified under the conditions
%% of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%%
%% See https://www.latex-project.org/lppl.txt for details.
%%

\documentclass{tlc3exa}
\pagestyle{empty}
\setcounter{page}{6}
\setlength\textwidth{348.0pt}


%StartShownPreambleCommands
\usepackage{xcolor,booktabs,fcolumn}
\newcolumntype{f}{F{\,}{.}{3.2}{\mathsf}}
\newcolumntype{A}{F{\,}{.}{3.2}{\color{blue}\mathsf,\mathsf}}
\newcommand\fheader[1]{\multicolumn{6}{c}{\bfseries #1}  \\ \toprule
                expense &amp; \leeg{budget}   &amp; \leeg{actual} &amp;
                income  &amp; \leeg{expected} &amp; \leeg{actual}\\ \midrule}
%StopShownPreambleCommands

\begin{document}
\begin{tabular}{@{}lfAlfA@{}}
\fheader{Booklet 113}
printing   &amp; 8200 &amp;        8000   &amp; sales &amp; 10000    &amp;  7863    \\
binding    &amp;  600 &amp;         550                                 \\
shipping   &amp;  800 &amp;         496.8                               \\
profit     &amp;  400 &amp;               &amp; loss  &amp;          &amp; 1183.8   \\
\sumline[2pt][30pt]   \resetsumline
\fheader{Booklet 114}
printing   &amp; 6000 &amp;        6200   &amp; sales &amp;  8000    &amp;  8610    \\
binding    &amp;  600 &amp;         650                                 \\
\empty
shipping   &amp;  640 &amp;         737.6                               \\
profit     &amp;  760 &amp;        1022.4 &amp; loss  &amp;         &amp;    0      \\
\sumline
\bottomrule
\end{tabular}
\end{document}
</pre></body></html>