When we create a LaTeX document, it uses Computer Modern font by default, which is like this:

enter image description here

But I see that all formulas in the Wiki is in this font, which I think is much more beautiful: enter image description here

What is this font? How can I use it in my LaTeX document?

Thank you.

  • 1
    It seems to be the boldface version of the Computer Modern math fonts. Just write \boldmath before entering math mode. – Bernard Jul 10 '16 at 15:23
  • @Bernard - Using \boldmath was first reaction too. However, \boldmath invokes bold-extended by default, whereas the wikipedia example appears to use "regular-width" bold math fonts. – Mico Jul 10 '16 at 15:29
  • @Bernard: I don't think so. If you see this link: (tex.stackexchange.com/questions/98433/…), \boldmath is actually much more thick. – A. Chu Jul 10 '16 at 15:37
  • It's probably something you could achieve with a \pdfliteral artifact. – Manuel Jul 10 '16 at 15:40
  • "...the Wiki...". Which wiki? – Werner Jul 10 '16 at 15:42

As a last resort, you can use \pdfliteral (at least in pdflatex and lualatex, IIRC), altough it may not look as good in printing. Just modify the 0.25 bit to your taste.


\newcommand*\mathbold[1]{\pdfliteral direct{2 Tr 0.25 w}#1\pdfliteral direct{0 Tr 0 w}}


  \sum_{n=1}^{\infty} \frac1{n^2} = \frac{\pi^2}6. \qquad \mathbold{\sum_{n=1}^{\infty} \frac1{n^2} = \frac{\pi^2}6.}


enter image description here

By the way, I think that what you are showing might be an artifact of the svg rendering.

  • Can I use this method to "bold" text? I mean text in Computer Modern font. – A. Chu Jul 10 '16 at 16:18
  • Yes, altough it depends on the pdf viewer / printer, it might not have the same look across all plataforms. – Manuel Jul 10 '16 at 16:28
  • Can you show me the code I need to "bold" text by this method? – A. Chu Jul 10 '16 at 16:29
  • It's exactly the same, just name the command \bold rather than \mathbold to have consistency, and you can use it in text or math mode. – Manuel Jul 10 '16 at 16:30
  • 1
    @ᴊᴀsᴏɴ \AtBeginDocument{\pdfliteral direct{2 Tr 0.25 w}}. If you see the code of the command, it's just code before #1 and code after to revert the changes. Just put the code before wherever you want. – Manuel Jul 13 '16 at 5:53

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.