The first thing I would do is load geometry
which will use slightly more sensible margins than LaTeX does by default. Since the table is too wide, you have a few options:
- make the text of the table smaller e.g. with
\small
or \footnotesize
;
- rotate the table using options from, of example, the
rotating
package;
- allow cells to break within columns;
- add notes to the table for supplemental information;
- reduce the spacing;
- some combination of two or more of the above.
(1) and (5) will make the table harder for readers. Especially, I would recommend not doing (5) and, if you do use (1), don't do it to excess. \small
may be acceptable if you are using a reasonably sized font. \tiny
probably won't be.
In the table below, I use (3) and (4). For (3), I use a tabularx
environment consisting of one l
column and four X
columns. I then use (4) to move some information into a table note using threeparttable
. Note that I don't have much idea of the meaning as I don't speak the language. So my selection is based purely on the punctuation and you may well wish to move something different into the notes. But this should at least demonstrate how to do that.
Follow the booktabs
guidelines as these are good for at least 98% of cases, probably more:
\toprule
, \midrule
and \bottomrule
(+ \cmidrule{}
if required in more complex tables);
- no vertical rules;
- no double horizontal rules and, certainly, no
\hline
s.
\toprule
and friends are designed to replace \hline
etc. - they should not be used as well.
So these changes produce something like the following result:
It would be better, really, if the numbers were aligned on the decimal point. However, I had better leave that to the siunitx
experts as I can only manage it for very simple cases.
\documentclass[11pt]{article}
\usepackage{mathtools,float,geometry}
\usepackage{booktabs,array,tabularx,threeparttablex}
\begin{document}
\begin{table}[H]
\begin{threeparttable}
\begin{tabularx}{\linewidth}{l*{4}{>{\centering\arraybackslash}X}}
\toprule
& Para os 10 per\'{i}odos & Medida\tnote{\textasteriskcentered} / 10 per\'{i}odos & Para um per\'{i}odo & Medida\tnote{\textasteriskcentered}\\
\midrule
M\'{e}dia & 14,04 & 14,04 & 1,404 & 1,40\\
Desvio Padr\~{a}o & 0,095770401 & 0,10 & 0,0095770401 & 0,01\\
N contagens & 12 & 12 & 12 & 12\\
\bottomrule
\end{tabularx}
\begin{tablenotes}
\item[\textasteriskcentered]valor final
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}
\begin{document}
and an\end{document}
booktabs
with both\hline
s and vertical lines - I'm not surprised the result doesn't look very good! Did you look atbooktabs
's documentation?