删除突然出现的白页

删除突然出现的白页

这是我的(部分)代码:

\bibliography{biblio}{}
\bibliographystyle{plain}

\onecolumn
\begin{appendices}

\section{\\Images}

\begin{figure}[H]
    \begin{tabular}{cccccc}
        \subfloat[Car no noise]{\includegraphics[scale = 0.6]{images/car_13.jpeg}} &
        \subfloat[Car (S\&P 2\%)]{\includegraphics[scale = 0.6]{images/car_13_2.jpeg}} &
        \subfloat[Car (S\&P 2\%) de-noised]{\includegraphics[scale = 0.6]{images/car_13_2d.jpeg}} &
        \subfloat[Car (S\&P 5\%)]{\includegraphics[scale = 0.6]{images/car_13_5.jpeg}} &
        \subfloat[Car (S\&P 5\%) de-noised]{\includegraphics[scale = 0.6]{images/car_13_5d.jpeg}} &
        \subfloat[Car (S\&P 7\%)]{\includegraphics[scale = 0.6]{images/car_13_7.jpeg}} \\
        \subfloat[Car (S\&P 7\%) de-noised]{\includegraphics[scale = 0.6]{images/car_13_7_deno.jpeg}} &
        \subfloat[Car (Gauss std=15)]{\includegraphics[scale = 0.6]{images/car_13_15.jpeg}} &
        \subfloat[Car (Gauss std=15) de-noised]{\includegraphics[scale = 0.6]{images/car_13_15d.jpeg}} &
        \subfloat[Car (Gauss std=30)]{\includegraphics[scale = 0.6]{car_13_noise.jpeg}} &
        \subfloat[Car (Gauss std=30) de-noised]{\includegraphics[scale = 0.6]{car_13_de_noised.jpeg}} &
        \subfloat[Car (Gauss std=45)]{\includegraphics[scale = 0.6]{images/car_13_45.jpeg}} \\
        \subfloat[Car (Gauss std=45) de-noised]{\includegraphics[scale = 0.6]{images/car_13_45d.jpeg}} &
        \subfloat[House no noise]{\includegraphics[scale = 0.6]{images/house_902.jpeg}} &
        \subfloat[House (S\&P 2\%)]{\includegraphics[scale = 0.6]{images/house_902_2.jpeg}} &
        \subfloat[House (S\&P 2\%) de-noised]{\includegraphics[scale = 0.6]{images/house_902_2d.jpeg}} &
        \subfloat[House (S\&P 5\%)]{\includegraphics[scale = 0.6]{images/house_902_5.jpeg}} &
        \subfloat[House (S\&P 5\%) de-noised]{\includegraphics[scale = 0.6]{images/house_902_5d.jpeg}} \\
        \subfloat[House (S\&P 7\%)]{\includegraphics[scale = 0.6]{images/house_902_7.jpeg}} &
        \subfloat[House (S\&P 7\%) de-noised]{\includegraphics[scale = 0.6]{images/house_902_7d.jpeg}} &
        \subfloat[House (Gauss std=15)]{\includegraphics[scale = 0.6]{images/house_902_15.jpeg}} &
        \subfloat[House (Gauss std=15) de-noised]{\includegraphics[scale = 0.6]{images/house_902_15d.jpeg}} &
        \subfloat[House (Gauss std=30)]{\includegraphics[scale = 0.6]{house_902_noise.jpeg}} &
        \subfloat[House (Gauss std=30) de-noised]{\includegraphics[scale = 0.6]{house_902_de_noised.jpeg}} \\
        \subfloat[House (Gauss std=45)]{\includegraphics[scale = 0.6]{images/house_902_45.jpeg}} &
        \subfloat[House (Gauss std=45) de-noised]{\includegraphics[scale = 0.6]{images/house_902_45d.jpeg}} &
        \subfloat[House number no noise]{\includegraphics[scale = 0.6]{images/number_1473.jpeg}} &
        \subfloat[House number (S\&P 2\%)]{\includegraphics[scale = 0.6]{images/number_1437_2}} &
        \subfloat[House number (S\&P 2\%) de-noised]{\includegraphics[scale = 0.6]{images/number_1473_2d.jpeg}} &
        \subfloat[House number (S\&P 5\%)]{\includegraphics[scale = 0.6]{images/number_1473_5.jpeg}} \\
        \subfloat[House number (S\&P 5\%) de-noised]{\includegraphics[scale = 0.6]{images/number_1473_5d.jpeg}} &
        \subfloat[House number (S\&P 7\%)]{\includegraphics[scale = 0.6]{images/number_1473_7.jpeg}} &
        \subfloat[House number (S\&P 7\%) de-noised]{\includegraphics[scale = 0.6]{images/number_1473_7d.jpeg}} &
        \subfloat[House number (Gauss std=15)]{\includegraphics[scale = 0.6]{images/number_1473_15.jpeg}} &
        \subfloat[House number (Gauss std=15) de-noised]{\includegraphics[scale = 0.6]{images/number_1473_15d.jpeg}} &
        \subfloat[House number(Gauss std=30)]{\includegraphics[scale = 0.6]{number_1473_noise.jpeg}} \\

    \end{tabular}
