我怎样才能用 apa6 将摘要放在标题页上?

我怎样才能用 apa6 将摘要放在标题页上?

我正在为心理学课程写实验报告。报告必须采用 APA 手稿格式,但摘要必须放在标题页上。我使用的是 apa6 .sty,但我不知道该怎么做。我找到的最接近答案的是这里,但这涉及删除摘要,而我想删除摘要并将摘要移至标题页。以下是我的代码示例:

\documentclass[man, 11pt, babel english, helv]{apa6}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\title{Lab: Hello World}
\shorttitle{Lab}
\author{Henry Elliott}
\affiliation{Oklahoma State University}
\abstract{    
    This is my abstract.
}

\begin{document}
\maketitle
% My paper 
\end{document}

答案1

我查看了apa6.cls文件并且没有看到任何可以改变该行为的钩子,因为\maketitke问题出现\newpage在之前abstract

所以你可以

  1. \newpage否定的效果\maketitle,或者
  2. 修改生成标题页的代码并删除\newpage输出之前的abstract

在此处输入图片描述

代码: 补丁\newpage\maketitle

\documentclass[man, 11pt, babel english, helv]{apa6}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}


\let\OldMaketitle\maketitle
\let\OldNewpage\newpage
\renewcommand\maketitle{%
   \renewcommand\newpage{\let\newpage\OldNewpage}% <----- Eliminate the effect of first \newpage
   \OldMaketitle%
}


\title{Lab: Hello World}
\shorttitle{Lab}
\author{Henry Elliott}
\affiliation{Oklahoma State University}
\abstract{    
    This is my abstract.
}

\begin{document}
\maketitle
% My paper 
\end{document}

代码: 修改\maketitle

\documentclass[man, 11pt, babel english, helv]{apa6}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\makeatletter
\renewcommand\maketitle{
\@ifundefined{hrm}{}{\hrm}
 \check@author

  \begin{center}
  \vspace*{0.5in}

  \vspace*{1in}
  \@title%
  \ifapamodeman{%
    \@ifundefined{def@noextraspace}{%
      \vspace{0.25in}\\
    }{}
  }{%
    \vspace{0.25in}\\
  }

  \@ifundefined{apaSix@maskauthoridentity}{%  BDB

      \@ifundefined{@authorTwo}{
      \@author \\

      \@affil \vspace{0.25in} \\ }{
      \@ifundefined{@authorThree}{
      \@authorOne \\

      \@affilOne \vspace{0.2in} \\
      \@authorTwo \\

      \@affilTwo \vspace{0.25in} \\ }{
      \@ifundefined{@authorFour}{
      \@authorOne \\

      \@affilOne \vspace{0.2in} \\
      \@authorTwo \\

      \@affilTwo \vspace{0.2in} \\
      \@authorThree \\

      \@affilThree \vspace{0.25in} \\ }{
      \@ifundefined{@authorFive}{       %% 2006/01/05 added as contributed by Aaron Geller
      \@authorOne \\

      \@affilOne \vspace{0.2in} \\
      \@authorTwo \\

      \@affilTwo \vspace{0.2in} \\
      \@authorThree \\

      \@affilThree \vspace{0.2in} \\
      \@authorFour \\

      \@affilFour \vspace{0.25in} \\ }{ %% 2006/01/05 beginning of Aaron Geller contribution
      \@ifundefined{@authorSix}{ %% -- thp 2006/01/05
      \@authorOne \\

      \@affilOne \vspace{0.2in} \\
      \@authorTwo \\

      \@affilTwo \vspace{0.2in} \\
      \@authorThree \\

      \@affilThree \vspace{0.2in} \\
      \@authorFour \\

      \@affilFour \vspace{0.2in} \\ %% thp corrected distance to non-final value of 0.2in
      \@authorFive \\

      \@affilFive \vspace{0.25in} \\ }{%% 2006/01/05 end of Aaaron Geller contribution
    %% --- thp 2006/01/05 beginning of six-author display
      \@authorOne \\

      \@affilOne \vspace{0.2in} \\
      \@authorTwo \\

      \@affilTwo \vspace{0.2in} \\
      \@authorThree \\

      \@affilThree \vspace{0.2in} \\
      \@authorFour \\

      \@affilFour \vspace{0.2in} \\
      \@authorFive \\

      \@affilFive \vspace{0.2in} \\
      \@authorSix \\

      \@affilSix \vspace{0.25in} \\ }}}}}
    %% --- thp 2006/01/05 end of six-author display
      \@ifundefined{@note}
       {\vspace*{\baselineskip} }
       {\@note}

  }{%  mask author identity -- show nothing in the author or author note space
  }

  \end{center}

  \@ifundefined{apaSix@maskauthoridentity}{
      \@ifundefined{@acks}
       {}
       {%
         \vfill%
         \begin{center}%
            \acksname%
         \end{center}%
         \protect\raggedright
         \setlength{\parindent}{0.4in}
         \indent\par\@acks%
       }
  }{%  mask author identity -- show nothing in the author or author note space
  }

  %\newpage% <--------------- Commented this out
  %BDB\hyphenpenalty 10000
  \fussy
  \@ifundefined{@abstract}{}{%
    \section{\normalfont\normalsize\abstractname}% BDB
    \noindent\@abstract\par% BDB
    \@ifundefined{@keywords}{}{%
      \setlength{\parindent}{0.4in}% BDB
      \indent\textit{\keywordname:} \@keywords%
    }%
    \newpage
  }

  \@ifundefined{def@donotrepeattitle}{
    \section{\protect\normalfont{\@title}}
  }{}%
  \raggedright%
  \setlength{\parindent}{0.4in}%
}

\makeatother

\title{Lab: Hello World}
\shorttitle{Lab}
\author{Henry Elliott}
\affiliation{Oklahoma State University}
\abstract{    
    This is my abstract.
}

\begin{document}
\maketitle
% My paper 
\end{document}

相关内容