IEEE 形式の単一列ソースコードのページが欠落しています

IEEE 形式の単一列ソースコードのページが欠落しています

IEEE 形式 (2 列スタイル) のドキュメントに、付録 (1 列スタイル) としてソース コードを含めようとしています。1 列の付録とソース コードを追加することはできましたが、何らかの理由でコードが最初のページで切れてしまいます。新しいページを追加しようとしましたが、うまくいきません。次のようになります。

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
\usepackage{minted}
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}


\begin{document}
\twocolumn[
\begin{@twocolumnfalse}

\include{Appendix}\newpage\cleardoublepage

\end{@twocolumnfalse}
]    
\end{document}


In my Appendix I have 

\appendix
    \section{Source Code}
        \begin{minted}
        [frame=lines,
        framesep=2mm,
        baselinestretch=0.8,
        fontsize=\small, linenos]{lua}
        Source code here...
        2 pages long
        \end{minted}

どこが間違っているのかよく分かりませんが、どんな助けでもいただければ幸いです。

ページの切り取り

答え1

これは、あなたが望んでいると思われる内容を提供する、MWE の簡略化および改訂版です。

% ieeetranprob.tex  SE 540633 twocol to onecol

\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
% The preceding line is only needed to identify funding in the first footnote. If that is unneeded, please comment it out.
%\usepackage{minted}
%\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
    T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}

\usepackage{lipsum}   % my addition fior convenience
\usepackage{comment}  % my addition for convenience

\begin{document}
\section{Main} % just to start things off
\lipsum[1]

\begin{comment} % don't need this code
\twocolumn[
\begin{@twocolumnfalse}

\include{Appendix}\newpage\cleardoublepage
\end{comment}

In my Appendix I have 

\onecolumn % starts a new page on onecolumn mode
\appendix[Source code] % give a title for the appendix
\lipsum[3]
%    \section{Source Code} % \section inoperable within Appendix
\lipsum[2] % use this instead of the minted stuff
\begin{comment}
        \begin{minted}
        [frame=lines,
        framesep=2mm,
        baselinestretch=0.8,
        fontsize=\small, linenos]{lua}
        Source code here...
        2 pages long
        \end{minted}
\end{comment}

\begin{comment} % don't need the next two lines anymore
\end{@twocolumnfalse}
]
\end{comment}

\end{document}

クラスのデフォルトは ですtwocolumn。 を使用すると、\onecolumnモードが 2 列から 1 列に変更され、新しいページが開始されます。

関連情報