I try to set up an entire document using sans serif fonts including math. At the moment I would like to use pdftex.
I searched the relevant questions and answers -- this is what I found:
- [based on egreg] How to combine another sans-serif math font with helvet for text? (2014, August)
- [egreg] What's wrong with arev's subscript placement? (2015, September)
- [egreg again] The right way to get sans-serif math? (2016, October)
- [mico and others] How to typeset some text including math content in sans serif (2012, Januar)
- Typeset WHOLE document in sans-serif, Including Math Mode (2014, April)
kpfonts Package
This is an edit from 2017-06-09. I found kpfonts by accident and they seem to be promising.
\documentclass[preview]{standalone}
% https://www.ctan.org/pkg/kpfonts
% Complex package -- read the documentation!
\usepackage[sfmath]{kpfonts}
\usepackage{mathtools}
\renewcommand\familydefault{\sfdefault}
\begin{document}
Text
$\displaystyle
abc+\sum_{k=1}^{n}\int_{0}^{k}\sqrt{2}f(x)\,\text{d}x
$
Text
\end{document}
cmbright Package
\documentclass[preview]{standalone}
\usepackage{cmbright}
\SetSymbolFont{largesymbols}{normal}{OMX}{iwona}{m}{n}
\usepackage{mathtools}
\begin{document}
Text
$\displaystyle
abc+\sum_{k=1}^{n}\int_{0}^{k}\sqrt{2}f(x)\,\text{d}x
$
Text
\end{document}
arevtext and arevmath (or simply arev) Package
\documentclass[preview]{standalone}
\usepackage{arev}
% Suggested from Mico
\SetSymbolFont{largesymbols}{normal}{OMX}{iwona}{m}{n}
\usepackage{mathtools}
\begin{document}
Text
$\displaystyle
abc+\sum_{k=1}^{n}\int_{0}^{k}\sqrt{2}f(x)\,\text{d}x
$
Text
\end{document}
Without \SetSymbolFont{largesymbols}{normal}{OMX}{iwona}{m}{n}

With \SetSymbolFont{largesymbols}{normal}{OMX}{iwona}{m}{n}

sansmathfonts and helvet Package
\documentclass[preview]{standalone}
\usepackage{sansmathfonts}
\usepackage[scaled=0.95]{helvet}
\renewcommand{\rmdefault}{\sfdefault}
\usepackage{mathtools}
\begin{document}
Text
$\displaystyle
abc+\sum_{k=1}^{n}\int_{0}^{k}\sqrt{2}f(x)\,\text{d}x
$
Text
\end{document}
newtxsf Package
The following code is taken from the newtxsf documentation and adjusted to the code examples above.
\documentclass[preview]{standalone}
\usepackage[sfdefault,scaled=.85]{FiraSans}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[varqu,varl]{zi4}% inconsolata typewriter
\usepackage{amsmath,amsthm}
\usepackage[cmintegrals]{newtxsf}
\usepackage{mathtools}
\begin{document}
Text
$\displaystyle
abc+\sum_{k=1}^{n}\int_{0}^{k}\sqrt{2}f(x)\,\text{d}x
$
Text
\end{document}
I have trouble running the code since I get an error in the file miktex-makemf.log. I already refreshed the FNDB (MiKTeX). The error is not part of the question though.
Maybe someone can add the output of the code for me.
2017-03-21 02:02:13,987+0100 FATAL miktex-makemf - The txsys source file could not be found.
After following the comment of Ulrike Fischer (running upmap on the command window of Windows), the error is gone!
sansmath and helvet Package
sansmath doesn't seem to be an active package (this is an assumption -- nothing more). I only found 2003-08-13, version 1.0 on CTAN.
\documentclass[preview]{standalone}
\usepackage{helvet}
\renewcommand{\familydefault}{\sfdefault}
\usepackage{sansmath}
\sansmath
\usepackage{mathtools}
\begin{document}
Text
$\displaystyle
abc+\sum_{k=1}^{n}\int_{0}^{k}\sqrt{2}f(x)\,\text{d}x
$
Text
\end{document}
More Packages That Seem Related
- stix (v1.1.2-latex from 2015/04/17)
Other Related Information
- http://mirrors.ctan.org/info/Free_Math_Font_Survey/en/survey.pdf (found in one of egreg's answers, see here; 2006, May).
- http://milde.users.sourceforge.net/Matheschriften/matheschriften.xhtml (2008, August; only in German, was mentioned in one of the comments of egreg's answers)
Actual Questions
- What is the nowadays recommended way to set up a complete sans serif document? I aim for a solution that is considered state-of-the-art with a (if possible) complete set of symbols and font versions (Small Caps and do on).
- What do font packages like
sansmathfontsdo? Do they "just" make already existing fonts (or single characters / symbols) available in a convenient package (so it's "luck" if everything fits together) or did the authors create new fonts?
Background -- Why Do I Want This
I one of the comments (Mico) I was asked to explain what I want do to with the sans serif fonts.
- I help a friend which just started to be a teacher.
- If we create documents that are used on any kind of projectors, then the serif fonts sometimes cause readability problems.
- With documents I mean, e. g. beamer presentations or standalone diagrams.
- I attached one of the standalone diagrams below. The pictures have the same resolution.
- So it's not for a book, article or paper.
Standard Solution with Serif Fonts (no font package loaded -- I assume Computer Modern then)

Sans Serif Version -- Using the avec Package Approach from Above and Recommended by Mico









completesolution really should not requite small-caps. Traditionally and standardly, small-caps are serifs. – cfr Mar 21 '17 at 03:42sansmath.sty. It tells you what it does, what it doesn't do and what you might be better doing instead of using it. – cfr Mar 21 '17 at 03:47pdflatexor is a transition to e.g.xelatexpossible? – TeXnician Mar 21 '17 at 06:25updmapon a command (the document compiles fine for me). – Ulrike Fischer Mar 21 '17 at 08:47pdflatexbut if you can provide an alternative for others. And now I see that I should include this in the question -- thanks for asking. – Dr. Manuel Kuehner Mar 21 '17 at 09:07sansmath-- I just assumed it. And I didn't intend to be negative about it. If the assumption is wrong -- good. b) I read the documentation ofsansmathfontsand I understood that it "just" uses existing "stuff". Unlike some of you guys I cannot read style files like plain text :). c) The whole font stuff is still very confusing for me. Normally I just uselmodernand I was happy so far. Right now I am helping a math and physics teacher (who just started as a teacher) setting up LaTeX and for some kind of documents, the sans serif font are helpful. – Dr. Manuel Kuehner Mar 21 '17 at 09:25beamerpresentation and don't like the default (Computer Modern sans) sans serif choice, or still something else? Just as there will never be an "overall best" serif font, there will never be an "overall best" sans-serif font... – Mico Mar 21 '17 at 09:55