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

How to put second font in table. First is Utopia Regular with Math Design as a main font. Second - TeX Gyre Heros, for tables.


\usepackage[utopia]{mathdesign} %main font

\usepackage{tgheros} %second font - for tables
\renewcommand*\familydefault{\sfdefault} %% Only if the base font of the document is to be sans serif




\tabulinesep =_4pt^4pt
\begin{tabu}to \textwidth{@{}cX[m]X[c]X[c]X[c]@{}}
   \tabucline[1.0pt blue!40 off 0pt]{-}
   \multicolumn{2}{@{}l}{procesy} & Min & Max  &\\
   \tabucline[0.7pt blue!40 off 0pt]{-}
  & Junior         & 1 700 & 2 800 & 3 200\\
\tabucline[0.2pt blue!40 off 2pt]{.}
& Senior         &  & ? &\\
\tabucline[0.2pt blue!40 off 2pt]{-}
& Specjalist     &  & ? &\\
\tabucline[0.2pt blue!40 off 2pt]{-}
& Team Leader    &  & ? &\\
\tabucline[1pt blue!40 off 0pt]{-}
\caption{1. Wynagrodzenia: Procesy HR}

share|improve this question
up vote 5 down vote accepted

Using the etoolbox package one can use


To change to tgheros font inside all tables, and there is no need to load the tgheros package.

enter image description here

share|improve this answer
Gudio - nice work. Thank You! – Daniel Miliński Oct 25 '12 at 10:00
@DanielMiliński you are welcome. – Guido Oct 25 '12 at 10:03
What is the shortcut of TeX Gyre Heros Condensed? And how I can cheek this? – Daniel Miliński Oct 29 '12 at 22:07
@DanielMiliński the shortcut is phvc. You can look at style file where you can see \DeclareVoidOption{condensed}{\renewcommand{\sfdefault}{qhvc}} – Guido Oct 29 '12 at 23:02

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.