我有以下乳胶代码:
% Preamble % --- \documentclass{article} % Packages % --- \usepackage{amsmath} \usepackage{graphicx} \begin{document} \title{Electronics Equations} \author{Tyler Hilbert} \date{} \maketitle \begin{figure} \includegraphics[width=50mm]{FormulaWheel.png} \end{figure} Ohm's Law: V = I*R \bigskip Current: I = dQ/dt Voltage: V = dw/dQ Power: p = dw/dt \end{document}当我编译并创建pdf时,我得到以下结果: 我想知道的是为什么所有方程后的数字? 我把这个数字放在方程式之前,因为我在开始时想要它。 如何在文档的顶部将其与代码中的顺序中的其他元素相对应?
I have the following latex code:
% Preamble % --- \documentclass{article} % Packages % --- \usepackage{amsmath} \usepackage{graphicx} \begin{document} \title{Electronics Equations} \author{Tyler Hilbert} \date{} \maketitle \begin{figure} \includegraphics[width=50mm]{FormulaWheel.png} \end{figure} Ohm's Law: V = I*R \bigskip Current: I = dQ/dt Voltage: V = dw/dQ Power: p = dw/dt \end{document}When I compile and create a pdf I get the following result: What I am wondering is why is the figure after all the equations? I put the figure in before the equations because I wanted it at the beginning. How can I make it at the top of the document where it is relative to the other elements like in the ordering in the code?
最满意答案
您正在使用figure环境,这是一个浮动环境。 我们的想法是让乳胶找出最佳位置。 如果你不想这样, \includegraphics[width=50mm]{FormulaWheel.png}直接使用\includegraphics[width=50mm]{FormulaWheel.png} (只需删除\begin{figure}和\end{figure}行)。
你可以在这里找到有关浮子的更多细节。
You are using the figure environment, which is a float environment. The idea is to let latex figure out its optimal place. If you do not want that, than just use \includegraphics[width=50mm]{FormulaWheel.png} directly (just delete the \begin{figure} and \end{figure} lines).
You can find more details about floats here.
更多推荐
发布评论