浮点数在表中丢失

浮点数在表中丢失

这是我的 MWE。我这里有 4 个文件:我的分析00.tex, 我的序言.tex(无论如何,这也是该文件的一部分),我的目录, 和我的章节00.tex(当然也是其中的一部分)。我遗漏了我的第一章.tex因为它与本次讨论无关。

我刚刚编辑了这个以将所有内容添加到一个文档中这样做之后,我仍然收到相同的错误消息。

\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}  

每当我编译时,都会出现错误:

Float(s) lost. lnclude{chapter0}

不知道该做什么。谢谢。

答案1

我制作了一个更合理的示例文档,然后注释掉了您不想要的部分,因为您显然不想要这里的浮动表格。

在此处输入图片描述

\documentclass[a4paper,12pt,twoside]{book}
\usepackage{amsmath,framed,pstricks}
\usepackage[amsmath,framed,thmmarks]{ntheorem}
\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}

\begin{proof}
  The proof makes use of the following truth table.
% $\,$ ??? :-) 
%      \begin{table}[h!]
%  \centering
\begin{center}
      \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}
\end{center}

%\caption
{\emph{Truth Table for $P \Rightarrow Q$, $(\neg Q) \Rightarrow (\neg P),$ and $Q \implies P.$}}

%\end{table}
\end{proof}


\end{document}

相关内容