%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                                  %%
%%  This is the header of a LaTeX2e file exported from Gnumeric.    %%
%%                                                                  %%
%%  This file can be compiled as it stands or included in another   %%
%%  LaTeX document. The table is based on the longtable package so  %%
%%  the longtable options (headers, footers...) can be set in the   %%
%%  preamble section below (see PRAMBLE).                           %%
%%                                                                  %%
%%  To include the file in another, the following two lines must be %%
%%  in the including file:                                          %%
%%        \def\inputGnumericTable{}                                 %%
%%  at the begining of the file and:                                %%
%%        \input{name-of-this-file.tex}                             %%
%%  where the table is to be placed. Note also that the including   %%
%%  file must use the following packages for the table to be        %%
%%  rendered correctly:                                             %%
%%    \usepackage[latin1]{inputenc}                                 %%
%%    \usepackage{color}                                            %%
%%    \usepackage{array}                                            %%
%%    \usepackage{longtable}                                        %%
%%    \usepackage{calc}                                             %%
%%    \usepackage{multirow}                                         %%
%%    \usepackage{hhline}                                           %%
%%    \usepackage{ifthen}                                           %%
%%  optionally (for landscape tables embedded in another document): %%
%%    \usepackage{lscape}                                           %%
%%                                                                  %%
%%  In addition the following commands need to be executed in the   %%
%%  preamble:                                                       %%
%%                                                                  %%
%%  \newlength{\gnumericTableWidth}                                 %%
%%  \newlength{\gnumericTableWidthComplete}                         %%
%%                                                                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



%%  This section checks if we are begin input into another file or  %%
%%  the file will be compiled alone. First use a macro taken from   %%
%%  the TeXbook ex 7.7 (suggestion of Han-Wen Nienhuys).            %%
\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}


%%  Check for the \def token for inputed files. If it is not        %%
%%  defined, the file will be processed as a standalone and the     %%
%%  preamble will be used.                                          %%
\ifundefined{inputGnumericTable}

%%  We must be able to close or not the document at the end.        %%
        \def\gnumericTableEnd{\end{document}}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                                  %%
%%  This is the PREAMBLE. Change these values to get the right      %%
%%  paper size and other niceties. Uncomment the landscape option   %%
%%  to the documentclass defintion for standalone documents.        %%
%%                                                                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

        \documentclass[8pt,portrait]{report}
        \usepackage[latin1]{inputenc}
        \usepackage{color}
        \usepackage{array}
        \usepackage{longtable}
        \usepackage{calc}
        \usepackage{multirow}
        \usepackage{hhline}
        \usepackage{ifthen}

        \begin{document}

        \newlength{\gnumericTableWidth}
        \newlength{\gnumericTableWidthComplete}

%%  End of the preamble for the standalone. The next section is for %%
%%  documents which are included into other LaTeX2e files.          %%
\else

%%  We are not a stand alone document. For a regular table, we will %%
%%  have no preamble and only define the closing to mean nothing.   %%
    \def\gnumericTableEnd{}

%%  If we want landscape mode in an embedded document, comment out  %%
%%  the line above and uncomment the two below. The table will      %%
%%  begin on a new page and run in landscape mode.                  %%
%       \def\gnumericTableEnd{\end{landscape}}
%       \begin{landscape}


