How to reduce the size of the entire LaTeX table?

I have a table that I want a little smaller to save some space. What environment can I put in it to reduce the whole table?

+8
source share
4 answers

Use \resizebox :

 \resizebox{3cm}{!}{ \begin{something} something \end{something} } 

! LaTeX reports keep aspect ratio. You can also scale the y direction differently by specifying a value there.

+15
source
 \begin{table}[tch] \caption{foo} \begin{tabular}{lll} \hline \footnotesize{ foo&foo&foo\\ foo&doo&fofo\\ }\\\hline \end{tabular} \label{foo} \end{table} 
0
source

Scaling elements containing text is not really a good idea (see https://tex.stackexchange.com/questions/425453/why-not-scale-elements-that-contain-text for more information), so here are two other approaches How to reduce the size of the table:

  • shrinking space between columns with \addtolength{\tabcolsep}{-1pt}
  • manual selection of a smaller font size, for example, using font commands such as \small or for more precise control \fontsize{9.5pt}{10.25pt}\selectfont

 \documentclass{article} \usepackage{lipsum} \begin{document} Reducing the inter column spacing a bit: \begin{table}[htbp] \addtolength{\tabcolsep}{-1pt} \begin{tabular}{lll} \hline some text some text & some text some text & some text some text some text\\ \hline \end{tabular} \end{table} \lipsum[2] Smaller font size: \begin{table}[htbp] \small \begin{tabular}{lll} \hline some text some som text & some text some text & some text some text some text\\ \hline \end{tabular} \end{table} \end{document} 
0
source

"" Ddd

 '''This is an example: 
 '''\resizebox{6cm}{!} '''{ '''% here is the table content. '''} '''%\caption{Versiones a comparar.} '''\end{table} 
-one
source

All Articles