我有這個例子
\documentclass{beamer}
\mode<presentation>
{
\usetheme{Boadilla}
\usecolortheme{wolverine}
\usefonttheme{structurebold}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{itemize items}[ball]
}
\usepackage{array,amsmath,booktabs}
\usepackage{amsmath}
\usepackage[version=4]{mhchem}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{mwe} % for blindtext and example-image-a in example
\usepackage{wrapfig}
\begin{document}
\begin{frame}{Inference}
\begin{itemize}
\item Independent gamma priors:
\end{itemize}
\begin{gather*}
\pi(c) = \prod\limits_{j=1}^v \pi(c_j), \quad c_j \sim Ga(a_j, b_j), \; j=1,...,v
\end{gather*}
\begin{itemize}
\item Prior combined with our likelihood gives us updated posteriors:
\end{itemize}
\begin{gather*}
c_j|\mathbf {x} \sim Ga\Big(a_j+r_j,b_j+\int_0^Tg_j(x(t))\,dt \Big), \; j=1,..,v
\end{gather*}
\begin{columns}
\column{0.5\textwidth}\centering
\begin{itemize}
\item Simulate our system to get perfect information
\item Graph shows simulated data for 300 reactions of our Micahelis-Menten model
\end{itemize}
\column{0.5\textwidth}\centering
\begin{figure}
\includegraphics[width=0.8\linewidth]{C:/Users/Acer/Desktop/PresentationGraphics/Simulateddatagraph.pdf}
% \captionof{figure}{Simulated data for 300 reactions\label{fig:boat1}}
\end{figure}
\end{columns}
\end{frame}
\end{document}
我的圖像不適合幻燈片。我不想讓我的圖像變小,因為那樣人們就看不到它了。
我嘗試過用文字包裹我的圖像,但這似乎也不起作用。
我也嘗試過尋找類似的問題,但我真的找不到任何有幫助的東西。
答案1
看起來你的圖像是高度......透過graphicx
包中的範例圖像並重寫你的框架,我設法在幻燈片上顯示完整的圖像:
\documentclass{beamer}
\mode<presentation>
{
\usetheme{Boadilla}
\usecolortheme{wolverine}
\usefonttheme{structurebold}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{itemize items}[ball]
}
\usepackage{array,amsmath,booktabs}
\usepackage{amsmath}
\usepackage[version=4]{mhchem}
\usepackage{mathtools}
\usepackage{subcaption}
%\usepackage{mwe} % for blindtext and example-image-a in example
\usepackage{wrapfig}
\begin{document}
\begin{frame}{Inference}
\begin{itemize}% <--- changed
\item Independent gamma priors:
\[
\pi(c) = \prod\limits_{j=1}^v \pi(c_j), \quad c_j \sim Ga(a_j, b_j), \; j=1,...,v
\]
\item Prior combined with our likelihood gives us updated posteriors:
\[
c_j|\mathbf {x} \sim Ga\Big(a_j+r_j,b_j+\int_0^Tg_j(x(t))\,dt \Big), \; j=1,..,v
\]
\end{itemize}
\begin{columns}
\column{0.5\textwidth}\centering
\begin{itemize}
\item Simulate our system to get perfect information
\item Graph shows simulated data for 300 reactions of our Micahelis-Menten model
\end{itemize}
\column{0.5\textwidth}\centering
\begin{figure}
\includegraphics[width=0.8\linewidth]{example-image-a}%{C:/Users/Acer/Desktop/PresentationGraphics/Simulateddatagraph.pdf}
% \captionof{figure}{Simulated data for 300 reactions\label{fig:boat1}}
\end{figure}
\end{columns}
\end{frame}
\end{document}
答案2
您可以在圖形之前添加負數 \vspace 將其向上移動:
\documentclass{beamer}
\mode<presentation>
{
\usetheme{Boadilla}
\usecolortheme{wolverine}
\usefonttheme{structurebold}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{caption}[numbered]
\setbeamertemplate{itemize items}[ball]
}
\usepackage{array,amsmath,booktabs}
\usepackage{amsmath}
\usepackage[version=4]{mhchem}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{subcaption}
\usepackage{mwe} % for blindtext and example-image-a in example
\usepackage{wrapfig}
\begin{document}
\begin{frame}{Inference}
\begin{itemize}
\item Independent gamma priors:
\end{itemize}
\begin{gather*}
\pi(c) = \prod\limits_{j=1}^v \pi(c_j), \quad c_j \sim Ga(a_j, b_j), \; j=1,...,v
\end{gather*}
\begin{itemize}
\item Prior combined with our likelihood gives us updated posteriors:
\end{itemize}
\begin{gather*}
c_j|\mathbf {x} \sim Ga\Big(a_j+r_j,b_j+\int_0^Tg_j(x(t))\,dt \Big), \; j=1,..,v
\end{gather*}
\begin{columns}
\column{0.5\textwidth}\centering
\begin{itemize}
\item Simulate our system to get perfect information
\item Graph shows simulated data for 300 reactions of our Micahelis-Menten model
\end{itemize}
\column{0.5\textwidth}\centering
\begin{figure}
\vspace{-10cm}%adapt
\includegraphics[width=0.8\linewidth]{example-image-a}
% \captionof{figure}{Simulated data for 300 reactions\label{fig:boat1}}
\end{figure}
\end{columns}
\end{frame}
\end{document}