テキストを折り返して 2 つの図を並べる

テキストを折り返して 2 つの図を並べる

高さが異なる 2 つの図が並んでいる場合、テキストが図の周囲に折り返される問題が発生します。以下の必要なテンプレートを参照してください。

ここに画像の説明を入力してください

現在、私は2枚の写真を載せていますminipage。しかし、必要な結果を得るには、環境とどのように組み合わせればよいでしょうかwrapfigure。あるいは、他の解決策があるのでしょうか。

現在、私はこのシンプルなコードを使用しています:

\documentclass{記事}
\usepackage{wrapfig}
\usepackage{xcolor}
\usepackage{リップサム}

\begin{ドキュメント}

\lipsum[1]

\begin{図}[h]
\begin{ミニページ}[t]{0.5\linewidth}
\センタリング
\textcolor{blue}{\rule{3cm}{3cm}}
\caption{あ}
\label{図:A}
\end{ミニページ}
\begin{ミニページ}[t]{0.5\linewidth}
\センタリング
\textcolor{青}{\rule{5cm}{8cm}}
\caption{B}
\label{図:B}
\end{ミニページ}
\end{図}

\lipsum[2]

\end{ドキュメント}

答え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}

そうでない場合は、問題を解決するためにこれまで使用したコードを投稿してください。

さらに、このリンク役に立つかもしれません。

関連情報