What fonts give similar look when used as text and within math environment?

I'm particularly interested in sans serif fonts, but serif fonts are also very welcomed.

  • 1
    Fonts with math support – Johannes_B Dec 12 '13 at 17:11
  • 1
    @MichaelHoppe The default serif font does. Most importantly, digits looks alike in both cases. When, say, a table contains both text and math-enclosed digits, they really appears the same. – Anton Tarasenko Dec 12 '13 at 17:13
  • 1
    @Anton After your comment, the question seems to make no sense. The default LaTeX font -- Computer/Latin Modern -- satisfies the condition that they "look alike", because they are simply the same. If you want to use the sans-serif variant, just do \usepackage[T1]{fontenc}\usepackage{lmodern}\usepackage{sfmath}\let\familydefault\sfdefault – yo' Dec 12 '13 at 17:16
  • 1
    @Anton Don't we want the mathematical part of our works to appear typographically different to the non-mathematical content? This clearly would increase the readability of our works. So we must demand that those two parts are typed somewhat different. – Michael Hoppe Dec 12 '13 at 17:20
  • 1
    @MichaelHoppe in the standard latex setup digits and \log-like command names all come from the document roman text font, so it certainly isn't always the case that you want different glyphs in the two cases. – David Carlisle Dec 12 '13 at 17:23

Even though I don't think that this is a good idea, and if the document has to be typeset in sans-serif, I would personally prefer to have the math in serif, you can add the following to your preamble:

\usepackage[T1]{fontenc} % font encoding (not completely necessary)
\usepackage{lmodern} % Latin Modern (not completely necessary)
\usepackage{sfmath} % use sans-serif math font
\let\familydefau‌​lt\sfdefault % use sans-serif text font
|improve this answer|||||

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.