围绕图片流动的分项列表

围绕图片流动的分项列表

我尝试使用 beamer 制作幻灯片,它主要是列表,右上角有一张小图片。我可以使用列和两个单独的 itemize 环境来制作它,但这真的很丑,因为 itemize 环境不对齐,而且间距也不对。目前它看起来像这样:

当前尝试

这是用于创建页面的代码:

\documentclass{beamer}                                                                                                                                                
                                                                                                                                                                      
\begin{document}                                                                                                                                                      
\begin{frame}{Fancyslide}                                                                                                                                             
\begin{columns}                                                                                                                                                       
 \begin{column}{0.65\textwidth}                                                                                                                                       
  \begin{itemize}                                                                                                                                                     
  \item First item, somewhat short                                                                                                                                    
  \item Another argument                                                                                                                                              
  \item Another argument                                                                                                                                              
  \item Long argument that should get wrapped twice because it does not fit in the line                                                                               
 \end{itemize}                                                                                                                                                        
 \end{column}                                                                                                                                                         
 \begin{column}{0.3\textwidth}                                                                                                                                        
 \begin{figure}                                                                                                                                                       
  \centering                                                                                                                                                          
  \includegraphics[width=\textwidth]{image}                                                                                                                           
 \end{figure}                                                                                                                                                         
 \end{column}                                                                                                                                                         
\end{columns}                                                                                                                                                         
 \begin{itemize}                                                                                                                                                      
  \item Another long argument which shall span the entire line                                                                                                        
  \item How to align the itemize environments?                                                                                                                        
  \item How to ensure that the spacing between items of the different itemize environments is consistent with the other spacings of items?                            
  \item Final argument                                                                                                                                                
 \end{itemize}                                                                                                                                                        
\end{frame}                                                                                                                                                           
\end{document}

有什么想法可以让我让它保持一致和美观吗?注意:(目前)使用 beamer/LaTeX 无法实现,这是一个完全可以接受的答案。至少那时我知道我应该停止尝试。

编辑:Zarko 使用 wrapfig 包提供了答案。不幸的是,我无法重现他的结果。使用他的代码,只用我的示例图像替换图像名称,我使用 pdflatex 得到了一个糟糕的结果,使用 xelatex 得到了一个不令人满意的结果(在图像上书写)。所以我想我遇到了 TeX 臭名昭著的版本依赖性问题 :-(
如果可能的话,寻找更稳定的解决方案。

pdflatex:
pdflatex

xelatex:
赛莱特

我使用的图像(以防万一引起问题):
图像

答案1

你的解决方案还不错。在我看来,它给出了想要的结果。如果你使用wrapfig包,你可以得到更短的代码。有了它,你仍然需要将列表分成两部分(一个用于图的左侧,一个用于图的底部)。例如,基于问题的第二个答案投影机中的包装图, 你可以写。

\documentclass{beamer}
\usepackage{wrapfig}
\usepackage{lipsum}

\begin{document}
\begin{frame}{Fancyslide}

\includegraphics[width=0pt]{example-image} % that next image stay on the same frame
\begin{wrapfigure}[5]{r}{0.3\linewidth}  
\includegraphics[width=\linewidth]{example-image-duck}
\end{wrapfigure}
    \begin{itemize}
\item First item, somewhat short
\item Another argument
\item Another argument
\item Long argument that should get wrapped twice because it does not fit in the line
    \end{itemize}
    
    \begin{itemize}
\item Another long argument which shall span the entire line
\item How to align the itemize environments?
\item How to ensure that the spacing between items of the different itemize environments is consistent with the other spacings of items?
\item Final argument
    \end{itemize}
\end{frame}
\end{document}

在此处输入图片描述

笔记:当 MWE 由 pdfLaTeX 和 LuaLaTeX 编译时,提出的解决方案可以正常工作,但当由 XeLaTeX 编译时则不行。

相关内容