\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[]{amsthm} %lets us use \begin{proof}
\usepackage[]{amssymb} %gives us the character \varnothing
\usepackage[fleqn]{amsmath}
\usepackage{amsfonts}
\begin{document}
\maketitle
\subsection*{2. P18. Exercise 3:}
Assume we have a fair eight-sided die with the numbers 1, 2, 3, 3, 4, 5, 5, 5 on its sides.
What is the probability that each of the numbers 1 through 5 will be rolled?
If we roll two of these dice, what is the range of possible totals of the values showing
on the two dice? What is the chance that each of the numbers in this range will be rolled?\\
1 Answer
Please test this code:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage[]{amsthm} %lets us use \begin{proof}
\usepackage[]{amssymb} %gives us the character \varnothing
\usepackage[fleqn]{amsmath}
\usepackage{amsfonts}
\title{Test}
\author{None}
\begin{document}
\maketitle
\subsection*{2. P18. Exercise 3:}
Assume we have a fair eight-sided die with the numbers 1, 2, 3, 3, 4, 5, 5, 5 on its sides.
What is the probability that each of the numbers 1 through 5 will be rolled?
If we roll two of these dice, what is the range of possible totals of the values showing
on the two dice? What is the chance that each of the numbers in this range will be rolled?\par
\noindent Test
\end{document}
Then replace \par
with \\
and compile again.
There is no warning in the first case in my version, but there is in second case.
\\
is something you have to avoid inside paragraphs of text. It is used inside tabulars or similar environments but not inside lines of text.
For more see here: https://tex.stackexchange.com/a/82666/120578
-
1It makes no sense to use \\ at the end of a paragraph. The "underfull \hbox" message is because TeX is trying to generate another line of text after the \\ but there is no text to generate. Using \\ inside a paragraph is valid, but it is rarely the best way to do whatever you are trying to do. Sep 16, 2018 at 8:28
\\` Use \par\noindent instead. Also your question has nothing to do with
bibtex'. `\\` is ok to be used inside tabular and similar environments but not to break text. Offtopic: Please consider about accepting the answer of your previous question