TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to prepare document with Computer Modern fonts (using MikTeX 2.9) with upright sans serif fonts. Has anybody got an idea how to do it?

I've tried sfmath package, but it produces sans serif italics and I don't know how to get rid of the italics.

Let me be more specific. I have a LaTeX document which I want to format in a special way: the document font should be standard serif CM font, but what's between $ $ (and [ ]) should be typeset in sans serif upright font. Any package I tried doesn't help, cmbright and sfmath can produce a sans serif font but in italics.

share|improve this question
did you try putting \usepackage{cmbright} in your document preamble? – percusse Aug 16 '11 at 14:32
@user7313: If you register your account, a moderator can merge the account with the unregistered one from yesterday so that you regain control over your question. – Caramdir Aug 18 '11 at 6:00
I now merged the two accounts together. – Martin Scharrer Aug 18 '11 at 9:05
Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). – Martin Schröder Sep 17 '12 at 22:23

If I understand your question correctly, you are trying to get a document typeset using a sans-serif font rather than the "ordinary" serif font. In addition, you want the font that's used in math to be upright rather than "slanted". The only math font I'm familiar with that's upright rather than slanted is the so-called "Euler" font; it goes reasonably well with Computer Modern fonts, both serif and sans-serif. If the Euler font suits your needs, you should add the following commands to the preamble of your document:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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