부록 앞 페이지의 공백 제거

부록 앞 페이지의 공백 제거

저는 IEEE 형식으로 두 개의 열로 논문을 작성하고 있습니다. 나는 부록에 두 개의 열에 걸쳐 있는 몇 가지 큰 그림을 포함할 것입니다. 너비는 길지 않지만 너비는 길지 않습니다. 그림의 텍스트 배치로 인해 논문의 구성이 망가지기 때문입니다. 그런데 부록을 만들다보니 참고문헌 뒤에 공백이 너무 많이 생겨서 부록이 다음 페이지로 넘어갑니다. 문제를 보여주기 위해 샘플 코드를 포함하고 있습니다.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%2345678901234567890123456789012345678901234567890123456789012345678901234567890
%        1         2         3         4         5         6         7         8

\documentclass[conference,10pt]{IEEEtran}
\makeatletter
\def\ps@headings{%
\def\@oddhead{\mbox{}\scriptsize\rightmark \hfil \thepage}%
\def\@evenhead{\scriptsize\thepage \hfil \leftmark\mbox{}}%
\def\@oddfoot{}%
\def\@evenfoot{}}
\makeatother
\pagestyle{empty}


\usepackage{booktabs}

\usepackage[caption=false]{subfig}
\usepackage{comment}
\usepackage[]{algorithm2e}
\usepackage{balance} 
\usepackage{booktabs} 
\usepackage{subfig}

\usepackage{balance}


\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{blindtext}
\usepackage{wrapfig}
\usepackage{amsmath}
\usepackage[dvipsnames,svgnames,x11names]{xcolor}
\usepackage[final]{changes}
\definechangesauthor[color=BrickRed]{EE}
\usepackage{todonotes}
\setlength{\marginparwidth}{3cm}
\makeatletter
\setremarkmarkup{\todo[color=Changes@Color#1!20,size=\scriptsize]{#1: #2}}
\makeatother

\newcommand{\note}[2][]{\added[#1,remark={#2}]{}}

\IEEEoverridecommandlockouts      

\title{\LARGE \bf A long title comes here about lets say whales}

\author{\IEEEauthorblockN{
Author First\IEEEauthorrefmark{1},
Author Second\IEEEauthorrefmark{1},
Author Third\IEEEauthorrefmark{1}, 
Author Fourth \IEEEauthorrefmark{2} and
Author Fifth \IEEEauthorrefmark{1}}
\IEEEauthorblockA{\IEEEauthorrefmark{1}A University, City, State\\
Email: \{first, second, third, fifth\}@city.edu}
\IEEEauthorblockA{\IEEEauthorrefmark{2}Another University, City, State\\
Email: [email protected]}}

\begin{document}



\maketitle
\thispagestyle{empty}
\pagestyle{empty}

\begin{abstract}

\blindtext

\end{abstract}

\section{Conclusion}
\Blindtext
\Blindtext

\balance
\onecolumn
\section*{Appendix}

\Blindtext

\end{document}

논문의 내용을 변경했지만 여기에 사용 중인 모든 패키지가 포함되어 있습니다. 참고로 제가 만든 큰 그림은 \minipage 패키지로 만든 것입니다.이것이 내가 얻은 것입니다. 부록 앞에 남은 공간이 크다는 점에 유의하십시오.

코드 편집

문제 발생을 위해 중복된 패키지 사용을 최대한 제거했으며, 내가 사용한 패키지 중 하나가 해당 문제를 일으키는지 다른 사람들도 알 수 있기를 바랐습니다.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%2345678901234567890123456789012345678901234567890123456789012345678901234567890
%        1         2         3         4         5         6         7         8

\documentclass[conference,10pt]{IEEEtran}


\usepackage{balance}
\usepackage[english]{babel}
\usepackage{blindtext}
\IEEEoverridecommandlockouts      

\title{\LARGE \bf A long title comes here about lets say whales}

\author{\IEEEauthorblockN{
Author First\IEEEauthorrefmark{1},
Author Fourth \IEEEauthorrefmark{2} and
Author Fifth \IEEEauthorrefmark{1}}
\IEEEauthorblockA{\IEEEauthorrefmark{1}A University, City, State\\
Email: \{first, second, third, fifth\}@city.edu}
\IEEEauthorblockA{\IEEEauthorrefmark{2}Another University, City, State\\
Email: [email protected]}}

\begin{document}
\maketitle
\thispagestyle{empty}
\pagestyle{empty}

\begin{abstract}

\blindtext

\end{abstract}

\section{Conclusion}
\Blindtext
\Blindtext

\balance

\onecolumn

\section*{Appendix}

\Blindtext

\end{document}

답변1

이 솔루션은 명령을 사용하여 자연 페이지 경계 사이 \shortpage를 전환합니다 . 서식이 지정된 텍스트를 저장 상자에 넣고 한 번에 모두 덤프합니다. 페이지 끝에 남은 내용은 다중 열을 사용하여 처리됩니다.\twocolumn\onecolumn

\afterpage\onecolumn새 페이지를 생성하지 않는 다음 페이지의 시작 부분에서 실행됩니다 . 또한 이전 페이지의 나머지 텍스트를 \AP@partial.

\documentclass[conference,10pt]{IEEEtran}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage{balance}

\usepackage{afterpage}
\usepackage{multicol}
\newsavebox{\shortpagebox}

\makeatletter
\newcommand{\shortpage}[1]% #1= \twocolumn text to wrap into \onecolumn page
{\par
  \setbox\shortpagebox=\vbox{\strut #1\par}%
  \afterpage{\onecolumn
    \begin{multicols}{2}
    \unvbox\AP@partial
    \end{multicols}}%
  \unvbox\shortpagebox
\par}
\makeatother

\IEEEoverridecommandlockouts      

\title{\LARGE \bf A long title comes here about lets say whales}

\author{\IEEEauthorblockN{
Author First\IEEEauthorrefmark{1},
Author Second\IEEEauthorrefmark{1},
Author Third\IEEEauthorrefmark{1}, 
Author Fourth \IEEEauthorrefmark{2} and
Author Fifth \IEEEauthorrefmark{1}}
\IEEEauthorblockA{\IEEEauthorrefmark{1}A University, City, State\\
Email: \{first, second, third, fifth\}@city.edu}
\IEEEauthorblockA{\IEEEauthorrefmark{2}Another University, City, State\\
Email: [email protected]}}

\begin{document}

\maketitle
\thispagestyle{empty}
\pagestyle{empty}

\begin{abstract}

\blindtext

\end{abstract}

\section{Conclusion}
\Blindtext
\shortpage{\Blindtext}

\section*{Appendix}

\Blindtext

\end{document}

관련 정보