[Tex/LaTex] Underfull \hbox (badness 10000) in paragraph at lines 106–107

warnings

Recently, LaTeX always shows

"Underfull \hbox (badness 10000) in paragraph at lines 106--107

Trial:

   \documentclass{ctexart}
   \usepackage{color}
   \usepackage{amsmath}
   \usepackage{amssymb}
   \usepackage{graphicx}
   \usepackage{epstopdf}
   \hfuzz=\maxdimen
   \tolerance=10000
   \hbadness=10000
   \begin{document}

$(A \pm  B)^{-1} \neq A^{-1} \pm B^{-1}$,$(A \pm  B)^* \neq A^* \pm B^*$~\
$|(A^*)^*|=|A|^{n^2-2 n+1}$~\
\end {document}

My question :How to revise it?

And I found the code that cotains the "~\\" and blank line always shows the warning imformation "Underfull \hbox (badness 10000) in paragraph at lines"

enter image description here

Best Answer

You really don't want to set \hfuzz etc that way or tex will produce truly unreadable documents with no warning.

  \documentclass{ctexart}
   \usepackage{color}
   \usepackage{amsmath}
   \usepackage{amssymb}
   \usepackage{graphicx}
   \usepackage{epstopdf}
%   \hfuzz=\maxdimen
%   \tolerance=10000
%   \hbadness=10000
   \begin{document}

\begin{gather*}
(A \pm  B)^{-1} \neq A^{-1} \pm B^{-1} \quad (A \pm  B)^* \neq A^* \pm B^*\\
|(A^*)^*|=|A|^{n^2-2 n+1}
\end{gather*}

\end {document}