1

Suppose I am using a big table -- how do I define a fontsize of 8(pt) for the complete table?

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{mathtools,amsmath,amsfonts,amssymb,latexsym}
\usepackage{blindtext,mwe}

\begin{document}

\begin{tabular}{|c|c|c|}
  \hline
  % after \\: \hline or \cline{col1-col2} \cline{col3-col4} ...
  3433 &6546546 & 654654 \\
  43423 & 4324342 & 4324234 \\
  654654654 & 654654645 & 654654 \\
  \hline
\end{tabular}
\end{document}
  • 2
    Write \fontsize{8}{\baselineskip}\selectfont% before the the tabular environment and say \normalsize afterwards. If the spacing between the rows are not sufficient, change from \baselineskip to another value, say 11pt or 15pt – user31729 May 1 '14 at 9:24
  • 2
    A big table should be floating. So add \small or \footnotesize after \begin{table}. – egreg May 1 '14 at 9:27
  • @egreg: That's true, but the table in the MWE is not a big table really ;-) – user31729 May 1 '14 at 9:30
  • 1
    @ChristianHupfer I assume it's just a simple example. – egreg May 1 '14 at 9:33
  • 2
    Using \setstretch is not so good if you want the contents of the cells to be vertically centred. I would recommend using the cellspace package that adds a little vertical space at the top and at the bottom of of the cells when necessary. – Bernard May 1 '14 at 10:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.