\caption{(scaled at 0.6)}
\end{figure}

\begin{figure}[H]
    \begin{tabular}{cccccc}
        \subfloat[House number(Gauss std=30) de-noised]{\includegraphics[scale = 0.6]{number_1473_de_noised.jpeg}} &
        \subfloat[House number (Gauss std=45)]{\includegraphics[scale = 0.6]{images/number_1473_45.jpeg}} &
        \subfloat[House number (Gauss std=45) de-noised]{\includegraphics[scale = 0.6]{images/number_1473_45d.jpeg}} &
        \subfloat[River no noise]{\includegraphics[scale = 0.6]{images/river_113.jpeg}} &
        \subfloat[River (S\&P 2\%)]{\includegraphics[scale = 0.6]{images/river_113_2}} &
        \subfloat[River (S\&P 2\%) de-noised]{\includegraphics[scale = 0.6]{images/river_113_2d.jpeg}} \\
        \subfloat[River (S\&P 5\%)]{\includegraphics[scale = 0.6]{images/river_113_5.jpeg}} &
        \subfloat[River (S\&P 5\%) de-noised]{\includegraphics[scale = 0.6]{images/river_113_5d.jpeg}} &
        \subfloat[River (S\&P 7\%)]{\includegraphics[scale = 0.6]{images/river_113_7.jpeg}} &
        \subfloat[River (S\&P 7\%) de-noised]{\includegraphics[scale = 0.6]{images/river_113_7d.jpeg}} &
        \subfloat[River (Gauss std=15)]{\includegraphics[scale = 0.6]{images/river_113_15.jpeg}} &
        \subfloat[River (Gauss std=15) de-noised]{\includegraphics[scale = 0.6]{images/river_113_15d.jpeg}} \\
        \subfloat[River (Gauss std=30)]{\includegraphics[scale = 0.6]{river_113_noise.jpeg}} &
        \subfloat[River (Gauss std=30) de-noised]{\includegraphics[scale = 0.6]{river_113_de_noised.jpeg}} &
        \subfloat[River (Gauss std=45)]{\includegraphics[scale = 0.6]{images/river_113_45.jpeg}} &
        \subfloat[River (Gauss std=45) de-noised]{\includegraphics[scale = 0.6]{images/river_113_45d.jpeg}} &
        \subfloat[Road no noise]{\includegraphics[scale = 0.6]{images/road_555.jpeg}} &
        \subfloat[Road (S\&P 2\%)]{\includegraphics[scale = 0.6]{images/road_555_2}} \\
        \subfloat[Road (S\&P 2\%) de-noised]{\includegraphics[scale = 0.6]{images/road_555_2d.jpeg}} &
        \subfloat[Road (S\&P 5\%)]{\includegraphics[scale = 0.6]{images/road_555_5.jpeg}} &
        \subfloat[Road (S\&P 5\%) de-noised]{\includegraphics[scale = 0.6]{images/road_555_5d.jpeg}} &
        \subfloat[Road (S\&P 7\%)]{\includegraphics[scale = 0.6]{images/road_555_7.jpeg}} &
        \subfloat[Road (S\&P 7\%) de-noised]{\includegraphics[scale = 0.6]{images/road_555_7d.jpeg}} &
        \subfloat[Road (Gauss std=15)]{\includegraphics[scale = 0.6]{images/road_555_15.jpeg}} \\
        \subfloat[Road (Gauss std=15) de-noised]{\includegraphics[scale = 0.6]{images/road_555_15d.jpeg}} &
        \subfloat[Road (Gauss std=30)]{\includegraphics[scale = 0.6]{road_555_noise.jpeg}} &
        \subfloat[Road (Gauss std=30) de-noised]{\includegraphics[scale = 0.6]{road_555_de_noised.jpeg}} &
        \subfloat[Road (Gauss std=45)]{\includegraphics[scale = 0.6]{images/road_555_45.jpeg}} &
        \subfloat[Road (Gauss std=45) de-noised]{\includegraphics[scale = 0.6]{images/road_555_45d.jpeg}}\\
    \end{tabular}
