2

I am trying to make part the text bold when using the FiraSans font. A solution that used to work for me was this one: Changing default font weight for FiraSans and smath

After reinstalling MikTex (and also the Fira package), however, the solution no longer works. And exits with the code: "Undefined controle sequence \bfseries".

The code still works with one of my friends. After comparing all installed packages, we were able to reduce it the following minimal example.

\documentclass{article}

\usepackage[sfdefault, light]{FiraSans}
\makeatletter
\def\bfseries@sf{m}
\makeatother

\begin{document}
{\bfseries text}
%{text}
\end{document}

Does anyone know what is going on?

1 Answer 1

2

You have just forgotten to switch to sans serif:

Sample output

\documentclass{article}

\usepackage[sfdefault, light]{FiraSans}
\makeatletter
\def\bfseries@sf{m}
\makeatother

\begin{document}
\textsf{\bfseries text}
text
\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .