乳胶:图形无序排列(Latex: Figure positioned out of order)

系统教程 行业动态 更新时间:2024-06-14 16:58:30
乳胶:图形无序排列(Latex: Figure positioned out of order)

我有以下乳胶代码:

% 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.

更多推荐

本文发布于:2023-04-15 03:34:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/dzcp/206ea681c62560c5a215a2a81688fda8.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:乳胶   排列   图形   Latex   positioned

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!