如何在块内的投影仪中将文本环绕在图形周围

如何在块内的投影仪中将文本环绕在图形周围

我有以下代码:

    \begin{block}{ROC-Curve}
    \begin{wrapfigure}{0.5/textwidth}
    \includegraphics[width=0.3\linewidth,height=0.3 
    \textheight,keepaspectratio]{ROC_curve.PNG}
    True Positives-Rate (TPR) = $\frac{TP}{TP + FN}\\
    False Positives-Rate(FPR) = $\frac{FP}{TP + TN}$ \\
    An ROC-Curve plots TPR vs FPR at different classification thresholds.
    Adjusting the classification threshold leads therefore to a change in
    both TPR and FPR. 
    \end{wrapfigure}
    \end{block}

理想情况下,它会将文本与块内的图片对齐......

答案1

我认为你不应该wrapfig在这里使用。你可以使用列来将图片和文本排列成两列。

\documentclass{beamer}
\usetheme{Rochester}
\begin{document}

\begin{frame}[t]
\begin{block}{ROC-Curve}
\begin{columns}[T]
\begin{column}{0.33\linewidth}
~\includegraphics[height=0.3\textheight,keepaspectratio]{example-image-duck}
\end{column}
\begin{column}{0.6\linewidth}
    True Positives-Rate (TPR) = $\frac{TP}{TP + FN}$

    False Positives-Rate(FPR) = $\frac{FP}{TP + TN}$

    An ROC-Curve plots TPR vs FPR at different classification thresholds.
    Adjusting the classification threshold leads therefore to a change in
    both TPR and FPR. 
\end{column}
\end{columns}
\end{block}

\end{frame}
\end{document}

在此处输入图片描述

相关内容