我正在尝试并排显示两个小页面。以下是代码(还有:平均能量损失):
\begin{frame}[t]%
\fbox{\begin{minipage}[t][\textheight][t]{.48\textwidth}
All the previous questions are as relevant for cybernetic systems as they are for `simple' systems.
A principled mathematical framework for the ontology and phenomenology of systems is given by \textbf{categorical system theory} (CST):
\end{minipage}}
\begin{minipage}[t][\textheight][t]{.48\textwidth}
\begin{center}
\fbox{
\includegraphics[height=.85\textheight]{CST.png}
}\\
\cite{myers2021book}
\end{center}
\end{minipage}
\end{frame}
我使用上一张幻灯片中的相同代码来对齐两页文本,并且运行正常。有什么提示吗?
\documentclass{beamer}
\begin{document}
\begin{frame}[t]%
\fbox{\begin{minipage}[t][\textheight][t]{.48\textwidth}
All the previous questions are as relevant for cybernetic systems as they are for `simple' systems.
A principled mathematical framework for the ontology and phenomenology of systems is given by \textbf{categorical system theory} (CST):
\end{minipage}}
\begin{minipage}[t][\textheight][t]{.48\textwidth}
\begin{center}
\fbox{
\includegraphics[height=.85\textheight,width=\linewidth]{example-image}
}\\
...[example]...
\end{center}
\end{minipage}
\end{frame}
\end{document}
答案1
我会使用投影仪柱:
% !TeX TS-program = lualatex
\documentclass[14pt]{beamer}
% Presento style file
\usepackage{config/presento}
% custom command and packages
\input{config/custom-command}
\begin{document}
\begin{frame}[t]%
\begin{columns}[onlytextwidth,T]
\begin{column}{.48\textwidth}
\fbox{\parbox{\textwidth}{
\centering
All the previous questions are as relevant for cybernetic systems as they are for `simple' systems.
A principled mathematical framework for the ontology and phenomenology of systems is given by \textbf{categorical system theory} (CST):
}}
\end{column}
\begin{column}{.48\textwidth}
\centering
\fbox{\href{http://davidjaz.com/Papers/DynamicalBook.pdf}{\includegraphics[width=.9\textwidth]{images/skeleton.jpg}}}
\cite{myers2021book}
\end{column}
\end{columns}
\end{frame}
\end{document}
答案2
您显示的图像左侧第一行文本的基线与右侧图像的基线对齐。
这意味着两个小页面都是顶部对齐的,并且以文本和图像作为第一项。
\documentclass{beamer}
\begin{document}
\begin{frame}[t]%
\fbox{\begin{minipage}[t][\textheight][t]{.48\textwidth}
All the previous questions are as relevant for cybernetic systems as they are for `simple' systems.
A principled mathematical framework for the ontology and phenomenology of systems is given by \textbf{categorical system theory} (CST):
\end{minipage}}
\begin{minipage}[t][\textheight][t]{.48\textwidth}
\fbox{
\includegraphics[height=.85\textheight,width=\linewidth]{example-image}
}\\
...[example]...
\end{minipage}
\end{frame}
\end{document}
如果您\vspace
在第二个小页面的顶部添加一个,则参考点将移动到第一个项目,因此左列文本将移到更高的位置。center
环境(如代码片段中所示)添加了这样的 vspace 节点。
\documentclass{beamer}
\begin{document}
\begin{frame}[t]%
\fbox{\begin{minipage}[t][\textheight][t]{.48\textwidth}
All the previous questions are as relevant for cybernetic systems as they are for `simple' systems.
A principled mathematical framework for the ontology and phenomenology of systems is given by \textbf{categorical system theory} (CST):
\end{minipage}}
\begin{minipage}[t][\textheight][t]{.48\textwidth}
\begin{center}
\fbox{
\includegraphics[height=.85\textheight,width=\linewidth]{example-image}
}\\
...[example]...
\end{center}
\end{minipage}
\end{frame}
\end{document}
答案3
右侧小页面的参考点是图片的底部。
您可以添加\vspace*{...}
以设置不同的参考点。在第一个小页面中,它应该是0pt
,在第二个小页面中,您必须通过\fboxrule
和进行备份\fboxsep
。
\documentclass{beamer}
\begin{document}
\begin{frame}[t]
\frametitle{Cybernetic systems}
\fbox{\begin{minipage}[t][0.7\textheight][t]{.48\textwidth}
\vspace*{0pt}
All the previous questions are as relevant for cybernetic systems as they
are for `simple' systems.
A principled mathematical framework for the ontology and phenomenology of
systems is given by \textbf{categorical system theory} (CST):
\end{minipage}}
\begin{minipage}[t][\textheight][t]{.48\textwidth}
\centering
\vspace*{-\fboxsep}\vspace*{-\fboxrule}
\fbox{%
\includegraphics[height=.65\textheight,width=0.9\textwidth]{example-image-9x16}%
}
\cite{myers2021book}
\end{minipage}
\end{frame}
\end{document}