Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
LaTeX Cookbook

You're reading from   LaTeX Cookbook Over 90 hands-on recipes for quickly preparing LaTeX documents to solve various challenging tasks

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher Packt
ISBN-13 9781784395148
Length 378 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Stefan Kottwitz Stefan Kottwitz
Author Profile Icon Stefan Kottwitz
Stefan Kottwitz
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

LaTeX Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. The Variety of Document Types FREE CHAPTER 2. Tuning the Text 3. Adjusting Fonts 4. Working with Images 5. Beautiful Designs 6. Designing Tables 7. Contents, Indexes, and Bibliographies 8. Getting the Most out of the PDF 9. Creating Graphics 10. Advanced Mathematics 11. Science and Technology 12. Getting Support on the Internet Index

Getting the sans serif mathematics font


There are situations where the sans-serif font is required for documents. It can be, for example, a requirement by the university or institute. It may even be a design decision, for example, presentation slides often use sans serif. It's the default behavior of the LaTeX beamer class.

You can switch to sans serif for the default text font family using this command:

\renewcommand{\familydefault}{\sfdefault}

In such a case, it's desirable to print math formulas in sans serif as well to get a consistent design. The beamer class already does this.

In this recipe, we will do that for an arbitrary class. We will change all math formulas to have a sans serif font.

How to do it...

We will use the sfmath package. Follow these steps to get sans serif math formulae:

  1. Load the sfmath package. Do it after loading the font packages or commands that change the \sfdefault command:

    \usepackage{sfmath}
  2. If you use the default font, that is, Computer Modern, additionally load sansmathaccent...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime
Visually different images