我正在尝试将图像放入文本中,但我不知道如何将其放置在正确的位置。以下是此页面的代码:
\subsection{Over vector fields}
For this subsection, we will assume a vector field $F=\big\langle P, Q, R \big\langle$ with differentiable components and not necessarelly conservative.
\begin{wrapfigure}{r}{0.3\textwidth}
\centering
\includegraphics[width=.98\linewidth]{image001.png}
\caption{A positively oriented surface}
\end{wrapfigure}
Just as parametric curves have a direction, parametric surfaces have an orientation. At any point, any surface with 2 sides has 2 normal vectors, $\N$ and $-\N$. A surface $S$ with boundary curve $\partial S$ has positive orientation if the normal vectors and $\partial S$ follow the right-hand rule on the right, and if the surface $S$ doesn't have a boundary curve (i.e. it is itself the boundary of a solid) it has positive orientation if the normal vectors point away from the solid it defines. If the normal vectors don\t follow these definition, the surface is said to have negative orientation.
我希望image
位于 上top left corner
,并且第一句话不环绕图像。我以前使用过基本相同的代码行来包含图像,效果很好,我不知道发生了什么。
答案1
您可以将 wrapfig 插入到段落中间,但必须在行尾(而不是句子尾)插入。否则,您还不如使用两个段落。
\documentclass{article}
\usepackage{graphicx}
\usepackage{wrapfig}
\begin{document}
\setcounter{section}{2}%
\subsection{Over vector fields}
For this subsection, we will assume a vector field $F=\big\langle P, Q, R \big\langle$ with differen-
\begin{wrapfigure}{l}{0.3\textwidth}
\centering
\includegraphics[width=.98\linewidth]{example-image}
\caption{A positively oriented surface}
\end{wrapfigure}
tiable components and not necessarelly conservative.
Just as parametric curves have a direction, parametric surfaces have an orientation. At any point, any surface with 2 sides has 2 normal vectors, $N$ and $-N$. A surface $S$ with boundary curve $\partial S$ has positive orientation if the normal vectors and $\partial S$ follow the right-hand rule on the right, and if the surface $S$ doesn't have a boundary curve (i.e. it is itself the boundary of a solid) it has positive orientation if the normal vectors point away from the solid it defines. If the normal vectors don\t follow these definition, the surface is said to have negative orientation
\end{document}
答案2
可以使用两个小页面来解决此问题。缺点是,您必须手动“剪切”图像旁边的文本,然后将其余部分写在下面。
\begingroup
\parfillskip=0pt
\begin{minipage}[t]{0.48\textwidth}
\begin{figure}[H]
\centering
\includegraphics[width=1.00\textwidth]{image-a}
\caption[VZ-caption]{Caption}% \protect \footnotemark}
\label{fig:label}
\end{figure}
\end{minipage}
\hfill
\begin{minipage}[t]{0.48\textwidth}
TEXT-1
\end{minipage}
\par\endgroup
TEXT-2
\protect\footnotemark
如果您想在图片标题上添加脚注,请使用。通常很有用;)