MWE 中的圖像顯示在圖像之後,但實際文件中沒有顯示文本

MWE 中的圖像顯示在圖像之後,但實際文件中沒有顯示文本

我想在圖像後面顯示一些文字。因此,根據文檔,我製作了一個運作良好的 MWE:

 \documentclass[notitlepage]{report}
\usepackage{graphicx}
\begin{document}


At t = 90.5, $\delta_{1} = 0.131$, $\delta_{2}=0.872$, and $x[0] = 0.139$ we notice interesting behavior for the values of $x{t}$.
\begin{figure}[ht!]
  \includegraphics[width=\linewidth, scale=0.5]{interesting.png}
  \caption{A change in sign of $\frac{dx}{dt}$}
  \label{fig: Modeled System}
\end{figure}

$\frac{dx}{dt}$ appears to undergo a sign change resulting in $x[t]$ losing value before regaining value to the point that at some point $t$, $x[t] > x[0]$
\end{document}

然後我在實際的論文中嘗試了它,並得到了這個:1]在此輸入影像描述

答案1

與 MWE 不同,在您的真實文件中,頁面上沒有足夠的空間。如果文字必須出現在圖像之後,請放置一個障礙物以避免它飄走:

 \documentclass[notitlepage]{report}
\usepackage{graphicx}

\usepackage{placeins}

\begin{document}


At t = 90.5, $\delta_{1} = 0.131$, $\delta_{2}=0.872$, and $x[0] = 0.139$ we notice interesting behavior for the values of $x{t}$.
\begin{figure}[ht!]
  \includegraphics[width=\linewidth, scale=0.5]{interesting.png}
  \caption{A change in sign of $\frac{dx}{dt}$}
  \label{fig: Modeled System}
\end{figure}

\FloatBarrier

$\frac{dx}{dt}$ appears to undergo a sign change resulting in $x[t]$ losing value before regaining value to the point that at some point $t$, $x[t] > x[0]$
\end{document}

相關內容