# What kind of integral is this?

by Hogfeldt   Last Updated April 07, 2017 11:23 AM

Hi can anyone tell me what kind of package or what to type for getting an integral like this on the image, where the \frac{happines}{time} is below death? All the integrals I can find will push the frac to after death.

Tags :

Here's a start.

\documentclass{article}
\begin{document}
$\mathit{Life} = \int_\mathit{birth}^\mathit{death}\frac{\mathit{happiness}}{\mathit{time}} \Delta \mathit{time}$
\end{document}


More refined:

\documentclass{article}
\usepackage{scalerel,mathtools}
\begin{document}
$\mathit{Life} {\,=} \!\!\!\!\raisebox{-4pt}{% \displaystyle{\scaleto[2em]{\int}{60pt}}_{% \mkern-27mu\mathrlap{\mathit{birth}}}^{\mathrlap{\mathit{death}}}}\!\!% \frac{\mathit{happiness}}{\mathit{time}}\, \Delta \,\mathit{time}$
\end{document}


Steven B. Segletes
April 07, 2017 10:53 AM

With the help of the bigints package (cf. Big integral sign), and some negative space, using Steven's code as a starting point.

\documentclass{article}
\usepackage{bigints}
\begin{document}
$\mathit{Life} = \hspace{-0.8em} \bigint_{\mathit{birth}}^{\mathit{death}}\hspace{-2.5em}\frac{\mathit{happiness}}{\mathit{time}} \Delta \mathit{time}$
\end{document}

Torbjørn T.
April 07, 2017 11:00 AM

Using bigints is a good start. Negative kerning is then needed around the equality and before the fraction.

\documentclass{article}

\usepackage[osf]{Baskervaldx} % tosf in text, tlf in math
\usepackage{bigints}

\begin{document}

\begin{displaymath}
\textit{Life} \mkern-2mu = \mkern-18mu
\bigints_{\textit{birth}}^{\textit{death}} \mkern-42mu
\frac{\textit{happiness}}{\textit{time}} \,\Delta \textit{time}
\end{displaymath}

\end{document}

Andrew Swann
April 07, 2017 11:09 AM