How do I make the following integral symbols in Latex?

Enter image description here Enter image description here

I know how to make an integral and the limit. I don't know how to make it with the lines through it.

  • Have you checked detexify? – dustin Oct 4 '14 at 17:46
  • Yes I just have. Didn't know about it. It only finds an integral with a line through it in the middle. – RisayaKinan Oct 4 '14 at 17:50
  • Welcome to TeX.SX. Do both symbols mean something different (i.e. upper/lower limts or something like that)? If not, it might just be a choice of the font used. – Johannes_B Oct 4 '14 at 17:54
  • 2
    Those symbols rather look a giant f letter than a true integral symbol – user31729 Oct 4 '14 at 18:02
  • The are used by my professor in relation to the riemann integral. One is defined as infimum and one as supremum from the Darboux upper or lower sum. – RisayaKinan Oct 4 '14 at 18:03

Using the code from the entry The Principal Value Integral symbol (which defines the macro \dashint) in the UK List of TeX FAQs as a starting point, it is reasonably straightforward to define two new macros, \lowdashint and \highdashint, that place a "dash" symbol -- actually, a "minus" symbol -- a bit lower and a bit higher, respectively, than \dashint does.

In the code below, the macros \lowdashint and \highdashint are set up only for display-style and text-style math modes. (I can't imagine they'll occur in expressions in first-level, let alone second-level, subscripts and superscripts. However, please tell me if this assumption is invalid.)

You should, of course, feel free to change the vertical positions of the dashes -- cf the arguments of the \lower and \raise commands -- to suit your stylistic preferences.

enter image description here




\text{Math mode} & \multicolumn{3}{c@{}}{\text{Integral symbol}}\\
& \texttt{\string\lowdashint} 
& \texttt{\string\highdashint}
& \texttt{\string\dashint} \\
& \displaystyle \lowdashint_M f
& \displaystyle \highdashint_M f
& \displaystyle \dashint_M f \\[4ex]
& \lowdashint_M f
& \highdashint_M f
& \dashint_M f \\
  • 1
    Wow. Thanks a lot. I never would have known how to do this. Your assumption was correct by the way. – RisayaKinan Oct 5 '14 at 15:31

One way of placing bars through math characters is to use \ooalign. In the two commands I've defined below, the first number controls how high the bar is on the integral sign, the second controls the length of the bar, and the third controls the thickness of the bar.


\ooalign{\hidewidth $\int$\hidewidth\cr\rule[1.1ex]

\ooalign{\hidewidth $\int$\hidewidth\cr\rule[-0.1ex]

\[\stI_m f\]
\[\stII_m f(x)\]

To get these looking nice, you might also want to read this answer: Big integral sign

  • With this setup, the m symbol is placed in the "ordinary" subscript position, rather than much lower near the lower edge of the integral symbol. – Mico Oct 4 '14 at 20:22
  • One fix is to wrap the ooalign with \mathop{}. That being said, I think your solution is better. – Steven Gardiner Oct 4 '14 at 20:48

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.