61

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?

117

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 the table and braces are not required since table forms a group, so you can simply say something like this:

\begin{table}
\small
\begin{tabular}{p{3.5cm}p{8cm}p{5cm}}
text & text & text
\end{tabular}
\end{table}
  • 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 – Veridian Aug 13 '13 at 0:18
  • 1
    @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? – Veridian 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. – Veridian Aug 14 '13 at 0:53
6

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.

A warning: Arbitrary adjustments of different tables will result in different font sizes. This may look ugly.

  • 1
    @LéoLéopoldHertz준영 Fixed! Thank you for making me aware of this. – Sveinung Aug 9 '17 at 9:24

Your Answer

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

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