
この例があります
\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}