\caption{(scaled at 0.6)}
\end{figure}

\section{\\Pseudo-code}

    \begin{algorithm}[H]
        \algorithmicrequire image, noise\_percent\\
        \algorithmicensure nosy\_image\\
        \State $height$ = get image height\;
        \State $width$ = get image width\;
        \For{i=0 to width}
            \For{j=0 to height}\
                \State random = compute random number\;
                \If{$random < noise\_percent$}
                    \State $pixel = image[i][j]$\;
                    \If{pixel is dark}
                        \State $image[i][j]$ = white\;
                    \EndIf    
                    \If{pixel is bright}
                        \State $image[i][j]$ = black\;
                \EndIf  
    \caption{Salt\&Pepper noise}
    \end{algorithm}

    \begin{algorithm}[H]
        \algorithmicrequire image, st\_dev, mean\\
        \algorithmicensure nosy\_image\\
        \State $perturbance$ = compute Gaussian perturbance with givet $st\_dev$ and $mean$\;
        \State $noisy\_image$ = $image$ + $perturbance$ \\
        \Return $noisy\_image$
    \caption{Gaussian noise}
    \end{algorithm}

\end{appendices}
\end{document}

之间会生成References一个Appendix白页,我似乎无法摆脱它:/

任何帮助是极大的赞赏


编辑

据我所知,\onecolumn 决定了白页的引入位置。如果我把它放在后面,\begin{appendices}它将Title Appendix 出现在参考文献之后,然后是白页和其余部分appendix

答案1

  • 每个图形的子浮点数太大,无法用字母编号。可能的解决方案:用数字编号,例如(1-32),其中 1 为数字编号,32 为子浮点数:

    \renewcommand\thesubfigure{\thefigure-\arabic{subfigure}}
    
  • 包含 32 张图片的图形大小可能超出文本块的大小。可能的解决方案:将第一张图片分成两部分,并使用包\ContinuedFloat 中的宏caption

  • 而不是scale使用选项width并将其设置为表格列的宽度(我建议使用tabularx表格环境)
  • 对于较短的代码,请使用键Gin来确定两个图中所有图像的大小

考虑到上述情况,两个图的代码是:

\documentclass[twocolumn]{article}
\usepackage[margin=20mm]{geometry}
\usepackage[demo]{graphicx}
\usepackage[skip=1ex]{caption}
\usepackage{subfig}
\usepackage{tabularx}
\usepackage{appendix}

\usepackage{lipsum}

\begin{document}
\lipsum
\onecolumn

\begin{appendices}
    \setlength\tabcolsep{3pt}
    \captionsetup[subfloat]{font=footnotesize,
                            labelformat=parens, labelsep=space,
                            justification=centering}
    \setkeys{Gin}{width=\linewidth, height=24mm}
    \renewcommand\thesubfigure{\thefigure-\arabic{subfigure}}

