이 예가 있습니다
\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}