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
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
tob
. For sans seriftgtermes
falls back to CMSS (computer modern sans serif) but that does not use theb
default, but rather thebx
.You can see this from the
.log
file, I get this when I compile the example aboveMight 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