
改行位置を正しく選択していない非常に単純な状況がありますwrapfig
。これが MWE です:
\documentclass{beamer}
\usepackage{wrapfig}
\begin{document}
\begin{frame}
\begin{wrapfigure}{R}[5pt]{0.52\textwidth}
\framebox{THIS IS MY FIGURE}
\end{wrapfigure}
This is not wrapped properly, I think.
Here is some more text.
\end{frame}
\end{document}
出力は次のとおりです。
テキストの最初の行が「is」という単語の後で途中で終了していることがわかります。各行の適切な位置でテキストが折り返されるようにするにはどうすればよいですか?
おそらく関連していますが、図は 2 行目ではなく、テキストの 1 行目と同じ高さに表示されるものと予想されます。
答え1
ビーマーの「ページ」はかなり特殊な環境であり、多くのことが通常のクラスのようには機能しません。追加のミニページ、R の代わりに r、および変更された \intextsep を追加してみてください。
\documentclass{beamer}
\usepackage{wrapfig}
\begin{document}
\begin{frame}
\begin{minipage}{\linewidth}\intextsep=0pt
\begin{wrapfigure}{r}[5pt]{0.52\linewidth}
\framebox{THIS IS MY FIGURE}
\end{wrapfigure}
This is not wrapped properly, I think.
Here is some more text.
\end{minipage}
\end{frame}
\end{document}
しかし、私は wrapfig ではなく、beamer で列を使用します。