使用 Latex 的表格显示在表格底部

使用 Latex 的表格显示在表格底部

尽管指定表格应显示其在代码中的位置,\begin{table}[ht]但它显示在文档底部。我在 overleaf 中使用 Latex。

以下是我的尝试:

\begin{table}[h!]
\begin{minipage}{\textwidth}
    \centering
    \caption{Example of profit developments}
    \label{tab:table3}
    \begin{tabular}{llrrrrr}
    \toprule
    & & \multicolumn{1}{c}{} & \multicolumn{2}{c}{Case 1} & \multicolumn{2}{c}{Case 2} \\
    \cmidrule(lr){4-5} \cmidrule(lr){6-7}
    & & \multicolumn{1}{c}{} & \multicolumn{2}{c}{\begin{tabular}{@{}c@{}}Constant\\ mark-up assumption\end{tabular}} & \multicolumn{2}{c}{{\begin{tabular}{@{}c@{}}Increasing\\ mark-up assumption\end{tabular}}} \\
    \cmidrule(lr){2-7}
    & {\begin{tabular}{@{}c@{}}National\\Accounts Indicators\end{tabular}} & {\begin{tabular}{@{}c@{}}Initial Period\\ T0\end{tabular}} & T1 & {\begin{tabular}{@{}c@{}}\%Change from\\ T0 to T1\end{tabular}} & T1 & {\begin{tabular}{@{}c@{}}\%Change from\\ T0 to T1\end{tabular}} \\
    \cmidrule(lr){2-7}
    (1) & Mark-up &20\%&20\% &0\% &15\% &-25\% \\
    \cmidrule(lr){2-7}
    (2) & Real units & & & & & \\
    \cmidrule(lr){2-7}
    (3) & Intermediate costs & & & & & \\
    \cmidrule(lr){2-7}
    (4) & Labour costs & & & & & \\
    \cmidrule(lr){2-7}
    (5) & Total costs = (3) + (4) & & & & & \\
    \cmidrule(lr){2-7}
    (6) & Profits & & & & & \\
    \cmidrule(lr){2-7}
    (7) & Nominal gross output = (5) + (6) & & & & & \\
    \cmidrule(lr){2-7}
    (8) & Unit profits = (6) / (2) & & & & & \\
    \cmidrule(lr){2-7}
    (9) & Price = (7) / (2) & & & & & \\
    \cmidrule(lr){2-7}
    (10) & Profit share = (6) / [(6) + (4)] & & & & & \\
    \bottomrule
    \end{tabular}
      \\Source: US Bureau of Economic Analysis
      \end{minipage}
\end{table}

相关内容