我在这里尝试做的是,我想将我的图定位在中心,如下图第二张图所示,覆盖其后面的文本。但是,在方括号中传递不同的位置参数后,我仍然无法将图定位在中心。有人能帮我解决这个问题吗?
以下是我使用的代码:
\documentclass[demo]{beamer} % remove 'demo' option in real document
\usepackage{mathtools}
\DeclarePairedDelimiter{\abs}{\lvert}{\rvert}
\begin{frame}
\item We divided the procedure of solving the system of ODE into two main parts:
\begin{enumerate}
\item Estimating values for the parameters $\alpha, \beta, \gamma$ using linear regression and the empirical data we have
\begin{itemize}
\item Empirical data is provided in the form of an $n$-by-4 matrix with coefficients $(t,P,S,Q)$
\end{itemize}
\item Finding the general solution to the system of ODE that accepts $\alpha, \beta, \gamma$ as its parameters
\begin{itemize}
\item Remove independent variable $t$ from first two ODE to get a new ODE in terms of $P$ and $S$
\item $\frac{dP}{dS} = \frac{P(-\alpha S -\gamma)}{S(\alpha P - (\beta + \gamma))}$
\item Final equation: $\alpha (P+S) - \beta + \gamma \ln{\abs{P}} + \gamma \ln{\abs{S}} + C (*)$
\item Next, by summing all three ODE, we get: $\frac{(P+S+Q)}{dt} = -\gamma (P+S+Q)$
\item Integrating both side: $(P+S+Q) = K $e$^{-\gamma t} (**)$
\end{itemize}
\end{enumerate}
\pause
\begin{figure}[t]
\centering
\includegraphics[width=8cm]{one}
\caption{Plot of $P(t)$, $S(t)$ and $Q(t)$ against $t$}
\label{fig:3}
\end{figure}
\end{frame}
\end{document}
答案1
尽管这可能是一个坏主意(而不是在现有的框架上绘制,为什么不创建一个新的呢?),你可以滥用tikz
它(我使用了我自己的最小文档,但这并不重要):
\documentclass{beamer}
\usepackage{tikz,lipsum}
\begin{document}
\begin{frame}{Frame Title}
\begin{itemize}\item\lipsum[1]\end{itemize}
%
\begin{tikzpicture}[remember picture,overlay]
\node at (current page.center) {\includegraphics[width=5cm]{example-image}};
\end{tikzpicture}
\end{frame}
\end{document}