Here is my MWE. I have 4 files here: My analysis00.tex, my preamble.tex (well part of that file anyway), my toc.tex, and my chapter00.tex (well part of that as well). I have left out my chapter01.tex as it is irrelevant for this discussion.
I just edited this to add everything in one document and upon doing so, I still am getting the same error message.
\documentclass[a4paper,12pt,twoside]{book}
\usepackage[left=2.50cm,right=2.50cm,top=2.50cm,bottom=2.75cm] {geometry}
\usepackage{amsmath,amssymb,amscd,amsbsy,array,color}
\usepackage{fancyhdr,framed,latexsym,multicol,pstricks,slashed,xcolor}
\usepackage{picture}
\usepackage{indentfirst}
\usepackage{enumitem}
\usepackage{hyperref}
\hypersetup{
colorlinks,
citecolor=black,
filecolor=black,
linkcolor=black,
urlcolor=black
}
\usepackage{tikz}
\usepackage{subfig}
\usetikzlibrary{calc,positioning,shapes.geometric}
\setenumerate[1]{label=(\alph*)}
\setenumerate[2]{label=(\roman*)}
\usepackage[amsmath,framed,thmmarks]{ntheorem}
\usepackage{changes}
\usepackage{tikz}
\usepackage{tikz-cd}
\usepackage{subfig}
\usepackage{float}
\usepackage{titlesec}
\usepackage[Conny]{fncychap}
\pagestyle{fancy}
\setcounter{chapter}{-1}
\renewcommand{\chaptermark}[1]{\markboth{#1}{}}
\renewcommand{\sectionmark}[1]{\markright{#1}{}}
\lhead{\leftmark}
\rhead{\rightmark}
\cfoot{\thepage}
\setlength{\headheight}{15pt}
\renewcommand{\thesection}{\arabic{section}}
\titleformat{\section}[frame]
{\normalfont}
{\filcenter
\footnotesize
\enspace SECTION \thesection\enspace}
{8pt}
{\Large\bfseries\filcenter}
\newtheorem{Theorem}{Theorem}
\theoremclass{Theorem}
\theoremstyle{break}
\theoremsymbol{\rule{1ex}{1ex}}
\theoreminframepreskip{0pt}
\theoreminframepostskip{0pt}
\theoremframepreskip{1cm}
\theoremframepostskip{1cm}
\theoremstyle{break}
\def\theoremframecommand{%
\psshadowbox[fillstyle=solid,fillcolor=red,linecolor=black]}
\newshadedtheorem{proof}{Proof}
\begin{document}
\chapter{Logic, Set Theory, Functions, and Relations.}
\begin{proof}
The proof makes use of the following truth table.
$\,$
\begin{table}[h!]
\centering
\begin{tabular}{|c|c||c|c|c||c|c|}
\hline
$P$ & $Q$ & $P \Rightarrow Q$ & $\neg P$ & $\neg Q$ & $(\neg Q) \Rightarrow (\neg P)$ & $Q \Rightarrow P$ \\
\hline
$T$ & $T$ & $T$ & $F$ & $F$ & $T$ & $T$ \\
\hline
$T$ & $F$ & $F$ & $F$ & $T$ & $F$ & $T$ \\
\hline
$F$ & $T$ & $T$ & $T$ & $F$& $T$ & $F$ \\
\hline
$F$ & $F$ & $T$ & $T$ & $T$ & $T$ & $T$ \\
\hline
\end{tabular}
\caption{\emph{Truth Table for $P \Rightarrow Q$, $(\neg Q) \Rightarrow (\neg P),$ and $Q \Rightarrow P.$}}
\end{table}
\end{proof}
\end{document}
Whenever I compile, I get the error:
Float(s) lost. lnclude{chapter0}
Not sure what to do here. Thanks.
proof
to be some kind of boxed environment that can not contain a float. Since you refer to the table in the running text as "the following table" it shod not be in atable
environment at all, as the only reason for usingtable
is to allow latex to move the content to help with page breaking. Just usetabular
directly.etex
unless you have an old (pre 2015) latex, and\center
should be\centering
chapter00
rather thanchapter0
. if that's really its name, then it wouldn't be found.