Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to have small font size in a whole table. I tried with \small{table code} and \begin{\small}{table code} \end{small}, but it doesn't work. Maybe, I must use a package or any method; please I'm waiting for your help.

share|improve this question

2 Answers 2

up vote 7 down vote accepted

You can use for example {\scriptsize ... } around your \begin{tabular}-\end{tabular}. this will shrink everything to the given size.

for example:

\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{table}[ht]
 \caption{Meteorological instruments.}
  \centering\scriptsize
   \begin{tabular}{l l }
\toprule
Measured parameter  &Sensor make and model [serial \#] \\
\midrule
Temperature         &Pt100 in Stevenson screen \\
Barometric pressure &Setra 278 (CS100) [3141007]\\
\bottomrule
   \end{tabular}
 \label{tab:sensors}
\end{table}
\end{document}

This example uses the booktabs package for the rules.

share|improve this answer
5  
Use \centering instead of \begin{center}.... \end{center} as this will avoid unnecessary vertical space. –  Harish Kumar Jan 2 '13 at 15:58
4  
Also, the pair of braces around \scriptsize and the tabular isn't necessary, as the change will be restricted to the table environment. –  Torbjørn T. Jan 2 '13 at 16:02
    
@Harish Kumar and Torbjørn T., good points. I have updated the code accordingly. –  Peter Jansson Jan 2 '13 at 16:19
text

{\small% it is a switch not an environment
... your tabular
}

text
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.