19

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

  • So.. the older one gets the less happiness contributes to one's life? – jan-glx Oct 5 '17 at 15:59
21

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}
21

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}
14

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} {\,=} \!\!\!\!\vcenter{\hbox{%
  $\displaystyle{\scaleto[2em]{\int}{60pt}}_{%
    \mkern-27mu\mathit{birth}}^{\mathit{death}}$}}\mkern-44mu%
      \frac{\mathit{happiness}}{\mathit{time}}\,\Delta\,\mathit{time}
\]
\end{document}

enter image description here

  • I think the OP wanted to push the fraction to the left, and increase the height of the integral, so that the fraction is actually below the upper limit (death). – Torbjørn T. Apr 7 '17 at 10:57
  • @TorbjørnT. yes that is exactly what i'm looking for. – Hogfeldt Apr 7 '17 at 10:58
  • @Hogfeldt Please see refinement – Steven B. Segletes Apr 7 '17 at 11:02
  • @TorbjørnT. But of course.... The final brushstrokes were still being applied. – Steven B. Segletes Apr 7 '17 at 11:03
8

Here's a solution that uses the mtpro2 package and its \XXL\int construct.

enter image description here

% !TeX program = pdflatex 
\documentclass{article}
\usepackage{mathtools,newtxtext}
\usepackage[lite]{mtpro2}
\begin{document}
\[
\textit{\Large Life}=\XXL\int_{\mathrlap{\textit{birth}}}^{\mathrlap{\textit{death}}}
  \mkern-15mu\frac{\textit{happiness}}{\textit{time}}\Delta\textit{time}
\]
\end{document}

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.