LaTeX 在文本之前命令 table 即使在代码中 table 在文本之后。为什么?
LaTeX orders table before text even if in the code the table is after text. Why?
此代码:
\subsection*{4.1 1NF}
No, this table is not in 1NF as column Info can and on multiple rows hold multiple values. 1NF Variation would be:
\par
\begin{table}[]
\begin{tabular}{|l|l|l|l|l|l|}
\hline
{\ul \textbf{Student\_ID}} & \textbf{First Name} & \textbf{Last Name} & \textbf{Course} & \textbf{Credits} & \textbf{Grade} \ \hline
1 & Adam & Brown & Databases & 5 & 8 \ \hline
1 & Adam & Brown & Algebra & 3 & 7 \ \hline
1 & Adam & Brown & Algorithms & 5 & 9 \ \hline
2 & Felicia & Green & Algebra & 3 & 10 \ \hline
2 & Felicia & Green & Programming & 5 & 6 \ \hline
3 & Mary & Grey & Databases & 5 & 9 \ \hline
3 & Mary & Grey & Algorithms & 5 & 7 \ \hline
3 & Mary & Grey & Web & 3 & 10 \ \hline
1 & Adam & Brown & Physics & 3 & 10 \ \hline
\end{tabular}
\end{table}
产生这个结果:
Rednder of the LaTeX code above
但我需要table在正文之后。
谁能告诉我我做错了什么?
您缺少浮动说明符,例如允许 table [h]
ere、[t]
op、[b]
ottom 或单独的 [p]
age:
\begin{table}[htbp]
此代码:
\subsection*{4.1 1NF}
No, this table is not in 1NF as column Info can and on multiple rows hold multiple values. 1NF Variation would be:
\par
\begin{table}[]
\begin{tabular}{|l|l|l|l|l|l|}
\hline
{\ul \textbf{Student\_ID}} & \textbf{First Name} & \textbf{Last Name} & \textbf{Course} & \textbf{Credits} & \textbf{Grade} \ \hline
1 & Adam & Brown & Databases & 5 & 8 \ \hline
1 & Adam & Brown & Algebra & 3 & 7 \ \hline
1 & Adam & Brown & Algorithms & 5 & 9 \ \hline
2 & Felicia & Green & Algebra & 3 & 10 \ \hline
2 & Felicia & Green & Programming & 5 & 6 \ \hline
3 & Mary & Grey & Databases & 5 & 9 \ \hline
3 & Mary & Grey & Algorithms & 5 & 7 \ \hline
3 & Mary & Grey & Web & 3 & 10 \ \hline
1 & Adam & Brown & Physics & 3 & 10 \ \hline
\end{tabular}
\end{table}
产生这个结果:
Rednder of the LaTeX code above
但我需要table在正文之后。
谁能告诉我我做错了什么?
您缺少浮动说明符,例如允许 table [h]
ere、[t]
op、[b]
ottom 或单独的 [p]
age:
\begin{table}[htbp]