# Integral symbol with high and low dashes

How do I make the following integral symbols in Latex?

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
• 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.

\documentclass{article}
\usepackage{booktabs,amsmath}
\def\Xint#1{\mathchoice
{\XXint\displaystyle\textstyle{#1}}%
{\XXint\textstyle\scriptstyle{#1}}%
{\XXint\scriptstyle\scriptscriptstyle{#1}}%
{\XXint\scriptscriptstyle\scriptscriptstyle{#1}}%
\!\int}
\def\XXint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
\vcenter{\hbox{$#2#3$}}\kern-.5\wd0}}
\def\dashint{\Xint-}

\def\Yint#1{\mathchoice
{\YYint\displaystyle\textstyle{#1}}%
{\YYYint\textstyle\scriptscriptstyle{#1}}%
{}{}%
\!\int}
\def\YYint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
\lower1ex\hbox{$#2#3$}\kern-.46\wd0}}
\def\YYYint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
\lower0.35ex\hbox{$#2#3$}\kern-.48\wd0}}
\def\lowdashint{\Yint-}

\def\Zint#1{\mathchoice
{\ZZint\displaystyle\textstyle{#1}}%
{\ZZZint\textstyle\scriptscriptstyle{#1}}%
{}{}%
\!\int}
\def\ZZint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
\raise1.15ex\hbox{$#2#3$}\kern-.57\wd0}}
\def\ZZZint#1#2#3{{\setbox0=\hbox{$#1{#2#3}{\int}$}
\raise0.85ex\hbox{$#2#3$}\kern-.53\wd0}}
\def\highdashint{\Zint-}

\begin{document}
\$\begin{array}{@{}lccc@{}}
\toprule
\text{Math mode} & \multicolumn{3}{c@{}}{\text{Integral symbol}}\\
\cmidrule(l){2-4}
& \texttt{\string\lowdashint}
& \texttt{\string\highdashint}
& \texttt{\string\dashint} \\
\midrule
\texttt{\string\displaystyle}
& \displaystyle \lowdashint_M f
& \displaystyle \highdashint_M f
$\stII_m f(x)$
\end{document}


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