禁用浮动 \段落标题级别

禁用浮动 \段落标题级别

即使我将长表放在所有标题之后,它也会出现在 \paragraph 标题之前。

我怎样才能改变这一点?

梅威瑟:

\documentclass{scrartcl}

\usepackage{longtable}
\usepackage{booktabs}
\usepackage{hyperref}       



\begin{document}

\section{Section}
\subsection{Subsection}
\subsubsection{Subsubsection}
\paragraph{Paragraph}

\begin{longtable}[]{@{}ll@{}}
\toprule
\endhead
\begin{minipage}[t]{0.66\columnwidth}\raggedright
Inspected Web Service\strut
\end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
\url{http://europa.eu}\strut
\end{minipage}\tabularnewline
\begin{minipage}[t]{0.66\columnwidth}\raggedright
Start Time\strut
\end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
2018-06-19 10:22:56 +0200\strut
\end{minipage}\tabularnewline
\begin{minipage}[t]{0.66\columnwidth}\raggedright
End Time\strut
\end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
2018-06-19 10:23:49 +0200\strut
\end{minipage}\tabularnewline
\bottomrule
\end{longtable}

Here some Text

\end{document}

答案1

段落中应该有一些文字。

\documentclass{scrartcl}

\usepackage{longtable}
\usepackage{booktabs}
\usepackage{hyperref}       



\begin{document}



    \section{Section}
    \subsection{Subsection}
    \subsubsection{Subsubsection}
    \paragraph{Some paragraph} Some should be here

    \begin{longtable}[]{@{}ll@{}}
        \toprule
        \endhead
        \begin{minipage}[t]{0.66\columnwidth}\raggedright
            Inspected Web Service\strut
        \end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
            \url{http://europa.eu}\strut
        \end{minipage}\tabularnewline
        \begin{minipage}[t]{0.66\columnwidth}\raggedright
            Start Time\strut
        \end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
            2018-06-19 10:22:56 +0200\strut
        \end{minipage}\tabularnewline
        \begin{minipage}[t]{0.66\columnwidth}\raggedright
            End Time\strut
        \end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
            2018-06-19 10:23:49 +0200\strut
        \end{minipage}\tabularnewline
        \bottomrule
    \end{longtable}


    \paragraph{Some paragraph}\mbox{}

    \begin{longtable}[]{@{}ll@{}}
        \toprule
        \endhead
        \begin{minipage}[t]{0.66\columnwidth}\raggedright
            Inspected Web Service\strut
        \end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
            \url{http://europa.eu}\strut
        \end{minipage}\tabularnewline
        \begin{minipage}[t]{0.66\columnwidth}\raggedright
            Start Time\strut
        \end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
            2018-06-19 10:22:56 +0200\strut
        \end{minipage}\tabularnewline
        \begin{minipage}[t]{0.66\columnwidth}\raggedright
            End Time\strut
        \end{minipage} & \begin{minipage}[t]{0.28\columnwidth}\raggedright
            2018-06-19 10:23:49 +0200\strut
        \end{minipage}\tabularnewline
        \bottomrule
    \end{longtable}


    Here some Text

\end{document}

如果您不想要任何文本,只需输入\mbox{}一个空行即可。

输出:

在此处输入图片描述

相关内容