将 tikz 图片放在数学公式的正下方

将 tikz 图片放在数学公式的正下方

我有一个公式,需要在公式下方放置一张图来解释该公式的一部分,我有以下 MWE:

\documentclass{beamer}
\usepackage{tikz}

\usetikzlibrary{chains,shapes.multipart}
\usetikzlibrary{shapes,calc}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usetikzlibrary{automata,arrows,shapes,snakes,automata,backgrounds,petri,positioning}
\usetikzlibrary{calc}
\begin{document}
\begin{frame}
$F(t+\Delta, 0) = \underset{\begin{tikzpicture}[scale = 0.7]
\draw[->, thick] (-0.1,0) -- (2,0);
\draw[->,thick] (0,-0.1) -- (0,2.3);
\draw[-, thick] (0.3,-0.1) -- (0.3,0.1) node[inner sep=1pt,at start, anchor=north] (A)  {$t$};
\draw[-, thick] (1.7,-0.1) -- (1.7,0.1) node[inner sep=1pt,at start, anchor=north] (A)  {$t+\Delta$};
\draw[-, very thick, color=red!100] (0.3,0) -- (1.7,0);
\end{tikzpicture}}{\underbrace{F(t,0) - \lambda \int_{v = 0}^{\Delta}\overline{C_d}(t+v,0)dv}} + \int_{v=0}^{\Delta} f(t+v, \Delta - v) du + o(\Delta)$,
\end{frame}
\end{document}

其结果如下: 图片1

我希望这幅图直接绘制在花括号下面。

答案1

您可以将图片放在\text或其他框中。

\documentclass{beamer}
\usepackage{tikz}

\usetikzlibrary{chains,shapes.multipart}
\usetikzlibrary{shapes,calc}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usetikzlibrary{automata,arrows,shapes,snakes,automata,backgrounds,petri,positioning}
\usetikzlibrary{calc}
\begin{document}
\begin{frame}
$F(t+\Delta, 0) = \underbrace{F(t,0) - \lambda 
\int_{v = 0}^{\Delta}\overline{C_d}(t+v,0)dv}_{\text{\begin{tikzpicture}[scale = 0.7]
\draw[->, thick] (-0.1,0) -- (2,0);
\draw[->,thick] (0,-0.1) -- (0,2.3);
\draw[-, thick] (0.3,-0.1) -- (0.3,0.1) node[inner sep=1pt,at start, anchor=north] (A)  {$t$};
\draw[-, thick] (1.7,-0.1) -- (1.7,0.1) node[inner sep=1pt,at start, anchor=north] (A)  {$t+\Delta$};
\draw[-, very thick, color=red!100] (0.3,0) -- (1.7,0);
\end{tikzpicture}}} + 
\int_{v=0}^{\Delta} f(t+v, \Delta - v) du + o(\Delta)$,
\end{frame}
\end{document}

在此处输入图片描述

答案2

与 nice 略有不同的替代方案土拨鼠答案。差异(使用基线选项tikzpicture,定义样式)由表示% <---

\documentclass{beamer}
\usepackage{amsmath}
\usepackage[utf8]{inputenc}
\usepackage{tikz}

\begin{document}
\begin{frame}
\frametitle{Domain}
    \begin{multline*}
F(t+\Delta, 0) = \\
    \underbrace{F(t,0) - \lambda\int\limits_{v = 0}^{\Delta} \overline{C_d}(t+v,0)dv}_{% <---
    \begin{tikzpicture}[baseline,             % <---
        N/.style = {font=\footnotesize,below},% <---
        every path/.style = {thick, ->}       % <---  
                        ]
\draw (-0.1,0) -- (2.5,0);                                 % <---
\draw (0,-0.1) -- (0,1.5);                                 % <---
\draw[-] (0.5,0.1) -- + (0,-0.2) node[N] (A)  {$t$};       % <---
\draw[-] (2.0,0.1) -- + (0,-0.2) node[N] (A)  {$t+\Delta$};% <---
\path[draw=red,very thick,-] (0.5,0) -- + (1.5,0);
    \end{tikzpicture}} +
\int\limits_{v=0}^{\Delta} f(t+v, \Delta - v) du + o(\Delta)
    \end{multline*}
\end{frame}
\end{document}

在此处输入图片描述

相关内容