\section{Images}
    \begin{figure}[htb]
\begin{tabularx}{\linewidth}{*{6}{X}}
\subfloat[Car no noise]{\includegraphics{images/car_13.jpeg}} &
\subfloat[Car (S\&P 2\%)]{\includegraphics{images/car_13_2.jpeg}} &
\subfloat[Car (S\&P 2\%) de-noised]{\includegraphics{images/car_13_2d.jpeg}} &
\subfloat[Car (S\&P 5\%)]{\includegraphics{images/car_13_5.jpeg}} &
\subfloat[Car (S\&P 5\%) de-noised]{\includegraphics{images/car_13_5d.jpeg}} &
\subfloat[Car (S\&P 7\%)]{\includegraphics{images/car_13_7.jpeg}} \\

\subfloat[Car (S\&P 7\%) de-noised]{\includegraphics{images/car_13_7_deno.jpeg}} &
\subfloat[Car (Gauss std=15)]{\includegraphics{images/car_13_15.jpeg}} &
\subfloat[Car (Gauss std=15) de-noised]{\includegraphics{images/car_13_15d.jpeg}} &
\subfloat[Car (Gauss std=30)]{\includegraphics{car_13_noise.jpeg}} &
\subfloat[Car (Gauss std=30) de-noised]{\includegraphics{car_13_de_noised.jpeg}} &
\subfloat[Car (Gauss std=45)]{\includegraphics{images/car_13_45.jpeg}} \\

\subfloat[Car (Gauss std=45) de-noised]{\includegraphics{images/car_13_45d.jpeg}} &
\subfloat[House no noise]{\includegraphics{images/house_902.jpeg}} &
\subfloat[House (S\&P 2\%)]{\includegraphics{images/house_902_2.jpeg}} &
\subfloat[House (S\&P 2\%) de-noised]{\includegraphics{images/house_902_2d.jpeg}} &
\subfloat[House (S\&P 5\%)]{\includegraphics{images/house_902_5.jpeg}} &
\subfloat[House (S\&P 5\%) de-noised]{\includegraphics{images/house_902_5d.jpeg}} \\

\subfloat[House (S\&P 7\%)]{\includegraphics{images/house_902_7.jpeg}} &
\subfloat[House (S\&P 7\%) de-noised]{\includegraphics{images/house_902_7d.jpeg}} &
\subfloat[House (Gauss std=15)]{\includegraphics{images/house_902_15.jpeg}} &
\subfloat[House (Gauss std=15) de-noised]{\includegraphics{images/house_902_15d.jpeg}} &
\subfloat[House (Gauss std=30)]{\includegraphics{house_902_noise.jpeg}} &
\subfloat[House (Gauss std=30) de-noised]{\includegraphics{house_902_de_noised.jpeg}} \\

\subfloat[House (Gauss std=45)]{\includegraphics{images/house_902_45.jpeg}} &
\subfloat[House (Gauss std=45) de-noised]{\includegraphics{images/house_902_45d.jpeg}} &
\subfloat[House number no noise]{\includegraphics{images/number_1473.jpeg}} &
\subfloat[House number (S\&P 2\%)]{\includegraphics{images/number_1437_2}} &
\subfloat[House number (S\&P 2\%) de-noised]{\includegraphics{images/number_1473_2d.jpeg}} &
\subfloat[House number (S\&P 5\%)]{\includegraphics{images/number_1473_5.jpeg}} \\
\end{tabularx}
\caption{(scaled at 0.6)}
    \end{figure}

    \begin{figure}[htb]
