在两页之间插入一整页的图形

在两页之间插入一整页的图形

我的文档中有多个大的单页图表/表格,这是一篇双栏会议论文。到目前为止,我把这些图表/表格放在文档的末尾。现在我已经完成了草稿,我想将这些图表/表格插入到适当的位置,而不会干扰其余页面的布局。现在当我插入它们时,部分会中断,并产生大量空白。有没有办法插入单页图表/表格而不干扰其他页面的布局?我最省力的代码是这个

\documentclass[journal]{IEEEtran}
\usepackage[demo]{graphicx}
\usepackage{wrapfig}
\setlength{\parindent}{0pt}
\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{blindtext}
\usepackage{array}
\usepackage{booktabs}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{caption}
\begin{document}
%########################## works with both lipsum and blindtext AND real text.
\section{Dummy 1}
\lipsum[1-3]
\section{Dummy 2}
\textcolor{red}{Hello again \lipsum[3-6] and again}
\section{Dummy 3}
\textcolor{purple}{Hello again \lipsum[7-14] and again}
\subsection{Dummy 3a}
\textcolor{brown}{Hello again \lipsum[15-17] and again}
%\blindtext[1]



\newcommand{\dummyfigure}{\tikz \fill [NavyBlue] (0,0) rectangle node [black] {Figure} (2,2);}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}


    \begin{table*}
        \centering
        \begin{tabular}{cM{40mm}M{40mm}M{40mm}M{40mm}}
            \toprule
            Nr. & Case 1 & Case 2 & Case 3 & Case 4 \\
            \midrule
            \rotatebox[origin=c]{90}{Parameter 1} & \dummyfigure \caption*{(a)}\label{a} & \dummyfigure \caption*{(b)}\label{b} & \dummyfigure  \caption*{(c)}\label{c}& \dummyfigure \caption*{(d)}\label{d}\\
            \rotatebox[origin=c]{90}{Parameter 2} & \dummyfigure \caption*{(e)}\label{e} & \dummyfigure \caption*{(f)}\label{f} & \dummyfigure \caption*{(g)}\label{g} & \dummyfigure \caption*{(h)}\label{h} \\
            \rotatebox[origin=c]{90}{Parameter 3} & \dummyfigure \caption*{(i)}\label{i} & \dummyfigure \caption*{(j)}\label{j} & \dummyfigure \caption*{(k)}\label{k} & \dummyfigure \caption*{(l)}\label{l}\\
            \bottomrule
        \end{tabular}
        \caption{Table of figures}
        \label{tbl:table_of_figures}
    \end{table*}


\end{document}

我想将第 3 页的图表移到第 1 页和第 2 页之间。请指点。

答案1

在文档中插入表格(之前\section{Dummy 3},表格无法容纳在页面#1的剩余空间中,因此将转到页面#2),然后添加垂直空间以填充页面的剩余部分。

d

请注意,如果您删除从 到 \centering 内部\label的所有内容table*(但不包括\vspace),您将得到空白页#2。

\documentclass[journal]{IEEEtran}
\usepackage[demo]{graphicx}
\usepackage{wrapfig}
\setlength{\parindent}{0pt}
%\usepackage{xcolor}
\usepackage{lipsum}
\usepackage{blindtext}
\usepackage{array}
\usepackage{booktabs}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usepackage{caption}

\newcommand{\dummyfigure}{\tikz \fill [NavyBlue] (0,0) rectangle node [black] {Figure} (2,2);}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}

\begin{document}
    %########################## works with both lipsum and blindtext AND real text.

    \section{Dummy 1}
    \lipsum[1-3]
    
    \section{Dummy 2}
    \textcolor{red}{Hello again \lipsum[3-6] and again} 

    \begin{table*}
        \centering
        \begin{tabular}{cM{40mm}M{40mm}M{40mm}M{40mm}}
            \toprule
            Nr. & Case 1 & Case 2 & Case 3 & Case 4 \\
            \midrule
            \rotatebox[origin=c]{90}{Parameter 1} & \dummyfigure \caption*{(a)}\label{a} & \dummyfigure \caption*{(b)}\label{b} & \dummyfigure  \caption*{(c)}\label{c}& \dummyfigure \caption*{(d)}\label{d}\\
            \rotatebox[origin=c]{90}{Parameter 2} & \dummyfigure \caption*{(e)}\label{e} & \dummyfigure \caption*{(f)}\label{f} & \dummyfigure \caption*{(g)}\label{g} & \dummyfigure \caption*{(h)}\label{h} \\
            \rotatebox[origin=c]{90}{Parameter 3} & \dummyfigure \caption*{(i)}\label{i} & \dummyfigure \caption*{(j)}\label{j} & \dummyfigure \caption*{(k)}\label{k} & \dummyfigure \caption*{(l)}\label{l}\\
            \bottomrule
        \end{tabular}
        \caption{Table of figures}
        \label{tbl:table_of_figures}
        \vspace{\textheight}    % fill the remainig space of the page               
    \end{table*}

    \section{Dummy 3}
    \textcolor{purple}{Hello again \lipsum[7-14] and again}
    
    \subsection{Dummy 3a}
    \textcolor{brown}{Hello again \lipsum[15-17] and again}
    %\blindtext[1]
    
\end{document}

相关内容