尽管在向导中使用了表格,但段落中的 \hbox(不良率 10000)仍未满

尽管在向导中使用了表格,但段落中的 \hbox(不良率 10000)仍未满

我读过关于此问题的其他主题,但我真的不明白为什么我得到的是这个错误,因为它是由向导而不是手工创建的。我有

\documentclass[a4paper,11pt]{article}
\usepackage{graphicx}
\usepackage{framed}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{array}
\usepackage{enumitem}
\usepackage{amsthm}
\newtheorem*{eg}{Example}

\begin{document}
\begin{itemize}
\item[\textbf{4.}]
\end{itemize}
Let $A=[0,1] \setminus \mathbb{Q}$.\\
\\
\begin{tabular}{|l||l|l|l|l|l|}
\hline 
space $X$ & $A^o$ & $\overline{A}$ & $\partial A$ & Is $A$ open? & Is $A$ closed? \\ 
\hline 
$\mathbb{R}$ & $\varnothing$ & $[0,1]$ & $[0,1]$ & No & No \\ 
\hline 
$\mathbb{R} \setminus \mathbb{Q}$ & $A$ & $A$ & $\varnothing$ & Yes & Yes \\ 
\hline 
\end{tabular} \\
\\
For $X = \mathbb{R}$, $\partial A = \overline{A} \cap \overline{\mathbb{R} \setminus A} = [0,1] \cap \mathbb{R} = [0,1]$.\\
For $X = \mathbb{R} \setminus \mathbb{Q}$, $\partial A = A \cap ((\mathbb{R} \setminus \mathbb{Q})_{<0} \cup (\mathbb{R} \setminus \mathbb{Q})_{>1}) = \varnothing$.

\begin{itemize}
\item[\textbf{5.}]
\end{itemize}
Proofs are in the notes.

\end{document}

答案1

水平盒未满警告是由于

\\
\\

因为这会强制两次换行,而中间没有任何内容,所以生成的行“未满”并且极其糟糕(糟糕程度 10000 是 TeX 可以报告的最糟糕程度)。

您应该避免在\\其用途之外的所有用途来结束表格行。

这没有警告:

\documentclass[a4paper,11pt]{article}
\usepackage{graphicx}
\usepackage{framed}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsfonts}
\usepackage{mathrsfs}
\usepackage{array}
\usepackage{enumitem}
\usepackage{amsthm}
\newtheorem*{eg}{Example}

\begin{document}

\setcounter{section}{3}
\section{}
Let $A=[0,1] \setminus \mathbb{Q}$.

\begin{tabular}{|l||l|l|l|l|l|}
\hline 
space $X$ & $A^o$ & $\overline{A}$ & $\partial A$ & Is $A$ open? & Is $A$ closed? \\ 
\hline 
$\mathbb{R}$ & $\varnothing$ & $[0,1]$ & $[0,1]$ & No & No \\ 
\hline 
$\mathbb{R} \setminus \mathbb{Q}$ & $A$ & $A$ & $\varnothing$ & Yes & Yes \\ 
\hline 
\end{tabular} 

For $X = \mathbb{R}$, $\partial A = \overline{A} \cap \overline{\mathbb{R} \setminus A} = [0,1] \cap \mathbb{R} = [0,1]$.\\
For $X = \mathbb{R} \setminus \mathbb{Q}$, $\partial A = A \cap ((\mathbb{R} \setminus \mathbb{Q})_{<0} \cup (\mathbb{R} \setminus \mathbb{Q})_{>1}) = \varnothing$.

\section{}
Proofs are in the notes.

\end{document}

相关内容