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.

enter image description here

Tags : integral


Answers 3


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}

enter image description here

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}

enter image description here

Steven B. Segletes
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.

enter image description here

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

Sample output

\documentclass{article}

\usepackage[osf]{Baskervaldx} % tosf in text, tlf in math
\usepackage[baskervaldx,vvarbb]{newtxmath}
\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
Andrew Swann
April 07, 2017 11:09 AM

Related Questions



How do we get the integral sign below?

Updated December 06, 2017 05:23 AM

Trapezoidal rule with pgfplots

Updated January 28, 2017 14:09 PM

Area between two curves

Updated January 07, 2018 14:23 PM

Awkward spacing for integral in exponent

Updated January 20, 2018 01:23 AM