當我鍵入以下程式碼時,該表出現在問題上方。我怎麼能讓它出現在問題下方?

當我鍵入以下程式碼時,該表出現在問題上方。我怎麼能讓它出現在問題下方?
\begin{question}
Calculate the reverberation time of hall of 1500 \si{m^3} volume
having a seating capacity for 120 persons when \\
(i) when the hall is empty \\ 
(ii) with full capacity audience \\
(iii) audience occupying the cushioned seats with following data:
\begin{table}
\begin{tabular}{| c | c | c |}
  \hline
  \textbf{Surface} & \textbf{Area (\si{m^2})} & \textbf{Coefficient of
    absorption (O W U)} \\
  \hline
  Plastered walls & 112 & 0.03 \\
  Wooden floor & 130 & 0.06 \\
  Plastered ceiling & 170 & 0.04 \\
  Wooden door & 20 & 0.06 \\
  \hline
  Cushioned chairs (Nos.) & 100 & 1.0 \\
  Audience (Nos.) & 120 & 4.7 \\
  \hline
\end{tabular}
\end{table}

在此輸入影像描述

答案1

table環境適用於浮動桌子。如果您不希望表格材料移動,請忽略它並僅使用tabular.

答案2

  • -environmenttable用於獲取浮動表格,如果您不希望表格浮動,則不要使用它。您可以改用簡單的center環境。

  • 如果您想要此表格的標題,請載入 -packagecaption並使用該\captionof{table}{Bla Bla}命令。表格的標題應位於表格上方。

  • 正確使用siunitx,對於數字使用\num{1e3},對於帶有單位的數字使用\SI{1500}{\cubic\meter}

  • 使用 siunitx 的 S-column 選項作為資料列,它將數字在小數點處對齊,並允許您使用該table-format選項指定格式。

  • 不要在表格中使用垂直線。booktabs提供具有適當間距的特殊線路。強烈建議使用它們(並閱讀文件)

  • 您不應該對枚舉進行硬編碼,而應使用列表環境。如果您需要自訂列表,請查看該enumitem套件。它提供了乳膠清單的高度可自訂性以及恢復舊枚舉的可能性。

您應該給出一個可編譯的範例,如下所示:

\documentclass{article}

\usepackage{exsheets}   % i assumed you used this package
\usepackage{booktabs}   % for the top/bottom/midrule commands
\usepackage{siunitx}    % use it everwhere you can and all of it's commands
\usepackage{enumitem}   % for custamisation of enumerate and other lists
\usepackage{caption}    % for the \captionof command

\begin{document}

\begin{question}
    Calculate the reverberation time of hall of \SI{1500}{\cubic\metre} volume
    having a seating capacity for 120 persons when
    \begin{enumerate}[label=(\roman*), nosep]
        \item when the hall is empty
        \item with full capacity audience
        \item audience occupying the cushioned seats with following data:
    \end{enumerate}
    \begin{center}
        \captionof{table}{Data for the Question}
        \begin{tabular}{l  S[table-format=3.0]  S[table-format=1.2]}
            \toprule
            {Surface} & {Area / \si{m^2}} & {Coefficient of absorption / O W U} \\
            \midrule
            Plastered walls         & 112 & 0.03 \\
            Wooden floor            & 130 & 0.06 \\
            Plastered ceiling       & 170 & 0.04 \\
            Wooden door             & 20  & 0.06 \\
            \midrule
            Cushioned chairs (Nos.) & 100 & 1.0 \\
            Audience (Nos.)         & 120 & 4.7 \\
            \bottomrule
        \end{tabular}
    \end{center}
\end{question}
\end{document}

輸出:

輸出

相關內容