[Tex/LaTex] \labelfont from caption package not working

captions

I am trying to change the font of the label in the caption, but it seems not work. The font is changed in the text of the cation but not in the label
This is my preamble:

\documentclass[a4paper,12pt,english,oneside]{report}
\sloppy
\usepackage[paper=a4paper,left=40mm,width=150mm,top=20mm,bottom=40mm]{geometry} 
\usepackage{setspace} % This is used in the title page
\usepackage{graphicx} 
\usepackage[english]{babel}
\usepackage[colon]{natbib}
\usepackage{color}
\usepackage{fancyhdr}
\usepackage{nomencl}
\usepackage[tableposition=top]{caption}
\captionsetup{font={small}, textfont={sf}, labelfont={bf,sf}}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{semtrans}
\usepackage{gensymb}
\usepackage{colortbl}
\usepackage{array}
\usepackage{texshade}
\usepackage{hyperref}
\usepackage{wasysym}
\usepackage[T1]{fontenc} %font choice
\usepackage{tgtermes} %font
\usepackage{layouts}
\usepackage{rotating}
\usepackage{fixltx2e}
\usepackage{lscape}
\usepackage{listings}
\usepackage{pdfpages}
\definecolor{lightgray}{rgb}{.9,.9,.9}
\lstset{%frame=tb,
  backgroundcolor=\color{lightgray},
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={\footnotesize\ttfamily},
  numbers=none,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true
  tabsize=3
}

\hypersetup{
    bookmarks=true,         % show bookmarks bar?
    bookmarksopen=true, 
    bookmarksnumbered=true,
    pdftitle={},    % title
    pdfauthor={},     % author
    pdfsubject={},   % subject of the document
    pdfcreator={},   % creator of the document
    colorlinks=true,       % false: boxed links; true: colored links
    linkcolor=black,          % color of internal links
    citecolor=black,        % color of links to bibliography
    filecolor=magenta,      % color of file links
    urlcolor=cyan           % color of external links
}

and this what I get back

I would like to have everything in sf.

Any help?

Thanks

G

Best Answer

Here is a much simpler minimal example

\documentclass{report}
\usepackage[T1]{fontenc}
\usepackage{tgtermes} 
\begin{document}
\bfseries\sffamily
Test
\end{document}

this example shows that when tgtermes is loaded, there is no bold sans serif. Which is quite odd.

The main problem seems to be that tgtermes sets \bfdefault to b. For sans serif tgtermes falls back to CMSS (computer modern sans serif) but that does not use the b default, but rather the bx.

You can see this from the .log file, I get this when I compile the example above

LaTeX Font Warning: Font shape `T1/cmss/b/n' undefined
(Font)              using `T1/cmss/m/n' instead on input line 12.

Might be an idea to find a find a more suitable sans serif font and load that package after tgtermes, see http://www.tug.dk/FontCatalogue/sansseriffonts.html