浮动表

浮动表

表格绘制在我正在创建的文档中的其他内容之上。

我尝试了一系列命令来尝试具体定位表格,并将表格放在页面的底部,但这些命令不会改变位置。

我试过了:

[h]这里, [h!]这里, [b]底部, [!b]底部, [!bp]底部页面,, [htbp][htp]

我应该使用什么命令来分离表格和图形,以便它们正确显示?或者可能是可以处理浮动环境中对象放置的其他包?

这是一份 2 列格式的文档。图 1 绘制在表 1 的顶部。我认为表 1 太长,所以它溢出到了第 ​​2 列。理想情况下,我希望表 1 位于引用文档内容的页面底部。

\documentclass[fleqn,usenatbib]{mnras}
\usepackage{graphicx}   % Including figure files
\usepackage{amsmath}    % Advanced maths commands
\usepackage{amssymb}    % Extra maths symbols
\usepackage{dblfloatfix}

% Figure_1
\begin{figure} 
    % To include a figure from a file named example.*
    % Allowable file formats are eps or ps if compiling using latex
    % or pdf, png, jpg if compiling using pdflatex
    \includegraphics[width=\columnwidth]{Figure_1.png}
    \caption{Absolute magnitude vs. semimajor axis for (1839) Ragazza, (2373) Immo, (2386) Nikonov, (2521) Heidi and (3860) Plovdiv. Asteroids belonging to the Gefion family from Nesvorny (2012) are depicted as gray circles. As a reference, asteroid (1272) Gefion is also included and depicted with a black circle. The location of the 5:2 mean motion resonance is represented by a vertical dashed line.}
    \label{fig:example_figure}
\end{figure}

% Table 1
\begin{table}
    \centering
    \caption{Observational circumstances for the asteroids observed for this campaign.}
    \label{tab:example_table}
    \begin{tabular}{|lccccc|} % six columns, alignment for each
        \hline
        Asteroid Target & Observation Date UTC (GMT) & Solar Analog Star & Airmass & Phase Angle (degrees) & Heliocentric distance (AU)\\
        \hline
        (1839) Ragazza & 2014/11/24 17:00:00 & SAO 93936 & 1.031 & 21.6 & 2.551\\
        (2373) Immo & 2014/09/23 23:00:00 & SAO 93936 & 1.345 & 23.6 & 2.505\\
        (2386) Nikonov & 2015/01/17 23:00:00 & SAO 120107 & 1.087 & 17.0 & 3.162\\
        (2521) Heidi & 2014/09/04 10:00:00 & SAO 75021 & 1.011 & 15.6 & 3.013\\
        (3860) Plovdiv & 2015/09/22 17:00:00 & SAO 93936 & 1.322 & 22.8 & 2.384\\
        \hline
    \end{tabular}
\end{table}

\end{document}

答案1

来自mnras 用户指南

LATEX 浮动放置命令[htbp]被有意禁用。出版商将在制作过程中调整图表和表格的布局,因此作者不必担心放置问题,以免失望和浪费精力。

只需将 LATEX 代码放置在文本中第一次提及图形或表格的位置附近,并将确切位置留给出版商。默认情况下,图形或表格将占据页面的一列。要生成覆盖两列的更宽版本,请使用 figure*table*环境。

相关内容