手动创建 APA 期刊封面

手动创建 APA 期刊封面

我想知道如何手动创建 apa6 类格式的 APA 期刊封面页。APA 6 包非常适合整个文档,但是,如果您想在更大的文档中创建此布局,例如回忆录类(博士论文),就会遇到困难。因此,我想知道如何在不使用\maketitle\authors、APA6 包等的情况下手动重新创建封面页(链接如下)。这只需要包括标题、作者、摘要、关键字和作者评论。主文档可以在“书籍”或“回忆录”类中继续。

我在这里附上了一些最小的可重现代码,并附在输出(第 2 页和第 3 页)下方。如果我们能将所有章节、标题页和脚注放到一页上,并使用 TOC 和 /href 正确索引,那就太好了。

谨致问候并提前致谢,Conal Monaghan

%%%%%%%%% Preamble   %%%%%%%%%%%%
\documentclass[12pt,oneside]{book}
%%%% Some of the formatting things included for APA style within a book %%%%%%%%%%%%%%%
\usepackage{setspace}
% Double or one and a half spacing.
\usepackage{titlesec} 
\usepackage[unicode=true,colorlinks=true,linkcolor=black,citecolor=black,urlcolor=black,breaklinks=true]{hyperref}
\usepackage{fancyhdr}                                  
%%%% Define titles
{\normalfont\normalsize\bfseries}{\theparagraph}{.5em}{}
%%%% Preamble for the APAtitlepage %%%%%
\usepackage{apatitlepage}
\usepackage{kantlipsum}
%
\twoauthors{An Author}{Another Author}
\twoaffiliations{A Big University}{Another Big University}
\APAtitle{The Role of Machiavellian Views and Tactics in Psychopathology}
\APAkeywords{philosophy, unreadable, Continental, gibberish, boring}
\APAabstract{Machiavellianism represents a tendency to manipulate and exploit others in a social world perceived to be hostile. Research has been inconsistent regarding psychopathology associated with this aspect of 
personality. This has been partially due to focusing on Machiavellianism as a unidimensional, as opposed to multi- dimensional, construct. Thus, this study aimed to investigate associations between Machiavellianism and psychopathology from a multidimensional perspective. The participants were 1478 US undergraduates aged between 18 and 53 years (M = 19.55, SD = 3.22; 39\% male) and 218 Australian undergraduates aged between 17 and 60 (M = 20.09, SD = 4.56; 33\% male). 
To address psychometric issues in the Mach- IV scale, item analysis and confirmatory factor analyses were used to derive its multidimensional structure. Structural equation modelling tested unique associations of Machiavellian views and tactics with six psychopathological constructs: depression, fear, anxiety, impulsivity, externalising psychopathology,
 and thought dysfunction. Results from the US and Australian samples suggest that Machiavellianism is best viewed as a two-dimensional construct consisting of views and tactics. Furthermore, the US study showed that Machiavellian views uniquely predicted all areas of psychopathology, whereas tactics predicted only externalising domains. 
These findings demonstrate the multidimensional nature of Machiavellianism and highlight its distinctive psychopathological implications.}
\renewcommand{\APAtitleformat}{\LARGE\bfseries} % default is \LARGE
\APAauthornote{Test of the APA Author note funciton}
\APAnote{}


%%%%%%
\begin{document}
\doublespacing  

  Previous chapter. Lorem ipsum dolor sit amet, consectetur adipiscing elite. Integer ut congue lectus. Nullam dapibus scelerisque diam, ac convallis dolor convallis non. Sed nec lectus nec sapien interdum commodo nec quis elit. Sed neque augue, pulvinar id imperdiet id, ullamcorper sed sem. Duis pulvinar blandit erat, quis suscipit erat venenatis sit 
amet. Aenean varius aliquam dignissim. Sed tempus consequat sapien et bibendum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Maecenas arcu ligula, tincidunt non volutpat nec, luctus ac justo. Donec euismod egestas leo, 
 vel convallis mi accumsan sed. Aliquam erat volutpat. Maecenas volutpat lacinia justo, dictum iaculis enim scelerisque in. Vestibulum consequat augue in nisl luctus eget ultrices sem blandit. 
 Donec mi risus, rutrum at tempus in, dapibus vel est. Sed eu ullamcorper velit Blah Blah Blah

