## LaTeX forum ⇒ TeXworks ⇒ Inquire about Underfull \hbox

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\DeclareUnicodeCharacter{202F}{\,}

\begin{document}
\title{Problem Set 8 Notes}
\author{Yao Zhao \\ University of Wisconsin-Madison}
\maketitle

Some students say there are a lot of concepts. It is true. But these concepts also have very close relationships with each other.

\section{Marginal, Average, Total + *}
I denote * here, which means * can be any words and the relatipnships among these three concepts always hold the same. For example, you may see marginal / average / total + product / cost / revenue / profit. All of these concepts have economic explanations. For example, you can refer to my Problem Set 6 Note in Canvas to check the ecnomic meanings of marginal / average / total product.   \\

Here I am focusing on their relationship mathematically. Specifically, given one function,how to derive the other two concepts?\\

LaTeX gives me such information. I don't understand.

Underfull \hbox (badness 10000) in paragraph at lines 18--19
Underfull \hbox (badness 10000) in paragraph at lines 20--21

LaTeXguide.org • LaTeX-Cookbook.net

Stefan Kottwitz
Posts: 9880
Joined: Mon Mar 10, 2008 9:44 pm

LaTeX does justification of text lines, to get a straight left and right margin. You used \\ to end a line, so that line is "underfull" and LaTeX issues a warning.

Using \\ for ending a line is usually not good. I would only use \\ to end lines in tabular, array, align or other multi-line environments, but never for normal text. Normal text has paragraph breaks (done by an empty line), but not line breaks plus paragraph breaks. Remove the \\ at the end of lines.

Stefan

yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

I see. I still have 2 questions about paragraph breaks.

1st question: the effect of an empty line is totally the same as the effect of several empty lines. Right?

2nd question: what if I want to have an empty line space between two paragraphs?

Johannes_B
Site Moderator
Posts: 4183
Joined: Thu Nov 01, 2012 4:08 pm

You are right, you can put as many blank lines as you want. For TeX, it is just one paragraph break.

If you want to have a blank line between paragraphs, use package parskip.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Stefan Kottwitz
Posts: 9880
Joined: Mon Mar 10, 2008 9:44 pm

It's done this way:

\usepackage{parskip}

And remove the \\ at line ends.

So, full example:

\documentclass{article}
\usepackage{parskip}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\DeclareUnicodeCharacter{202F}{\,}

\begin{document}
\title{Problem Set 8 Notes}
\author{Yao Zhao \\ University of Wisconsin-Madison}
\maketitle

Some students say there are a lot of concepts. It is true. But these concepts also have very close relationships with each other.

\section{Marginal, Average, Total + *}
I denote * here, which means * can be any words and the relatipnships among these three concepts always hold the same. For example, you may see marginal / average / total + product / cost / revenue / profit. All of these concepts have economic explanations. For example, you can refer to my Problem Set 6 Note in Canvas to check the ecnomic meanings of marginal / average / total product.

Here I am focusing on their relationship mathematically. Specifically, given one function,how to derive the other two concepts?
\end{document}

Stefan