引言和摘要之間的分頁

引言和摘要之間的分頁
\documentclass[twocolumn]{aastex61}
\pdfoutput=1 %for arXiv submission
\usepackage{amsmath,amstext}
\usepackage[T1]{fontenc}
\usepackage{apjfonts} 
\usepackage[figure,figure*]{hypcap}

\renewcommand*{\sectionautorefname}{Section} %for \autoref
\renewcommand*{\subsectionautorefname}{Section} %for \autoref

\shorttitle{AASTeX 6.1 Template}
\shortauthors{AUthor A. et al.}

\begin{document}

\title{Title of the Paper}

\author{Author 1}
\author{Author 2}
\author{Author 3}

\affiliation{The UX}

\begin{abstract}
Abstract of this paper!
\end{abstract}
\keywords{keyword1 --- keyword2 --- keyword3}

\section{Introduction}
Intro to the paper

\section{Summary}
Summary text.

\acknowledgments
Acknowledgments.

%\facility{facility ID}
\facilities{facility ID, facility ID, facility ID} 
\software{Numpy}

\bibliographystyle{yahapj}
\bibliography{references}

\appendix
\section{appendix section}

\end{document}

使用此命令後,在預覽部分,我會看到我的標題和摘要;但我的介紹是從一個全新的頁面開始的。我該如何防止這種情況?

這是輸出:

第_1頁 第2頁 第_3頁

PS我在背頁上做了所有這些

答案1

該類別aastex61定義\section要做的事情

\def\section{%
\if@firstsection
      \maketitle
\global\@firstsectionfalse
     \setcounter{footnote}{\thefront@matter@foot@note}%
     \let\footnotetext=\old@foot@note@text
     \let\footnotemark=\old@foot@note@mark
   \clearpage
   \if@two@col
   \twocolumngrid
   \fi
\fi
    \@startsection{section}{1}{\z@}{9pt plus 1pt minus
    1pt}{4pt}{\apjsecfont\center}} 

條件\if@firstsection一開始就設定為 true,因此第一個\section指令的效果是發出\maketitle

\def\frontmatter@maketitle{%
\@author@finish
\if@firstsection
  \title@column\titleblock@produce
\onecolumngrid
\else
%
\global\firstaffiltrue
 \title@column\secondtitleblock@produce
\fi
  \suppressfloats[t]%
%% Prevent these from being turned off so that
%% we can use \maketitle again for \AllAuthors.
%%
%  \let\and\relax
  \let\affiliation\@gobble
  \let\author\@gobble
%  \let\@AAC@list\@empty
%  \let\@AFF@list\@empty
%  \let\@AFG@list\@empty
%  \let\@AF@join\@AF@join@error
%  \let\email\@gobble
%  \let\@address\@empty
% \let\maketitle\relax
%  \let\thanks\@gobble
\if@firstsection
  \let\abstract\@undefined\let\endabstract\@undefined
  \titlepage@sw{%
   \vfil
   \clearpage
  }{}%
\fi
}%

\let\maketitle\frontmatter@maketitle

結論是摘要(實際上是所有前題資訊之後)排版後的分頁符號是通緝

\begin{document}您可以透過在先前新增,來刪除分頁符

\makeatletter
\@booleanfalse\titlepage@sw
\makeatother

這種情況不再發生aastex63(TeX Live 上也有)。

\documentclass[twocolumn]{aastex63}
\pdfoutput=1 %for arXiv submission
\usepackage{amsmath,amstext}
\usepackage[T1]{fontenc}
%\usepackage{apjfonts} 
\usepackage[figure,figure*]{hypcap}

\renewcommand*{\sectionautorefname}{Section} %for \autoref
\renewcommand*{\subsectionautorefname}{Section} %for \autoref

\shorttitle{AASTeX 6.1 Template}
\shortauthors{AUthor A. et al.}

\begin{document}

\title{Title of the Paper}

\author{Author 1}
\author{Author 2}
\author{Author 3}

\affiliation{The UX}

\begin{abstract}
Abstract of this paper!
\end{abstract}
\keywords{keyword1 --- keyword2 --- keyword3}

\section{Introduction}
Intro to the paper

\section{Summary}
Summary text.

\acknowledgments
Acknowledgments.

%\facility{facility ID}
\facilities{facility ID, facility ID, facility ID} 
\software{Numpy}

\bibliographystyle{yahapj}
\bibliography{references}

\appendix
\section{appendix section}

\end{document}

(我評論apjfonts說我沒有)

在此輸入影像描述

答案2

你有沒有嘗試過這個:https://stackoverflow.com/questions/55552325/unwanted-page-break-after-maketitle?我認為它可以適用於您的特定情況。

相關內容