Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

\documentclass{ctexart}
\usepackage{color}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{epstopdf}
\hfuzz=\maxdimen


$(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}

I add the code:

\tolerance=10000
\hbadness=10000
\begin{document}

However,fail to solve it!

share|improve this question
1  
This is an exact duplicate of your question a few hours earlier. Please do not do that. If you need to clarify a question edit the question. –  David Carlisle Dec 18 '13 at 9:33
    
I've duped the older question to this one: as David says, please don't simply repeat the same question. –  Joseph Wright Dec 18 '13 at 11:16
    
@Joseph Wright♦ ,Oh thanks for your suggestion,I see! –  auto Dec 20 '13 at 4:43
    
@David Carlisle,Ok,I see and thanks sincerely! –  auto Dec 20 '13 at 4:43

2 Answers 2

up vote 11 down vote accepted

A paragraph should be ended by leaving a blank line in the input, not with ~\\. What happens is that an empty line is produced and it's underfull by construction, because it has nothing in it.

If you really need a blank line between two paragraph, use \bigskip (better yet \medskip) between them:

... this is the end of a paragraph.

\bigskip % or \medskip

Here a new one starts ...

If you want a vertical space between all paragraphs, consider loading instead the parskip package (look at its documentation). Note that “leaving blank lines” here and there is a practice coming from the usage of word processors, where it's very easy to do it (and thus spoil the document's appearance).

For your formulas, you should use an alignment environment; if you want (almost) flush left equations, there's the option fleqn:

\documentclass[fleqn]{article}
\usepackage{amsmath}
\usepackage{lipsum} % just for the example
\begin{document}

\lipsum*[2]
\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*}
\lipsum*[3]

\end{document}

enter image description here

Warning

Use none of the following commands:

\hfuzz=\maxdimen
\tolerance=10000
\hbadness=10000

With them you're basically saying that you don't care about getting good paragraphs. Maybe you don't care, but your readers do.

share|improve this answer

The definition of ~ is \penalty \@M \. This means that there is a space printed, and a penalty of \@M, or 10000, is assessed for breaking the line after the space. But you have forced TeX to break the line at that point with \\, so you are guaranteeing a warning.

share|improve this answer
    
,How to avoid the warnnig and I want to yield a black line? –  auto Dec 18 '13 at 4:39
    
@karlkoeller,Thanks,my sincerely friend! –  auto Dec 18 '13 at 7:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.