Skip to main content
Share Your Experience: Take the 2024 Developer Survey
34 votes
Accepted

How to write bold, italic and sans-serif at the same time?

Your issue is "font-dependent". Background Indeed, special shapes of a font (bold, italic, slanted, small caps) are not defined relatively to a main font (its regular shape), but independently. The "...
ebosi's user avatar
  • 11.7k
24 votes
Accepted

Is there any sans-serif font that fully supports unicode-math?

I'm now doing one: https://github.com/firamath/firamath, which is based on FiraSans. Here is a showcase (use beamer theme metropolis): Of course, this work is far away from finished. For example, ...
stone-zeng's user avatar
  • 2,720
14 votes
Accepted

italicization with \textit does not work

You'll notice the following warning in your .log file: LaTeX Font Warning: Font shape `OT1/cmss/bx/it' undefined (Font) using `OT1/cmss/bx/n' instead on input line 4. It suggests that ...
Werner's user avatar
  • 605k
14 votes
Accepted

How do I get italic sans-serif in math mode?

Math alphabets commands such as \mathit and \mathsf are not “cumulative”. You have to allocate a specific math alphabet. \documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{...
egreg's user avatar
  • 1.1m
13 votes

Are there opentype sans math font(s) under development?

Fira Math: sans-serif font with Unicode math support Developed by Xiangdong Zeng (Stone-Zeng) at https://github.com/Stone-Zeng/FiraMath
Henri Menke's user avatar
12 votes

Is there a sans-serif font that appears different for I (capital i) and l (small L)?

Not in TeX Live (not yet, at least), but if you’re using xetex or luatex, here’s an option: IBM has just released a beta version of its new corporate type family, IBM Plex, containing unambiguous sans ...
Thérèse's user avatar
  • 12.7k
11 votes
Accepted

Setting up a Sans Serif Document Including Math (in 2017, using pdftex)

If the document is going to take the form of a beamer presentation, I recommend you -- or the colleague you're helping to get started -- do two things: issue the instruction \usefonttheme{...
Mico's user avatar
  • 511k
11 votes
Accepted

My math inline text is smaller than the normal text!

The x-height of the sans-serif font you're working with -- tgheros, an Helvetica clone -- is much larger than the x-height of your math font, which is Computer Modern. As far as I know, the tgheros ...
Mico's user avatar
  • 511k
11 votes
Accepted

Good combination of sans serif font text and math mode using beamer class

Some suggestions, in no particular order: I've had very good experiences with the arev sans-serif text and math font package in my beamer documents. It has thick strokes, which is extremely helpful ...
Mico's user avatar
  • 511k
11 votes

Good combination of sans serif font text and math mode using beamer class

For a Beamer presentation, you can always use modern fonts in LuaLaTeX or XeTeX. You aren’t submitting it to one of the publishers who still forces you to use 8-bit fonts in 2021! This actually lets ...
Davislor's user avatar
  • 44.6k
10 votes

Typeset mathematical symbols also in sans serif font?

Here is an example how to use sansmath package in a document and switch between sans and serif. \documentclass{article} \usepackage{sansmath} \begin{document} {\sansmath Sans: $\alpha = Fml$} Serif: ...
Juha's user avatar
  • 223
10 votes

fontspec – sans-serif as main font?

If it helps to keep everything clear, you can use the \setromanfont command instead of \setmainfont, although the fontspec manual doesn't mention it: \documentclass{article} \usepackage{fontspec} \...
Andrew Dunning's user avatar
10 votes
Accepted

Russian babel, lmodern, and sans-serif font

Latin Modern doesn't support Cyrillic. There are not many choices for a monospaced font in TeX Live 2013 featuring boldface and supporting Cyrillic. You can do it with PTMono, though. \documentclass{...
egreg's user avatar
  • 1.1m
9 votes
Accepted

How can I get sans serif linguex glosses?

You need to tell cgloss4e (style file invoked by linguex to handle glosses) that each word in the first and second line of the glossed example is to be set in a sans serif font by adding the following ...
Pavel Rudnev's user avatar
9 votes
Accepted

Accessing *all possible* math styles of the STIX font

latex math alphabets (unlike math symbol fonts) are assigned on demand as they are used. This means that you can declare any number of math alphabets but you may only use a total of 16 math fonts (...
David Carlisle's user avatar
8 votes
Accepted

LuaLaTeX | Beamer | fontspec | Define a Sans Serif Math Font

I think your best bet is mathastext. \documentclass{beamer} \usepackage[no-math]{fontspec} \setsansfont[Scale=0.9]{DejaVu Sans Mono} % no MS Windows, sorry \usepackage[italic]{mathastext} \usepackage{...
Henri Menke's user avatar
8 votes
Accepted

Change font in just one tabular / section to sans-serif

To change the font to sans serife you can use command \sffamily. To make sure that only your tabular uses the other font simply enclose command \sffamily and your table with {...}. That means that ...
Mensch's user avatar
  • 65.5k
8 votes
Accepted

Helvetica for Latin letters and a sans-serif font for Greek letters

In the Modern Toolchain In LuaLaTeX or XeLaTeX, you can load a sans-serif math font with unicode-math. You can even load a font of your choice for Greek, with \setmathfont[range=.... One sans-serif ...
Davislor's user avatar
  • 44.6k
8 votes
Accepted

Changing operator font for only one operator

Try \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \DeclareMathOperator{\op}{op} \DeclareMathOperator{\opp}{\mathsf{op}} \begin{document} \noindent \[a \op_k b\] \...
Denis's user avatar
  • 5,267
8 votes

How do I change the sans serif font in my document?

The venturis package sets both the serif and sans serif fonts to the corresponding Venturis varieties. It has no option for just enabling Venturis Sans for \sffamily. But you might be able to do it, ...
egreg's user avatar
  • 1.1m
7 votes

What is the simplest way to typeset an entire document in sans-serif?

The best way to have BOTH the text AND the math is just by adding: \usepackage{cmbright} in the preambule of the LaTeX document. It gives a nice and homogenous look to your document. Cheers!
LeChat's user avatar
  • 171
7 votes
Accepted

Sans-serif bold math with newtxmath

You should also load newtxtext, for the text fonts. A small correction should be made as well, for \mathsf{\Omega}. Also load bm, which is better than the standard version for \boldsymbol provided by ...
egreg's user avatar
  • 1.1m
7 votes
Accepted

How do I make a TikZ graphic with small sans serif font?

Two ways: Invoke \sffamily before entering tikz, or You can combine \small and \sffamily in the same font= directive. Here is the MWE \documentclass{article} \usepackage{tikz} \begin{document} {\...
Steven B. Segletes's user avatar
7 votes

Equivalent of fontenc in LuaLaTex

The default font families of LaTeX using pdflatex are Computer Modern. Computer Modern has a sans-serif font with a bold extended series with a high weight: In the log file of a corresponding example ...
Schweinebacke's user avatar
7 votes

How to install the Calibri font on Latex easily?

Calibri is a font created by Microsoft that's distributed with the Windows operating system (since about 2007) and with many Microsoft software products. Assuming that Calibri is installed on your ...
Mico's user avatar
  • 511k
7 votes
Accepted

OpenSans package doesn't affect title (scrartcl)

Add the option defaultsans when loading the package: \usepackage[defaultsans,default]{opensans}
schoekling's user avatar
  • 3,152
6 votes

What is the simplest way to typeset an entire document in sans-serif?

In ConTeXt you obviously use \setupbodyfont. This will not affect math mode. \setupbodyfont[ss] \starttext Sans-Serif \stoptext
Henri Menke's user avatar
6 votes

Combining sffamily and scshape

There is a version of computer modern with small caps in the sansmathfonts package. You can use it follows: \documentclass{article} \usepackage[notmath]{sansmathfonts} \begin{document} \sffamily \...
Gaëtan Leurent's user avatar
6 votes

Are there opentype sans math font(s) under development?

GFS NeoHellenic is a recently available choice that will fit the description. If it did not make into TL2017, it will certainly be included in TL2018. The font is already available on CTAN here. ...
Dr Krishnakumar Gopalakrishnan's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible