尽管我找到了几个类似的问题,但我仍然无法解决我的问题。需要帮助。
我只想在图片右侧放置几行文字,然后开始新的一页,后面还有新的部分。结果,不知怎的,下面的所有文字都移位了。
\subsection{Estimation of gradient}
\begin{equation}
L'(\theta) = \lim\limits_{h \to 0} \dfrac{L(\theta + h) - L(\theta)}{h} \hspace{4mm} \text{ or} \hspace{4mm}L'(\theta) = \lim\limits_{h \to 0} \dfrac{L(\theta + h/2) - L(\theta - h/2)}{h}
\end{equation}
Multivariate function
\begin{wrapfigure}{L}{0.35\textwidth}
\vspace{-10pt}
\includegraphics[width=0.33\textwidth]{olcar_L8-51}
\end{wrapfigure}
\begin{align}
\nabla L (\theta_1, \theta_2, \cdots , \theta_p ) = \left [ \frac{\partial L}{\partial \theta_1} , \frac{\partial L}{\partial \theta_2} , \cdots , \frac{\partial L}{\partial \theta_p} \right ]^T
\end{align}
Leads to \emph{Finite Difference Method}.
\newpage
\section{Finite Difference (FD) Method}
\begin{itemize}
\item Perturb the parameter vector along each axes individually and estimate the cost gradient in that direction
\begin{align}
& \theta^{i+} = [\theta^1, \cdots , \theta^{i-1} , \theta^i , \theta^{i+1} + c, \cdots , \theta^p] \notag \\
& \theta^{i-} = [\theta^1, \cdots , \theta^{i-1} , \theta^i , \theta^{i+1} - c, \cdots , \theta^p]
\end{align}
\begin{align*}
[\nabla J (\theta)]_i = \frac{J(\theta^{i+}) - J(\theta^{i-})}{2c}
\end{align*}
\item This is Kiefer-Wolfowitz (KW) Method
\item Needs $p+1$ or $2p$ measurements for computing gradient vector in one point
\end{itemize}
我明白了:
答案1
似乎如果你在 wrapfigure 后面加上 math,它就会移动后面的所有文本。如果你添加哪怕一行文本,它都能解决问题。
答案2
指定 wrapfigure 选项 [8] 中的行数,必要时可调整行数
\begin{wrapfigure}[8]{L}{0.35\textwidth}
\vspace{-10pt}
\includegraphics[width=0.33\textwidth]{olcar_L8-51}
\end{wrapfigure}