3

I'm using the cmbright package to make the entire document (including maths) a sans-serif (as serif fonts are generally less dyslexic-friendly).

However, the document won't let me use a bold and italic at the same time. Regardless of how I nest it, it will just give me a bold font. If I remove cmbright, it works just fine, but I really don't want to have to use a serif font.

Are there any easy methods of converting the document to a sans-serif (including maths) that don't encounter this problem, or are there any ways to get around this?

Thanks in advance for any help!

Here's a super quick example of my issue:

\documentclass[a4paper,12pt]{article}
\usepackage{cmbright}
\begin{document} 
cmbright won't allow me to \textbf{bold} and \textit{italicise} my text \textbf{\textit{at the same time}}, no matter \textit{\textbf{how I nest them.}} 
\end{document} 
  • 4
    There's no boldface italic font available with cmbright. – egreg Jul 25 at 8:20
4

Using the lmodern and sfmath package should help.

enter image description here

\documentclass[a4paper,12pt]{article}
\usepackage{lmodern}
\usepackage{sfmath}

\begin{document}
\sffamily
cmbright won't allow me to \textbf{bold} and
\textit{italicise} my text
\textbf{\textit{at the same time}},
no matter \textit{\textbf{how I nest them.}}

$2a-3B$
\end{document}
  • This is definitely helpful, but using this method, maths is still a serif. Is it possible to switch maths to be a sans-serif also? – Kieren Duffy Jul 25 at 8:30
  • @KierenDuffy: Solved. – Marian G. Jul 25 at 8:33
  • @DavidCarlisle: Of course. Thanks. – Marian G. Jul 25 at 8:34
2

The choice of sans serif families with a full range of styles is rather limited, you may get more choice if you switch to xetex or luatex and use system fonts.

This is Arial with lualatex for example

enter image description here

\documentclass[a4paper,12pt]{article}
\usepackage{fontspec}
\setmainfont{Arial}
\begin{document} 
cmbright won't allow me to \textbf{bold} and \textit{italicise} my text \textbf{\textit{at the same time}}, no matter \textit{\textbf{how I nest them.}} 
\end{document} 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.