## LaTeX forum ⇒ Text Formatting ⇒ \neg causes overfull \hbox

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Gulzt
Posts: 4
Joined: Tue Feb 02, 2016 2:47 pm

### \neg causes overfull \hbox

Whenever I use the \neg command I get this badbox warning:
Overfull \hbox (6.03711pt too wide) in paragraph

For example, this code works fine:
\documentclass[12pt, dutch]{report} % to allow chapter tags\usepackage{mathtools} % use the floor and ceil operators.\usepackage{amsmath} % use of the case function\begin{document}$U$\end{document}

But this causes an error:
$\neg U$

What can I do to remove the badbox error?

Placing the \neg in an inline math function like so: $\neg U$ works fine however. Though this is not what I seek for in this case. The full function I am writing down is much too big for that.

Tags:

Johannes_B
Site Moderator
Posts: 4166
Joined: Thu Nov 01, 2012 4:08 pm
Badbox warning are worth looking into matter more deeply, but they are not errors.
Your example cannot give the warning, it is simply impossible. A box is overfull if the contents is spilling over the boxes edges, for example the content of a line into the margin.

\documentclass[12pt, dutch]{report}\usepackage{mathtools}% already loads amsmath\begin{document}$\neg U$\end{document}

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: 9581
Joined: Mon Mar 10, 2008 9:44 pm
Same for me - no error, no warning.

Please post a minimal example which produces the problem. This may include your whole function and your margin settings, or your complete preamble. Post a complete problem example, which shows the problem but anything unrelated can be removed. And click on Johannes' link.

Stefan