\begin{tabularx}{\linewidth}{*{6}{X}}
\ContinuedFloat
\subfloat[House number (S\&P 5\%) de-noised]{\includegraphics{images/number_1473_5d.jpeg}} &
\subfloat[House number (S\&P 7\%)]{\includegraphics{images/number_1473_7.jpeg}} &
\subfloat[House number (S\&P 7\%) de-noised]{\includegraphics{images/number_1473_7d.jpeg}} &
\subfloat[House number (Gauss std=15)]{\includegraphics{images/number_1473_15.jpeg}} &
\subfloat[House number (Gauss std=15) de-noised] {\includegraphics{images/number_1473_15d.jpeg}} &
\subfloat[House number(Gauss std=30)]{\includegraphics{number_1473_noise.jpeg}}
\end{tabularx}
\caption{(scaled at 0.6)}
    \end{figure}

    \begin{figure}[htbp]
\begin{tabularx}{\linewidth}{*{6}{X}}
\subfloat[House number(Gauss std=30) de-noised]{\includegraphics{number_1473_de_noised.jpeg}} &
\subfloat[House number (Gauss std=45)]{\includegraphics{images/number_1473_45.jpeg}} &
\subfloat[House number (Gauss std=45) de-noised]{\includegraphics{images/number_1473_45d.jpeg}} &
\subfloat[River no noise]{\includegraphics{images/river_113.jpeg}} &
\subfloat[River (S\&P 2\%)]{\includegraphics{images/river_113_2}} &
\subfloat[River (S\&P 2\%) de-noised]{\includegraphics{images/river_113_2d.jpeg}} \\

\subfloat[River (S\&P 5\%)]{\includegraphics{images/river_113_5.jpeg}} &
\subfloat[River (S\&P 5\%) de-noised]{\includegraphics{images/river_113_5d.jpeg}} &
\subfloat[River (S\&P 7\%)]{\includegraphics{images/river_113_7.jpeg}} &
\subfloat[River (S\&P 7\%) de-noised]{\includegraphics{images/river_113_7d.jpeg}} &
\subfloat[River (Gauss std=15)]{\includegraphics{images/river_113_15.jpeg}} &
\subfloat[River (Gauss std=15) de-noised]{\includegraphics{images/river_113_15d.jpeg}} \\

\subfloat[River (Gauss std=30)]{\includegraphics{river_113_noise.jpeg}} &
\subfloat[River (Gauss std=30) de-noised]{\includegraphics{river_113_de_noised.jpeg}} &
\subfloat[River (Gauss std=45)]{\includegraphics{images/river_113_45.jpeg}} &
\subfloat[River (Gauss std=45) de-noised]{\includegraphics{images/river_113_45d.jpeg}} &
\subfloat[Road no noise]{\includegraphics{images/road_555.jpeg}} &
\subfloat[Road (S\&P 2\%)]{\includegraphics{images/road_555_2}} \\

\subfloat[Road (S\&P 2\%) de-noised]{\includegraphics{images/road_555_2d.jpeg}} &
\subfloat[Road (S\&P 5\%)]{\includegraphics{images/road_555_5.jpeg}} &
\subfloat[Road (S\&P 5\%) de-noised]{\includegraphics{images/road_555_5d.jpeg}} &
\subfloat[Road (S\&P 7\%)]{\includegraphics{images/road_555_7.jpeg}} &
\subfloat[Road (S\&P 7\%) de-noised]{\includegraphics{images/road_555_7d.jpeg}} &
\subfloat[Road (Gauss std=15)]{\includegraphics{images/road_555_15.jpeg}} \\

\subfloat[Road (Gauss std=15) de-noised]{\includegraphics{images/road_555_15d.jpeg}} &
\subfloat[Road (Gauss std=30)]{\includegraphics{road_555_noise.jpeg}} &
\subfloat[Road (Gauss std=30) de-noised]{\includegraphics{road_555_de_noised.jpeg}} &
\subfloat[Road (Gauss std=45)]{\includegraphics{images/road_555_45.jpeg}} &
\subfloat[Road (Gauss std=45) de-noised]{\includegraphics{images/road_555_45d.jpeg}}
    \end{tabularx}
\caption{(scaled at 0.6)}
\end{figure}

在此处输入图片描述

在此处输入图片描述

相关内容