两个并排的图形,带有文字换行

两个并排的图形,带有文字换行

我遇到了文字环绕两个并排数字的问题,每个数字的高度都不同。请查看下面所需的模板。

在此处输入图片描述

目前我放置了两张图片和minipage环境。但是我该如何将它与wrapfigure环境结合起来以获得所需的结果?或者也许还有其他解决方案?

目前我使用这个简单的代码:

\documentclass{文章}
\usepackage{wrapfig}
\usepackage{xcolor}
\usepackage{lipsum}

\开始{文档}

\lipsum[1]

\begin{图}[h]
\begin{minipage}[t]{0.5\linewidth}
\定心
\textcolor{蓝色}{\rule{3cm}{3cm}}
\caption{一个}
\标签{图:A}
\end{迷你页面}
\begin{minipage}[t]{0.5\linewidth}
\定心
\textcolor{蓝色}{\rule{5cm}{8cm}}
\caption{B}
\label{图:B}
\end{迷你页面}
\结束{图}

\lipsum[2]

\结束{文档}

答案1

您必须仔细调整图像的尺寸和环绕图形将延伸的线数(例如[10]\begin{wrapfigure}[10]{r}{5.5cm}

一个例子:

\documentclass{article}
\usepackage{graphicx,wrapfig,lipsum}
%------------------------------------------
\begin{document}
This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like.
%------------------------------------------
\begin{wrapfigure}[10]{r}{5.5cm}
\rule{5.5cm}{7.1cm}
\caption{A wrapped figure}\label{wrap-fig:1}
\end{wrapfigure}
%------------------------------------------
This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like. This is where the table goes with text wrapping around it. You may
embed tabular environment inside wraptable environment and customize as you like. This is where the table goes with text wrapping around it. 
%
\begin{figure}[h]
\begin{minipage}{6cm}
\centering
\rule{\textwidth}{3cm}
\caption{my figure}\label{fig:2}
\end{minipage}%
\end{figure}%

\lipsum[2-3]

Figure~\ref{wrap-fig:1} is a wrapped figure.
%------------------------------------------
\end{document}

在此处输入图片描述

答案2

也许这对你有帮助:

\usepackage[dvips]{graphicx}
\usepackage{floatflt,epsfig}

\begin{document}
    TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
    TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
    \begin{floatingfigure}[r]{9cm}
        \mbox{\includegraphics[width=80mm,height=61mm]{bild.eps}}
        \caption{bla}
    \end{floatingfigure}
    TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
    TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT
\end{document}

如果没有,请发布您迄今为止用来解决问题的代码。

此外,这关联可能会有帮助。

相关内容