\singlespacing
\chapter{} % At the moment ghosted because of the APA title we only want to see "Chapter 1" but we could replace the chapter title with the modified APAtitlePage title

\APAmaketitle
\doublespacing


Chapter Body. Lorem ipsum dolor sit amet, consectetur adipiscing elite. Integer ut congue lectus. Nullam dapibus scelerisque diam, ac convallis dolor convallis non. Sed nec lectus nec sapien interdum commodo nec quis elit. Sed neque augue, pulvinar id imperdiet id, ullamcorper sed sem. Duis pulvinar blandit erat, quis suscipit erat venenatis sit amet. Aenean varius aliquam dignissim. Sed tempus consequat sapien et bibendum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Maecenas arcu ligula, tincidunt non volutpat nec, luctus ac justo. Donec euismod egestas leo, vel convallis mi accumsan sed. Aliquam erat volutpat. Maecenas volutpat lacinia justo, dictum iaculis enim scelerisque in. Vestibulum consequat augue in nisl luctus eget ultrices sem blandit. Donec mi risus, rutrum at tempus in, dapibus vel est. Sed eu ullamcorper velit Blah Blah Blah



\end{document}

第2页 第 3 页

答案1

我不知道这是否对人们有用,但这里有一个使用apa6修改过的代码以避免名称冲突的包。它允许您创建 APA 期刊样式的标题页。它保留了大部分作者apa6和所属命令,但重命名了一些。它对应该在主文档中定义的页眉和页脚不做任何处理,对 也不做任何处理\pagestyle

 \author -> \APAauthor
 \title -> \APAtitle
 \shorttitle -> \APAshorttitle
 \maketitle -> \APAmaketitle
 \abstract -> \APAabstract
 \keywords -> \APAkeywords
 \authornote -> \APAauthornote
 \note -> \APAnote

添加了以下命令:

 \APAtitleformat -> defaults to \LARGE
 \APAauthformat -> defaults to \large
 \APAaffilformat -> defaults to {}

要使用它,请将其放入apatitlepage.sty本地texmf文件夹,然后按照以下示例文档的方式使用它:

\documentclass{article}
\usepackage{apatitlepage}
\usepackage{kantlipsum}
\twoauthors{An Author}{Another Author}
\twoaffiliations{A Big University}{Another Big University}
\APAtitle{This is the title of my paper}
\APAkeywords{philosophy, unreadable, Continental, gibberish, boring}
\APAabstract{\kant[1]}
\renewcommand{\APAtitleformat}{\LARGE\bfseries} % default is \LARGE
\begin{document}

\APAmaketitle

\end{document}

代码输出

apatitlepage.sty

代码存储库:github.com/amunn/apatitlepage

