带描述的大公式

带描述的大公式

可以制作以下东西来帮助你 Latex……? 大公式

答案1

使用tikzmark图书馆:

在此处输入图片描述

代码:

\documentclass{article}
\usepackage{xparse}
\usepackage{tikz}
\usetikzlibrary{tikzmark}
\usepackage{amsmath}

\NewDocumentCommand\MyInfo{O{(0,0)}O{}mmm}{
\begin{tikzpicture}[remember picture,overlay,#2]
  \node[pin=#4:{\parbox{5cm}{\raggedright #5}}] at ([shift={#1}]pic cs:#3) {};
\end{tikzpicture}%
}

\begin{document}

\[
\LARGE
\underbrace{\tikzmark{i}\int_{\tikzmark{a}a}^{\tikzmark{b}b} f(\tikzmark{f}x)\textrm{d}\tikzmark{x}x}_{\text{\normalsize Integral of $f$ from  $a$ to $b$}\tikzmark{bii}}
\]

\MyInfo{a}{220}{Lower limit  of integration}
\MyInfo[(0,9pt)]{b}{140}{Upper limit  of integration}
\MyInfo[(10pt,6pt)]{x}{40}{$x$ is the variable of integration}
\MyInfo[(2pt,18pt)][pin distance=1.5cm]{f}{90}{The function is the integrand}
\MyInfo[(0pt,3pt)]{bii}{0}{When you find the value \\ of the integral, \\ you have evaluated the integral}

\end{document}

该代码需要运行三次才能稳定。

答案2

只是一个带有 PSTricks 的模板。其余琐碎部分故意留作练习。

\documentclass[preview,border=12pt,12pt]{standalone}
\usepackage{pst-node}
\usepackage{amsmath}

\newsavebox\IBox
\savebox\IBox{\psscalebox{2}{\raisebox{\depth}[\totalheight]{$
\underbrace{\rnode[l]{int}{\displaystyle\int_{\rnode[bl]{a}{a}}^{\rnode[tl]{b}{b}}}\quad f(x)\quad \mathrm{d}x}_{\text{\tiny Integral of $f$ from $a$ to $b$}}
$}}}


\psset
{
    xunit=0.2\wd\IBox,
    yunit=0.2\ht\IBox,
}
\begin{document}

\pspicture[showgrid=false](-\wd\IBox,-\ht\IBox)(\wd\IBox,\ht\IBox)
    \rput(0,0){\usebox\IBox}
    \rput(-2,4){\rnode[b]{bnote}{Upper limit of integration}}
    \ncline{bnote}{b}
\endpspicture
\end{document}

在此处输入图片描述

相关内容