%%  End of the else clause for this file being \input.              %%
\fi

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                                  %%
%%  The rest is the gnumeric table, except for the closing          %%
%%  statement. Changes below will alter the table's appearance.     %%
%%                                                                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\providecommand{\gnumericPB}[1]%
{\let\gnumericTemp=\\#1\let\\=\gnumericTemp\hspace{0pt}}

%%  The default table format retains the relative column widths of  %%
%%  gnumeric. They can easily be changed to c, r or l. In that case %%
%%  you may want to comment out the next line and uncomment the one %%
%%  thereafter                                                      %%
\providecommand\gnumbox{\makebox[0pt]}
%%\providecommand\gnumbox[1][]{\makebox}

%% to adjust positions in multirow situations                       %%
\setlength{\bigstrutjot}{\jot}
\setlength{\extrarowheight}{\doublerulesep}

%%  The \setlongtables command keeps column widths the same across %%
%%  pages. Simply comment out next line for varying column widths.  %%
\setlongtables

\setlength\gnumericTableWidth{%
        123pt+%
        112pt+%
        128pt+%
        68pt+%
        68pt+%
        68pt+%
        68pt+%
        82pt+%
        95pt+%
        98pt+%
0pt}
\def\gumericNumCols{10}
\setlength\gnumericTableWidthComplete{\gnumericTableWidth+\tabcolsep*\gumericNumCols*2+\arrayrulewidth*\gumericNumCols}
\ifthenelse{\lengthtest{\gnumericTableWidthComplete > \textwidth}}%
{\def\gnumericScale{\ratio{\textwidth-\tabcolsep*\gumericNumCols*2-\arrayrulewidth*\gumericNumCols}%
{\gnumericTableWidth}}}%
{\def\gnumericScale{1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                                                  %%
%% The following are the widths of the various columns. We are      %%
%% defining them here because then they are easier to change.       %%
%% Depending on the cell formats we may use them more than once.    %%
%%                                                                  %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\def\gnumericColA{123pt*\gnumericScale}
\def\gnumericColB{112pt*\gnumericScale}
\def\gnumericColC{128pt*\gnumericScale}
\def\gnumericColD{68pt*\gnumericScale}
\def\gnumericColE{68pt*\gnumericScale}
\def\gnumericColF{68pt*\gnumericScale}
\def\gnumericColG{68pt*\gnumericScale}
\def\gnumericColH{82pt*\gnumericScale}
\def\gnumericColI{95pt*\gnumericScale}
\def\gnumericColJ{98pt*\gnumericScale}

\begin{longtable}[c]{%
        b{\gnumericColA}%
        b{\gnumericColB}%
        b{\gnumericColC}%
        b{\gnumericColD}%
        b{\gnumericColE}%
        b{\gnumericColF}%
        b{\gnumericColG}%
        b{\gnumericColH}%
        b{\gnumericColI}%
        b{\gnumericColJ}%
        }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%  The longtable options. (Caption, headers... see Goosens, p.124) %%
%       \caption{The Table Caption.}             \\     %
% \hline        % Across the top of the table.
%%  The rest of these options are table rows which are placed on    %%
%%  the first, last or every page. Use \multicolumn if you want.    %%

%%  Header for the first page.                                      %%
%       \multicolumn{10}{c}{The First Header} \\ \hline 
%       \multicolumn{1}{c}{colTag}      %Column 1
%       &\multicolumn{1}{c}{colTag}     %Column 1
%       &\multicolumn{1}{c}{colTag}     %Column 2
%       &\multicolumn{1}{c}{colTag}     %Column 3
%       &\multicolumn{1}{c}{colTag}     %Column 4
%       &\multicolumn{1}{c}{colTag}     %Column 5
%       &\multicolumn{1}{c}{colTag}     %Column 6
%       &\multicolumn{1}{c}{colTag}     %Column 7
%       &\multicolumn{1}{c}{colTag}     %Column 8
%       &\multicolumn{1}{c}{colTag}     %Column 9
%       &\multicolumn{1}{c}{colTag}     \\ \hline %Last column
%       \endfirsthead

%%  The running header definition.                                  %%
%       \hline
%       \multicolumn{10}{l}{\ldots\small\slshape continued} \\ \hline
%       \multicolumn{1}{c}{colTag}      %Column 1
%       &\multicolumn{1}{c}{colTag}     %Column 1
%       &\multicolumn{1}{c}{colTag}     %Column 2
%       &\multicolumn{1}{c}{colTag}     %Column 3
%       &\multicolumn{1}{c}{colTag}     %Column 4
%       &\multicolumn{1}{c}{colTag}     %Column 5
%       &\multicolumn{1}{c}{colTag}     %Column 6
%       &\multicolumn{1}{c}{colTag}     %Column 7
%       &\multicolumn{1}{c}{colTag}     %Column 8
%       &\multicolumn{1}{c}{colTag}     %Column 9
%       &\multicolumn{1}{c}{colTag}     \\ \hline %Last column
%       \endhead

%%  The running footer definition.                                  %%
%       \hline
%       \multicolumn{10}{r}{\small\slshape continued\ldots} \\
%       \endfoot

%%  The ending footer definition.                                   %%
%       \multicolumn{10}{c}{That's all folks} \\ \hline 
%       \endlastfoot
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

         \multicolumn{10}{p{    \gnumericColA+%
        \gnumericColB+%
        \gnumericColC+%
        \gnumericColD+%
        \gnumericColE+%
        \gnumericColF+%
        \gnumericColG+%
        \gnumericColH+%
        \gnumericColI+%
        \gnumericColJ+%
        \tabcolsep*2*9}}%
        {\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Risultati Prova Intermedia di Metodi Matematici C.L. Economia Aziendale del 07/12/05}}}}
\\
         
        &
        &
        &
        &
        &
        &
        &
        &
        &
\\
         \gnumericPB{\centering}\gnumbox{\textsf{\textbf{Cognome}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Nome}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Matricola}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Ex.1}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Ex.2}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Ex.3}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Ex.4}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Ex.5}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Risultati}}}
        &\gnumericPB{\centering}\gnumbox{\textsf{\textbf{Risultati}}}
\\
         
        &
        &
        &
        &
        &
        &
        &
        &
        &
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{GAINI}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{ELISA}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4170774}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{7}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{5}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10.2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{CAMPOLMI}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{DARIO}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4154829}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{7}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{32.4}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{29}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{MORETTI}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{ALESSIA}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4168951}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{5}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{17.2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{17}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{DI GERONIMO}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{MARCO}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4161997}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{6}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{6}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{22}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{22}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{CARRAI}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{SARA}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4150473}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{5}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{6}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{20.2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{20}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{MONTANINO}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{ROSA MARIA}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4152726}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{5}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{9.4}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{9}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{FARAONI }}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{GIORGIA}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4155384}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{36}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{30}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{RUTILI}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{MARTA}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4237150}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{8}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{5}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{7.6}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{8}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{MAZZONI }}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{LEONARDO}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{d.n. 24/10/86}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{1.2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{1}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{SPINELLI}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{NICO}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{4165454}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{6}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{2}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{3}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{14}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{14}}
\\
         \gnumericPB{\raggedright}\gnumbox[l]{\textsf{RAMAZZOTTI}}
        &\gnumericPB{\raggedright}\gnumbox[l]{\textsf{LORENZO}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{3834793}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{3}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{0}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{5}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{9.8}}
        &\gnumericPB{\raggedleft}\gnumbox[r]{\textsf{10}}
\\
\end{longtable}

\gnumericTableEnd