% This is file apatitlepage.sty
% Most code Copyright (C) 2011-2017 by Brian D. Beitzel <brian at beitzel.com>
% Modifications Copyright 2017 by Alan Munn <[email protected]>
%
% The following code is adapted from the apa6 documentclass. Most of it is copied verbatim except for
% a few name changes to avoid potential document class clashes. It does not do anonymization.
% The following commands have been renamed: (along with their internal versions):
%
% \author -> \APAauthor
% \title -> \APAtitle
% \shorttitle -> \APAshorttitle
% \maketitle -> \APAmaketitle
% \abstract -> \APAabstract
% \keywords -> \APAkeywords
% \authornote -> \APAauthornote
% \note -> \APAnote
%
% The following commands have been added:
%
% \APAtitleformat -> defaults to \LARGE
% \APAauthformat -> defaults to \large
% \APAaffilformat -> defaults to {}
%
% Use \renewcommand to change these formats as needed
% 
%
% All other author/affiliation commands remain the same as in the apa6 class
% Please refer to the documentation of the class for how to use them.
%
%
% This package may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or any later version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.3 or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
%
% This package has the LPPL maintenance status `maintained'.
% 
% The Current Maintainer of this package is Alan Munn.
%
% This package consists of the file 
%
% apaptitlepage.sty 
%
%
% Version 1.0 2017/10/10
%
\NeedsTeXFormat{LaTeX2e}[2003/12/01]
\ProvidesPackage{apatitlepage}[2017/10/10 v1.0 Use apa6 journal title page style in another document.]
% New commands added
\newcommand*\APAtitleformat{\LARGE}
\newcommand*\APAauthformat{\large}
\newcommand*\APAaffilformat{}
% Modified apa6 code starts here
\newcommand*\acksname{Author Note}
\newcommand*\keywordname{Keywords}
\long\def\APAnote#1{\long\def\@APAnote{#1}}
\long\def\APAtitle#1{\long\def\@APAtitle{#1}}
\long\def\APAauthor#1{\long\def\@APAauthor{#1}}
\long\def\APAshorttitle#1{\long\def\@APAshorttitle{#1}}
\long\def\twoauthors#1#2{\long\def\@authorOne{#1}\long\def\@authorTwo{#2}%
 \long\def\@APAauthor{#1}}
\long\def\onetwoauthors#1#2#3{\long\def\@authorOne{#1}\long\def\@authorTwo{#2}%
 \long\def\@authorThree{#3}\long\def\@APAauthor{#1}}
\long\def\twooneauthors#1#2#3{\long\def\@authorOne{#1}\long\def\@authorTwo{#2}%
 \long\def\@authorThree{#3}\long\def\@APAauthor{#1}\def\@twofirst{1}}
\let\threeauthors=\onetwoauthors
\long\def\fourauthors#1#2#3#4{\long\def\@authorOne{#1}\long\def\@authorTwo{#2}%
 \long\def\@authorThree{#3}\long\def\@authorFour{#4}\long\def\@APAauthor{#1}}
\long\def\fiveauthors#1#2#3#4#5{\long\def\@authorOne{#1}\long\def\@authorTwo{#2}%%%%
 \long\def\@authorThree{#3}\long\def\@authorFour{#4}\long\def\@authorFive{#5}%    %%
 \long\def\@APAauthor{#1}} %%     2006/01/05 -- added as contributed by Aaron Geller %%
\long\def\sixauthors#1#2#3#4#5#6{\long\def\@authorOne{#1}%                  %% thp 2006/01/05
 \long\def\@authorTwo{#2}\long\def\@authorThree{#3}\long\def\@authorFour{#4}%% thp 2006/01/05
 \long\def\@authorFive{#5}\long\def\@authorSix{#6}\long\def\@APAauthor{#1}}    %% thp 2006/01/05
\long\def\affiliation#1{\long\def\@affil{#1}}
\long\def\twoaffiliations#1#2{\long\def\@affilOne{#1}\long\def\@affilTwo{#2}%
\long\def\@affil{#1}}
\long\def\onetwoaffiliations#1#2#3{\long\def\@affilOne{#1}\long\def\@affilTwo{#2}%
 \long\def\@affilThree{#3}\long\def\@affil{#1}}
\long\def\twooneaffiliations#1#2#3{\long\def\@affilOne{#1}\long\def\@affilTwo{#2}%
 \long\def\@affilThree{#3}\long\def\@affil{#1}}
\let\threeaffiliations=\onetwoaffiliations
\long\def\fouraffiliations#1#2#3#4{\long\def\@affilOne{#1}\long\def\@affilTwo{#2}%
 \long\def\@affilThree{#3}\long\def\@affilFour{#4}\long\def\@affil{#1}}
\long\def\fiveaffiliations#1#2#3#4#5{\long\def\@affilOne{#1}\long\def\@affilTwo{#2}%%
 \long\def\@affilThree{#3}\long\def\@affilFour{#4}\long\def\@affilFive{#5}%        %%
 \long\def\@affil{#1}} %%     2006/01/05 -- added as contributed by Aaron Geller   %%
\long\def\sixaffiliations#1#2#3#4#5#6{\long\def\@affilOne{#1}%           %% thp 2006/01/05
 \long\def\@affilTwo{#2}\long\def\@affilThree{#3}\long\def\@affilFour{#4}%% thp 2006/01/05
 \long\def\@affilFive{#5}\long\def\@affilSix{#6}\long\def\@affil{#1}}    %% thp 2006/01/05
\long\def\APAnote#1{\long\def\@APAnote{#1}}
\long\def\APAabstract#1{\long\def\@APAabstract{#1}}
\long\def\APAkeywords#1{\long\def\@APAkeywords{#1}}
\long\def\APAauthornote#1{\long\def\@APAacks{#1}}
\def\check@author{%
 \@ifundefined{@APAauthor}{%
  \PackageWarningNoLine{apatitlepage}{Author not defined}\def\@APAauthor{Author}}{}
 \@ifundefined{@APAtitle}{%
  \PackageWarningNoLine{apatitlepage}{Title not defined}\def\@APAtitle{Title}}{}
 \@ifundefined{@APAshorttitle}{%
  \PackageWarningNoLine{apatitlepage}{Short title not defined}\def\@APAshorttitle{INSERT SHORTTITLE COMMAND IN PREAMBLE}}{}
 \@ifundefined{@affil}{%
  \PackageWarningNoLine{apatitlepage}{Affiliation not defined}\def\@affil{Affiliation}}{}
 \@ifundefined{@APAabstract}{%
  \PackageWarningNoLine{apatitlepage}{Abstract not defined}}{}
 \@ifundefined{@APAkeywords}{%
  \PackageInfo{apatitlepage}{Keywords not defined}}{}
 \@ifundefined{@authorSix}{%                                   % -- thp 2006/01/05
  \@ifundefined{@authorFive}{%                                 % -- thp 2006/01/05
   \@ifundefined{@authorFour}{%
    \@ifundefined{@authorThree}{%
     \@ifundefined{@authorTwo}{%
     }{\@ifundefined{@affilTwo}{\@error@toomanyauthors}{}}
    }{\@ifundefined{@affilThree}{\@error@toomanyauthors}{}}
   }{\@ifundefined{@affilFour}{\@error@toomanyauthors}{}}
  }{\@ifundefined{@affilFive}{\@error@toomanyauthors}{}}       % -- thp 2006/01/05
 }{\@ifundefined{@affilSix}{\@error@toomanyauthors}{}}         % -- thp 2006/01/05
 \@ifundefined{@affilSix}{%                                    % -- thp 2006/01/05
  \@ifundefined{@affilFive}{%                                  % -- thp 2006/01/05
   \@ifundefined{@affilFour}{%
    \@ifundefined{@affilThree}{%
     \@ifundefined{@affilTwo}{%
     }{\@ifundefined{@authorTwo}{\@error@toomanyaffils}{}}
    }{\@ifundefined{@authorThree}{\@error@toomanyaffils}{}}
   }{\@ifundefined{@authorFour}{\@error@toomanyaffils}{}}
  }{\@ifundefined{@authorFive}{\@error@toomanyaffils}{}}       % -- thp 2006/01/05
 }{\@ifundefined{@authorSix}{\@error@toomanyaffils}{}}         % -- thp 2006/01/05
}
\def\put@one@authaffil#1#2{%
  \parbox[t]{\textwidth}{\begin{center}{\APAauthformat #1\vspace{0in}}%
                        {\\\APAaffilformat #2\vspace{0.05in}\\}\end{center}}}

\newsavebox\auone@box
\newsavebox\autwo@box
\newsavebox\autot@box
\newlength\auone@boxwidth
\newlength\autwo@boxwidth
\newlength\autot@boxwidth

\def\default@d@authaffil#1#2#3#4{%
        \parbox[t]{\columnwidth}{\begin{center}{\APAauthformat #1\vspace{0in}}%
                                {\\\APAauthformat #2\vspace{0.05in}\\}\end{center}}%
        \parbox[t]{\columnwidth}{\begin{center}{\APAauthformat #3\vspace{0in}}%
                                {\\\APAauthformat #4\vspace{0.05in}\\}\end{center}}}

\def\uneven@d@authaffil#1#2#3#4{%
     \hfill\parbox[t]{\auone@boxwidth}{\begin{center}{\APAauthformat #1\vspace{0in}}%
                                      {\\\APAauthformat #2\vspace{0.05in}\\}\end{center}}\hfill\hfill%
           \parbox[t]{\autwo@boxwidth}{\begin{center}{\APAauthformat #3\vspace{0in}}%
                                      {\\\APAauthformat #4\vspace{0.05in}\\}\end{center}}\hfill}

\def\put@two@authaffil#1#2#3#4{%
     \let\disp@authaffil\default@d@authaffil
     \sbox\auone@box{\begin{tabular}{c}\APAauthformat #1\\\APAauthformat #2\end{tabular}}
     \settowidth{\auone@boxwidth}{\usebox\auone@box}
     \sbox\autwo@box{\begin{tabular}{c}\APAauthformat #3\\\APAauthformat #4\end{tabular}}
     \settowidth{\autwo@boxwidth}{\usebox\autwo@box}
     \ifdim\auone@boxwidth<1.25\columnwidth
      \ifdim\autwo@boxwidth<1.25\columnwidth
       \sbox\autot@box{\usebox\auone@box\hspace{0.4in}\usebox\autwo@box}
       \settowidth{\autot@boxwidth}{\usebox\autot@box}
       \ifdim\autot@boxwidth<\textwidth
        \let\disp@authaffil\uneven@d@authaffil
       \fi
      \fi
     \fi
     \ifdim\auone@boxwidth<\columnwidth
      \ifdim\autwo@boxwidth<\columnwidth
       \let\disp@authaffil\default@d@authaffil
      \fi
     \fi
     \disp@authaffil{#1}{#2}{#3}{#4}
}

\def\APAmaketitle{
 \check@author
\twocolumn[  % anything appearing within the brackets is set in one-column mode
  \vspace{0.03in}
  \begin{center}
  {\APAtitleformat\@APAtitle}\\
  \vspace{-0.05in}
      \@ifundefined{@authorTwo}{
    % one author-affiliation
      \put@one@authaffil{\@APAauthor}{\@affil}}{
      \@ifundefined{@authorThree}{
    % two authors-affiliations
      \put@two@authaffil{\@authorOne}{\@affilOne}{\@authorTwo}{\@affilTwo}}{
      \@ifundefined{@authorFour}{
    % three authors-affiliations
      \@ifundefined{@twofirst}{
    % first one, then two
      \put@one@authaffil{\@authorOne}{\@affilOne}\vspace{-0.15in}\\
      \put@two@authaffil{\@authorTwo}{\@affilTwo}{\@authorThree}{\@affilThree}
      }{
    % first two, then one
      \put@two@authaffil{\@authorOne}{\@affilOne}{\@authorTwo}{\@affilTwo}\vspace{-0.15in}\\
      \put@one@authaffil{\@authorThree}{\@affilThree}
      }}{
      \@ifundefined{@authorFive}{ % 2006/01/05 as contributed by Aaron Geller
    % four authors-affiliations
      \put@two@authaffil{\@authorOne}{\@affilOne}{\@authorTwo}{\@affilTwo}\vspace{-0.15in}\\
      \put@two@authaffil{\@authorThree}{\@affilThree}{\@authorFour}{\@affilFour}
      }{                          % 2006/01/05 beginning of Aaron Geller contribution
      \@ifundefined{@authorSix}{ % -- thp 2006/01/05
    % five authors-affiliations
      \put@two@authaffil{\@authorOne}{\@affilOne}{\@authorTwo}{\@affilTwo}\vspace{-0.15in}\\
      \put@two@authaffil{\@authorThree}{\@affilThree}{\@authorFour}{\@affilFour}%
      \vspace{-0.15in}\\ % thp added negative vertical space
      \put@one@authaffil{\@authorFive}{\@affilFive}
      }{                          % 2006/01/05 end of Aaron Geller contribution
    % six authors-affiliations
    %% --- thp 2006/01/05 beginning of six-author display
      \put@two@authaffil{\@authorOne}{\@affilOne}{\@authorTwo}{\@affilTwo}\vspace{-0.15in}\\
      \put@two@authaffil{\@authorThree}{\@affilThree}{\@authorFour}{\@affilFour}\vspace{-0.15in}\\
      \put@two@authaffil{\@authorFive}{\@affilFive}{\@authorSix}{\@affilSix}
    %% --- thp 2006/01/05 end of six-author display
      }}}}}
      \@ifundefined{@APAnote}
       {\vspace{0.07in}}
       {\vspace{0.07in}\\ {\APAauthformat\@APAnote\vspace{0.07in}}}


  \@ifundefined{@APAabstract}
  {\par }
  {\par \parbox{4.6875in}
   {\small \noindent \@APAabstract
     \@ifundefined{@APAkeywords}{}{%
      \par\vspace{0.12in}\raggedright\textit{\keywordname:} \@APAkeywords%
     }%
   }
   \vspace{0.24in}%
  }
  \end{center}
 ]
 \onecolumn
 }
\endinput

相关内容