TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to put different sizes of fonts (smaller) into different rows of my LaTeX table. I found that it is possible to have different font sizes for different columns of this post. Is there any simple way to put different fonts to LaTeX table rows ?

share|improve this question

migrated from stackoverflow.com Nov 9 '11 at 13:24

This question came from our site for professional and enthusiast programmers.

up vote 17 down vote accepted

You can use the package tabu which provides the command \rowfont:

Hello & World \\
Foo & Bar \\
Hello & World
share|improve this answer

Creating your own \rowfont{<font>} switch is also possible.

Using the array package, you can insert elements in front of every column via the definition of a new column type. This insertion helps span the group associated with each tabular cell.

enter image description here

\usepackage{array}% http://ctan.org/pkg/array
\g@addto@macro{\endtabular}{\rowfont{}}% Clear row font
\newcommand{\rowfonttype}{}% Current row font
\newcommand{\rowfont}[1]{% Set current row font
  Hello & World \\
  Foo & Bar \\
  Hello & World

\rowfont{<font>} globally (re)defines \rowfonttype, and also inserts it into the current cell. Resetting the font is required in a subsequent row (via \rowfont{\normalsize} or otherwise).

End-of-tabular resetting is automated by appending \rowfont{} to \endtabular.

share|improve this answer
Can this be done without redefining the column as well? – Alenanno May 10 '15 at 14:14
@Alenanno: One may have to tap into the definition of \tabular where \\ is defined and add \rowfont{} similar to what was done for \endtabular. – Werner May 10 '15 at 17:06
Oh, sounds complicated. :) – Alenanno May 10 '15 at 17:08

I tested all other methods above with packages but I found this simple method by David most useful -- actually I got all kind of malfunctioning with other answers such as only one element in a row changed the size of the text and so on, this may be due to rotating's sidewaystable but anyway -- this most simplest method works!

\footnotesize \begin{tabular} then \normalsize\bfseries hello for the title

and other fontsizes contain \tiny, \scriptsize, \footnotesize, \small, \normalsize, \large, \Large, \LARGE, \huge and \Huge. More in here.

share|improve this answer

Your Answer


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.