我有一個問題,文字圍繞著兩個並排的圖形,每個圖形都有不同的高度。請參閱下面所需的模板。
目前我放置了兩張minipage
環境圖。但如何與wrapfigure
環境結合才能得到所需的結果呢?或者也許還有其他解決方案?
目前我使用這個簡單的程式碼:
\文檔類別{文章} \usepackage{wrapfig} \usepackage{xcolor} \usepackage{lipsum} \開始{文件} \lipsum[1] \開始{圖}[h] \begin{minipage}[t]{0.5\linewidth} \定心 \textcolor{藍色}{\rule{3cm}{3cm}} \標題{A} \標籤{圖:A} \end{小頁} \begin{minipage}[t]{0.5\linewidth} \定心 \textcolor{藍色}{\rule{5cm}{8cm}} \標題{B} \標籤{圖: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}
如果沒有,請發佈您到目前為止用來解決問題的程式碼。
此外,這關聯可能會有幫助。