I am fairly new to TeX, and I am currently using TexStudio.

I am wondering how I can exactly replicate the typesetting of the integral below, including the font and the upright integral sign? What packages, what font? enter image description here

Thank you.

  • Did you mean to delete the screenshot?
    – Mico
    Aug 14, 2017 at 7:41
  • 1
    @satokun Please reupload your screenshot. This question is now pretty much worthless for the community.
    – Holene
    Aug 14, 2017 at 8:18
  • Saying that you prefer egreg's solution can not be a good reason for deleting the initial screenshot. As @Holene has pointed out, the entire query is worthless -- and should probably be deleted -- without that screenshot.
    – Mico
    Aug 14, 2017 at 9:19

3 Answers 3


This seems quite similar to newtxmath with the upint option:





\int x^n\diff x


enter image description here

  • 2
    I'm always puzzled when I see an accepted answer with 0 score. Time to change that :) Aug 11, 2017 at 9:34

Basic math is included in LaTeX without any additional packages. I would write:



\[ \int x^n\, \mathrm{d}x \]


If you just type dx instead of \mathrm{d}x, the d will be put in italic (like in your example).

  • 1
    Thank you for the answer. But this produces a slanted integral sign. How can I make it straight?
    – satokun
    Aug 11, 2017 at 7:57
  • In this case, check the following question: tex.stackexchange.com/questions/222243/… Aug 11, 2017 at 7:58
  • 1
    \text is completely wrong here. There are so many people misusing \text in this way. Here \mathrm should be used, not \text. \text has one and one use only (except for siunitx which "misuses" it a bit): textual comments in displayed math. This is clearly not such a case.
    – daleif
    Aug 11, 2017 at 7:59
  • 1
    @daleif Thanks for pointing it out, you are completely right. I changed my answer accordingly. Aug 11, 2017 at 8:01
  • Thanks again. I somehow missed the comma when reading the comment. Either my eyes are too bad or my screen is too small :) Aug 11, 2017 at 8:32

Ok, you are new to \LaTeX. Here is your answer. I am also teaching you how to specify the limits of integration:

$\displaystyle \int_a^b x^n \, dx$

The \, directive inserts a thinspace between the integrand and the variable of integration; this is commonly done in (good) math typography.

If you need an expression without limits of integration:

$\displaystyle \int x^n \, dx$
  • I've taken the liberty of streamlining your answer a bit; feel free to revert if you disagree with the changes.
    – Mico
    Aug 14, 2017 at 7:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .