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 have a table and it appears I only have two options when it comes to font size: large and small. There should be a medium option, correct? I get an error when I replace small or large with medium.

The beginning of my table looks like this:

\begin{table*}[ht]
{\small
\hfill{}
\small
\begin{tabular}{|p{3.5cm}|p{8cm}|p{5cm}|}

How do I get a universal font size for the table that is not huge or too small to read?

share|improve this question
add comment

2 Answers

up vote 16 down vote accepted

There's no \medium font size; between \small and \large you have \normalsize (which is the default font size). The standard font size switches are: \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge, and \Huge.

By the way, you only need one font switch command inside table and braces are not required since table forms a group, so you can simple say something like

\begin{table}
\small
\begin{tabular}{p{3.5cm}p{8cm}p{5cm}}
text & text & text
\end{tabular}
\end{table}
share|improve this answer
    
Is there any font size between \tiny and \small? Is there a way to manually set the font size somehow maybe? \tiny is too small to read. \small is too large (it is the same as the normal font size). Thanks –  sphere Aug 13 '13 at 0:18
    
@sphere: yes: \scriptsize, and \footnotesize. Also, for even finer control, as long as the current font supports the desired size, you can use \fontsize{<size>}{<baseline>}\selectfont (in a group); as in {\fontsize{6}{7.2}\selectfont text here}. –  Gonzalo Medina Aug 13 '13 at 0:21
    
Can I put that wrapper around an entire table? –  sphere Aug 13 '13 at 0:40
    
@sphere environments create a group, so inside a table environment you can say, for example \begin{table}\fontsize{6}{7.2}\selectfont...\end{table}. –  Gonzalo Medina Aug 13 '13 at 0:43
    
I tried your last comment and only some of my text got resized. –  sphere Aug 14 '13 at 0:53
show 2 more comments

If you need to fine tune the size of a table, you can include it in a scaleboxfrom the graphicx or graphics-package and scale the table to fit. If you need more options, you can use the adjustbox-package.

share|improve this answer
add comment

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.