::
Certo! Ti posto i pacchetti ed il codice per le tabelle, sia quelle “belle” che facevo circa un anno fa, sia quelle “brutte” che mi escono adesso. In entrambi i casi uso Excel2Latex e copio e incollo il codice che fa lui di sana pianta senza cambiare nessuna impostazione predefinita.
TABELLE “BELLE”
1)Pacchetti (disordinatissimo….)
%PACCHETTI
%scelta della classe del documento
\documentclass[10pt]{article} % use larger type; default would be 10pt
%scelta della lingua
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{float}
%
\usepackage{tikz}
\usepackage{rotating}
%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{a4paper} % or letterpaper (US) or a5paper or….
% \geometry{margin=2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
\usepackage{graphicx} % support the \includegraphics command and options
% \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
%%% PACKAGES
\usepackage{booktabs} % for much better looking tables
\usepackage{array} % for better arrays (eg matrices) in maths
\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
\usepackage{subfig} % make it possible to include more than one captioned figure/table in a single float
% These packages are all incorporated in the memoir class to one degree or another…
%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout…
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}
%%% SECTION TITLE APPEARANCE
\usepackage{sectsty}
\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)
%%% ToC (table of contents) APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles,subfigure]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!
\usepackage{multirow}
\usepackage[output-decimal-marker={,}]{siunitx}
2) Codice tabella
% Table generated by Excel2LaTeX from sheet ‘Foglio1’
\begin{table}[H]
\centering
\caption{Raggio del disco}
\begin{tabular}{rrrrrr}
\toprule
\multicolumn{2}{c}{Raggio($cm$)} & err L($cm$) & Media($cm$) & err C($cm$) & err T($cm$) \\
\midrule
17,70 & 17,50 & \multicolumn{1}{c}{\multirow{2}[0]{*}{0,05}} & \multicolumn{1}{c}{\multirow{2}[0]{*}{17,68}} & \multicolumn{1}{c}{\multirow{2}[0]{*}{0,20}} & \multicolumn{1}{c}{\multirow{2}[0]{*}{0,11}} \\
18,00 & 17,50 & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
TABELLE “BRUTTE”
1)Pacchetti
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel} %
\usepackage[T1]{fontenc}%
\usepackage{float}%
\usepackage[export]{adjustbox}%
\usepackage{caption}%
\usepackage{subcaption}%
\usepackage{booktabs}%
\usepackage{array}%
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{xcolor} %Excel2Latex
\usepackage{colortbl} %Excel2Latex
\usepackage{rotating} %Excel2Latex
\usepackage{multirow} %Excel2Latex
\usepackage{booktabs} %Excel2Latex
\usepackage
{geometry}
\usepackage{multicol}
2)Codice tabella
\begin{table}[htbp]
\centering
\caption{Misura del fondo}
\begin{tabular}{|cc|cc|cc|}
\toprule
\textbf{n. mis} & \textbf{I (mV)} & \textbf{n. mis} & \textbf{I (mV)} & \textbf{n. mis} & \textbf{I (mV)} \\
\midrule
1 & 5,42 & 11 & 5,63 & 21 & 5,28 \\
2 & 6,02 & 12 & 5,52 & 22 & 5,62 \\
3 & 5,79 & 13 & 5,64 & 23 & 5,54 \\
4 & 5,43 & 14 & 5,62 & 24 & 5,52 \\
5 & 5,70 & 15 & 5,63 & 25 & 5,66 \\
6 & 5,92 & 16 & 5,61 & 26 & 5,69 \\
7 & 5,94 & 17 & 5,65 & 27 & 5,68 \\
8 & 5,83 & 18 & 5,69 & 28 & 5,70 \\
9 & 5,75 & 19 & 5,77 & 29 & 5,75 \\
10 & 5,73 & 20 & 5,40 & 30 & 5,60 \\
\bottomrule
\end{tabular}%
\label{tab:fondo}%
\end{table}%