%% %% This is file `apa7.cls', %% generated with the docstrip utility. %% %% The original source files were: %% %% apa7.dtx (with options: `class') %% ---------------------------------------------------------------------- %% %% apa7 - A LaTeX class for formatting documents in compliance with the %% American Psychological Association's Publication Manual, 7th edition %% %% Copyright (C) 2020 by Daniel A. Weiss %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License (LPPL), either %% version 1.3c of this license or (at your option) any later %% version. The latest version of this license is in the file: %% %% http://www.latex-project.org/lppl.txt %% %% Users may freely modify these files without permission, as long as the %% copyright line and this statement are maintained intact. %% %% This work is not endorsed by, affiliated with, or probably even known %% by, the American Psychological Association. %% %% ---------------------------------------------------------------------- %% \ProvidesClass{apa7}[2020/10/11 v2.04 APA formatting (7th edition)] \NeedsTeXFormat{LaTeX2e} \DeclareOption{man}{% \def\def@man{\@manmode} } \DeclareOption{stu}{% \def\def@stu{\@stumode} \def\def@man{\@manmode} } \DeclareOption{jou}{% \def\def@jou{\@joumode} } \DeclareOption{doc}{% \def\def@doc{\@docmode} } \DeclareOption{babel}{% \def\def@babel{\@babel} } \DeclareOption{notimes}{% \@ifundefined{def@jou}{}{\def\def@notimes{\@notimes}} } \DeclareOption{notxfonts}{% -- thp 2005/07/23 \@ifundefined{def@jou}{}{\def\def@notxfonts{\@notxfonts}} } \DeclareOption{nosf}{% \@ifundefined{def@man}{}{\def\def@nosf{\@nosf}} } \DeclareOption{fignum}{% \@ifundefined{def@man}{}{\def\fig@num{\relax}} } \DeclareOption{longtable}{% \def\long@table{\relax} } \DeclareOption{tt}{% \@ifundefined{def@man}{}{\def\tt@family{\relax}} } \DeclareOption{helv}{% \@ifundefined{def@man}{}{\def\helv@family{\relax}} } \DeclareOption{notab}{\def\no@tab{\relax}} \DeclareOption{nobf}{\def\no@bf@title{\relax}} \DeclareOption{nolmodern}{% \def\def@nolmodern{\@nolmodernmode} } \DeclareOption{nofontenc}{% \def\def@nofontenc{\@nofontencmode} } \DeclareOption{noextraspace}{% \def\def@noextraspace{\@noextraspacemode} } \DeclareOption{donotrepeattitle}{% \def\def@donotrepeattitle{\@donotrepeattitlemode} } \DeclareOption{floatsintext}{% \def\def@floatsintext{\@floatsintext} } \DeclareOption{a4paper}{% \def\def@aFourPaper{\@aFourPapermode} } \DeclareOption{apacite}{% BDB \def\def@apacite{\@apacitemode} } \DeclareOption{natbib}{% BDB \def\def@natbib{\@natbibmode} } \DeclareOption{biblatex}{% BDB \def\def@biblatex{\@biblatexmode} } \DeclareOption{draftfirst}{% BDB \def\def@draftfirst{\@draftfirstmode} } \DeclareOption{draftall}{% BDB \def\def@draftall{\@draftallmode} } \DeclareOption{mask}{\def\apaSeven@maskauthoridentity{\relax}} % BDB \newcommand\apaSeven@ptsize{} \newcommand\apaSeven@noptsize{} \DeclareOption{10pt}{\renewcommand\apaSeven@ptsize{10pt}} \DeclareOption{11pt}{\renewcommand\apaSeven@ptsize{11pt}} \DeclareOption{12pt}{\renewcommand\apaSeven@ptsize{12pt}} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}} \ProcessOptions\relax \@ifundefined{def@man}{% \@ifundefined{def@doc}{% \@ifundefined{def@jou}{% \def\def@jou{\@joumode} \ClassInfo{apa7}{Using default mode (jou)} %\def\def@man{\@manmode} %\def\def@doc{\@docmode} }{} }{} }{} \@ifundefined{def@man}{% \@ifundefined{def@jou}{% \@ifundefined{def@doc}{% }{% doc \ifx\apaSeven@ptsize\apaSeven@noptsize \LoadClass[11pt]{article} % default for doc is 11pt \else \LoadClass[\apaSeven@ptsize]{article} \fi } }{% jou \ifx\apaSeven@ptsize\apaSeven@noptsize \LoadClass[10pt,twoside]{article} % default for jou is 10pt \else \LoadClass[\apaSeven@ptsize,twoside]{article} \fi } }{% man \ifx\apaSeven@ptsize\apaSeven@noptsize \LoadClass[12pt,twoside]{article} % default for man is 12pt \else \LoadClass[\apaSeven@ptsize]{article} \fi } \@ifundefined{def@apacite}{% \@ifundefined{def@natbib}{% \@ifundefined{def@biblatex}{% \def\def@biblatex{\@biblatexmode}% the default bibliography package is biblatex \RequirePackage{etoolbox} \AtEndPreamble{% \@ifpackageloaded{biblatex}{% the user has loaded biblatex \@ifundefined{def@man}{% \defbibheading{bibliography}{\section*{\normalfont\textbf\refname}}% }{% \defbibheading{bibliography}{\clearpage\section*{\normalfont\textbf\refname}}% } }{} } \ClassInfo{apa7}{No bibliography package was specified; defaulting to (but not loading) Biblatex} }{% \def\def@biblatex{\@biblatexmode}% the selected bibliography package is Biblatex \RequirePackage[style=apa,sortcites=true,sorting=nyt,backend=biber]{biblatex} \@ifundefined{def@man}{% \defbibheading{bibliography}{\section*{\normalfont\textbf\refname}}% }{% \defbibheading{bibliography}{\clearpage\section*{\normalfont\textbf\refname}}% } \ClassInfo{apa7}{The selected bibliography package, biblatex, has been loaded} } }{% \def\def@natbib{\@natbibmode}% the selected bibliography package is natbib (with apacite) \@ifundefined{def@man}{% -- thp 2005/07/23 \RequirePackage[natbibapa]{apacite}[2012/02/25]} {\RequirePackage[natbibapa,bibnewpage]{apacite}[2012/02/25]} \ClassInfo{apa7}{The selected bibliography package, apacite and natbib, have been loaded} } }{% \def\def@apacite{\@apacitemode}% the selected bibliography package is apacite \@ifundefined{def@man}{% -- thp 2005/07/23 \RequirePackage{apacite}[2005/06/08]} {\RequirePackage[bibnewpage]{apacite}[2005/06/08]} \ClassInfo{apa7}{The selected bibliography package, apacite, has been loaded} } \@ifundefined{def@nolmodern}{% \RequirePackage{lmodern} }{} \@ifundefined{def@nofontenc}{% \RequirePackage[T1]{fontenc} }{} \@ifundefined{def@draftall}{% \@ifundefined{def@draftfirst}{}{% \RequirePackage[firstpage]{draftwatermark} \SetWatermarkText{DRAFT} } }{% \RequirePackage{draftwatermark} \SetWatermarkText{DRAFT} } \long\def\ifapamodeman#1#2{\@ifundefined{def@man}{#2}{#1}} \long\def\ifapamodejou#1#2{\@ifundefined{def@jou}{#2}{#1}} \long\def\ifapamodedoc#1#2{\@ifundefined{def@doc}{#2}{#1}} \long\def\ifapamode#1#2#3{% \@ifundefined{def@man}{% \@ifundefined{def@jou}{% \@ifundefined{def@doc}{\ClassError{apa7}{Undefined mode state!}}{#3}% }{#2}% }{#1}% } \@ifundefined{def@man}{}{% \@ifundefined{long@table}{}{% \RequirePackage{array} \RequirePackage{longtable} }% END of loading longtable \@ifundefined{tt@family}{}{% \DeclareFontShape{OT1}{cmtt}{bx}{n}{ <-> cmssbx10 }{} % probably not the \DeclareFontShape{OT1}{cmtt}{bx}{it}{ <-> cmssbxo10}{} % right way to do it \renewcommand{\familydefault}{cmtt} } \@ifundefined{helv@family}{}{% \renewcommand{\familydefault}{phv}} } \@ifundefined{def@jou}{}{% \@ifundefined{def@notimes}{% \newif\iftxfonts % -- thp 2005/07/23 \txfontsfalse % added checks for txfonts because they may be undesirable % for example, there are no Greek txfonts but there are times \IfFileExists{txfonts.sty}{\@ifundefined{def@notxfonts}{\txfontstrue}{}}{} \iftxfonts% \RequirePackage{txfonts}% \typeout{apa7.cls: Using txfonts}% Changed from Warning -- thp 2005/12/28 %%% % According to Erik Meijer, txfonts causes problems if amsmath is loaded later % (i.e., via \usepackage by the user); instead of providing yet another option % to load amsmath by apa.cls, we adopt Erik's suggestion to undefine temporarily % the offending macros -- thp 2005/12/28 \let\tempiint\iint\let\iint\undefined \let\tempiiint\iiint\let\iiint\undefined \let\tempiiiint\iiiint\let\iiiint\undefined \let\tempidotsint\idotsint\let\idotsint\undefined \let\tempopenbox\openbox\let\openbox\undefined \AtBeginDocument{% \let\iint\tempiint\let\tempiint\undefined \let\iiint\tempiiint\let\tempiiint\undefined \let\iiiint\tempiiiint\let\tempiiiint\undefined \let\idotsint\tempidotsint\let\tempidotsint\undefined \let\openbox\tempopenbox\let\tempopenbox\undefined } %%% end of taking care of txfonts problems \else% % if txfonts are not available/desirable, try pslatextimes/mathptm \IfFileExists{pslatex.sty} {\RequirePackage{pslatex}} % if pslatex is not available, try times/mathptm {\RequirePackage{times} \IfFileExists{mathptm.sty}{\RequirePackage{mathptm}}{}}% \fi% txfonts not available/desirable }{}% def@notimes }% def@jou \@ifundefined{def@aFourPaper}{ \RequirePackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} }{ \RequirePackage[top=1in, bottom=1in, left=1in, right=1in,a4paper]{geometry} } \RequirePackage{graphicx} % this is for including graphics \RequirePackage{scalerel,tikz,hyperref} % this is included for ORCID icon \usetikzlibrary{svg.path} \definecolor{orcidlogocol}{HTML}{A6CE39} \tikzset{ orcidlogo/.pic={ \fill[orcidlogocol] svg{M256,128c0,70.7-57.3,128-128,128C57.3,256,0,198.7,0,128C0,57.3,57.3,0,128,0C198.7,0,256,57.3,256,128z}; \fill[white] svg{M86.3,186.2H70.9V79.1h15.4v48.4V186.2z} svg{M108.9,79.1h41.6c39.6,0,57,28.3,57,53.6c0,27.5-21.5,53.6-56.8,53.6h-41.8V79.1z M124.3,172.4h24.5c34.9,0,42.9-26.5,42.9-39.7c0-21.5-13.7-39.7-43.7-39.7h-23.7V172.4z} svg{M88.7,56.8c0,5.5-4.5,10.1-10.1,10.1c-5.6,0-10.1-4.6-10.1-10.1c0-5.6,4.5-10.1,10.1-10.1C84.2,46.7,88.7,51.3,88.7,56.8z}; } } \newcommand{\addORCIDlink}[2]{#1 \href{https://orcid.org/#2}{{\mbox{\scalerel*{ \begin{tikzpicture}[yscale=-1,transform shape] \pic{orcidlogo}; \end{tikzpicture} }{|}}} https://orcid.org/#2}} \RequirePackage{booktabs} % this is for nice-looking tables \setlength{\abovetopsep}{0pt} % set the distance between the table title and the table toprule \setlength{\belowbottomsep}{0pt} % set the distance between the table bottomrule and any notes \RequirePackage[para,flushleft]{threeparttable} % this is for nice-looking table footnotes, etc. \@ifundefined{def@man}{% BDB \def\TPT@doparanotes{\par\vspace{-.5\baselineskip}% BDB \prevdepth\z@ \TPT@hsize \TPTnoteSettings \parindent\z@ \pretolerance 8 \linepenalty 200 \renewcommand\item[1][]{\relax\ifhmode \begingroup \unskip \advance\hsize 10em % \hsize is scratch register, based on real hsize \penalty -45 \hskip\z@\@plus\hsize \penalty-19 \hskip .15\hsize \penalty 9999 \hskip-.15\hsize \hskip .01\hsize\@plus-\hsize\@minus.01\hsize \hskip 1em\@plus .3em \endgroup\fi \tnote{##1}\,\ignorespaces}% \let\TPToverlap\relax \def\endtablenotes{\par}% } }{% \def\TPT@doparanotes{\par\vspace{-.4\baselineskip}% BDB \prevdepth\z@ \TPT@hsize \TPTnoteSettings \raggedright \parindent\z@ \pretolerance 8 \linepenalty 200 \renewcommand\item[1][]{\relax\ifhmode \begingroup \unskip \advance\hsize 10em % \hsize is scratch register, based on real hsize \penalty -45 \hskip\z@\@plus\hsize \penalty-19 \hskip .15\hsize \penalty 9999 \hskip-.15\hsize \hskip .01\hsize\@plus-\hsize\@minus.01\hsize \hskip 1em\@plus .3em \endgroup\fi \tnote{##1}\,\ignorespaces}% \let\TPToverlap\relax \def\endtablenotes{\par}% } } \def\lastauthorseparator{and} \def\acksname{Author Note} \def\keywordname{Keywords} \def\notesname{Footnotes} \AtBeginDocument{% so that we know what language is active in babel % Unfortunately, because babel is built into the format % in modern distributions, \iflanguage is defined and % \languagename contains whichever language happens to be % last in the definition list, whether or not the babel % package is loaded by the current document \@ifpackageloaded{babel}% this is defined only if the user requested loading babel {\def\@apaSeven@langfile{config/APA7\languagename.txt}} {\def\@apaSeven@langfile{config/APA7american.txt}} \InputIfFileExists{\@apaSeven@langfile}{}{% \ClassInfo{apa7}{Language definition file \@apaSeven@langfile\space not found} }% } \@ifundefined{def@babel}{}{% -- thp 2005/07/23 \RequirePackage{babel} % -- thp 2005/07/23, removed options 2005/12/28 } \@ifundefined{def@biblatex}{}{% BDB % we are using biblatex %%%%%%%%%%%% biblatex commands %%%%%%%%%%%%%%%% %% %% \cite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk, 2001; Ross, 1987, p. 11 %% \Cite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., Van Dijk, 2001; Ross, 1987, p. 11 %% \parencite[e.g.,][p.~11]{vanDijk2001,Ross1987} => (e.g., van Dijk, 2001; Ross, 1987, p. 11) %% \Parencite[e.g.,][p.~11]{vanDijk2001,Ross1987} => (e.g., Van Dijk, 2001; Ross, 1987, p. 11) %% \textcite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk (2001); Ross (1987, p. 11) %% \Textcite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., Van Dijk (2001); Ross (1987, p. 11) %% \citeauthor[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk (2001); Ross (1987, p. 11) %% \Citeauthor[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., Van Dijk (2001); Ross (1987, p. 11) %% \citeyear[e.g.,][p.~11]{vanDijk2001} => e.g., 2001, p. 11) %% \footcite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk, 2001; Ross, 1987, p. 11. [as footnote] %% \footcitetext[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk, 2001; Ross, 1987, p. 11. [as footnotetext] %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \@ifundefined{apaSeven@maskauthoridentity}% BDB {% change masked references to unmasked \providecommand\maskcite\cite \providecommand\maskCite\Cite \providecommand\maskparencite\parencite \providecommand\maskParencite\Parencite \providecommand\masktextcite\textcite \providecommand\maskTextcite\Textcite \providecommand\maskciteauthor\citeauthor \providecommand\maskCiteauthor\Citeauthor \providecommand\maskciteyear\citeyear \providecommand\maskfootcite\footcite \providecommand\maskfootcitetext\footcitetext }{% mask references to author \RequirePackage{substr} % to allow counting of masked references \newcounter{maskedRefs} % \maskcite \newcommand\maskcite{\@ifnextchar[{\maskcite@@also}{\maskcite@@also[]}} \newcommand\maskcite@@also{} \def\maskcite@@also[#1]{\@ifnextchar[{\maskcite@@@also[#1]}{\maskcite@@@also[][#1]}} \def\maskcite@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskCite \newcommand\maskCite{\@ifnextchar[{\maskCite@@also}{\maskCite@@also[]}} \newcommand\maskCite@@also{} \def\maskCite@@also[#1]{\@ifnextchar[{\maskCite@@@also[#1]}{\maskCite@@@also[][#1]}} \def\maskCite@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskparencite \newcommand\maskparencite{\@ifnextchar[{\maskparencite@@also}{\maskparencite@@also[]}} \newcommand\maskparencite@@also{} \def\maskparencite@@also[#1]{\@ifnextchar[{\maskparencite@@@also[#1]}{\maskparencite@@@also[][#1]}} \def\maskparencite@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskParencite \newcommand\maskParencite{\@ifnextchar[{\maskParencite@@also}{\maskParencite@@also[]}} \newcommand\maskParencite@@also{} \def\maskParencite@@also[#1]{\@ifnextchar[{\maskParencite@@@also[#1]}{\maskParencite@@@also[][#1]}} \def\maskParencite@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskciteauthor \newcommand\maskciteauthor{\@ifnextchar[{\maskciteauthor@@also}{\maskciteauthor@@also[]}} \newcommand\maskciteauthor@@also{} \def\maskciteauthor@@also[#1]{\@ifnextchar[{\maskciteauthor@@@also[#1]}{\maskciteauthor@@@also[][#1]}} \def\maskciteauthor@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskCiteauthor \newcommand\maskCiteauthor{\@ifnextchar[{\maskCiteauthor@@also}{\maskCiteauthor@@also[]}} \newcommand\maskCiteauthor@@also{} \def\maskCiteauthor@@also[#1]{\@ifnextchar[{\maskCiteauthor@@@also[#1]}{\maskCiteauthor@@@also[][#1]}} \def\maskCiteauthor@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskciteyear \newcommand\maskciteyear{\@ifnextchar[{\maskciteyear@@also}{\maskciteyear@@also[]}} \newcommand\maskciteyear@@also{} \def\maskciteyear@@also[#1]{\@ifnextchar[{\maskciteyear@@@also[#1]}{\maskciteyear@@@also[][#1]}} \def\maskciteyear@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskfootcite \newcommand\maskfootcite{\@ifnextchar[{\maskfootcite@@also}{\maskfootcite@@also[]}} \newcommand\maskfootcite@@also{} \def\maskfootcite@@also[#1]{\@ifnextchar[{\maskfootcite@@@also[#1]}{\maskfootcite@@@also[][#1]}} \def\maskfootcite@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskfootcitetext \newcommand\maskfootcitetext{\@ifnextchar[{\maskfootcitetext@@also}{\maskfootcitetext@@also[]}} \newcommand\maskfootcitetext@@also{} \def\maskfootcitetext@@also[#1]{\@ifnextchar[{\maskfootcitetext@@@also[#1]}{\maskfootcitetext@@@also[][#1]}} \def\maskfootcitetext@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \masktextcite \newcommand\masktextcite{\@ifnextchar[{\masktextcite@@also}{\masktextcite@@also[]}} \newcommand\masktextcite@@also{} \def\masktextcite@@also[#1]{\@ifnextchar[{\masktextcite@@@also[#1]}{\masktextcite@@@also[][#1]}} \def\masktextcite@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } % \maskTextcite \newcommand\maskTextcite{\@ifnextchar[{\maskTextcite@@also}{\maskTextcite@@also[]}} \newcommand\maskTextcite@@also{} \def\maskTextcite@@also[#1]{\@ifnextchar[{\maskTextcite@@@also[#1]}{\maskTextcite@@@also[][#1]}} \def\maskTextcite@@@also% [#1][#2]#3{% \setcounter{maskedRefs}{0}% \SubStringsToCounter{maskedRefs}{,}{#3}% \addtocounter{maskedRefs}{1}% \ifnum\value{maskedRefs} = 1% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}% \else% \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}% \fi% \apaSeven@masked@refs% } } } \newskip\b@level@one@skip \b@level@one@skip=2.5ex plus 1ex minus .2ex \newskip\e@level@one@skip \e@level@one@skip=1.5ex plus .6ex minus .1ex \newskip\b@level@two@skip \b@level@two@skip=2.5ex plus 1ex minus .2ex \newskip\e@level@two@skip \e@level@two@skip=1.5ex plus .6ex minus .1ex \newskip\b@level@three@skip \b@level@three@skip=2.0ex plus .8ex minus .2ex \newskip\e@level@three@skip \e@level@three@skip=1.5ex plus .6ex minus .1ex \newskip\b@level@four@skip \b@level@four@skip=1.8ex plus .8ex minus .2ex \newskip\e@level@four@skip \e@level@four@skip=1.5ex plus .6ex minus .1ex \newskip\b@level@five@skip \b@level@five@skip=1.8ex plus .8ex minus .2ex \newskip\e@level@five@skip \e@level@five@skip=0ex \ifapamodeman{% \@ifundefined{def@noextraspace}{}{% % redefine the vertical section spacing \b@level@one@skip=0.2\baselineskip \@plus 0.2ex \@minus 0.2ex \e@level@one@skip=0.2\baselineskip \@plus .2ex \b@level@two@skip=0.2\baselineskip \@plus 0.2ex \@minus 0.2ex \e@level@two@skip=0.2\baselineskip \@plus 0.2ex \b@level@three@skip=0.2\baselineskip \@plus 0.2ex \@minus 0.2ex \e@level@three@skip=0.2\baselineskip \@plus 0.2ex \b@level@four@skip=0\baselineskip \@plus 0.2ex \@minus 0.2ex \e@level@four@skip=-\z@ \b@level@five@skip=0\baselineskip \@plus 0.2ex \@minus 0.2ex \e@level@five@skip=0ex } }{} \setcounter{secnumdepth}{0} \renewcommand{\section}{\@startsection {section}{1}{\z@}% {\b@level@one@skip}{\e@level@one@skip}% {\centering\normalfont\normalsize\bfseries}} \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}% {\b@level@two@skip}{\e@level@two@skip}% {\normalfont\normalsize\bfseries}} \newcommand*{\typesectitle}[1]{#1\addperi} \newcommand*{\addperi}{% \relax\ifhmode% \ifnum\spacefactor>\@m \else.\fi% \fi% } \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}% {\b@level@three@skip}{\e@level@three@skip}% {\normalfont\normalsize\bfseries\itshape}} \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\parindent}% {0\baselineskip \@plus 0.2ex \@minus 0.2ex}% {-1em}% {\normalfont\normalsize\bfseries\typesectitle}} \renewcommand{\subparagraph}[1]{\@startsection{subparagraph}{5}{1em}% {0\baselineskip \@plus 0.2ex \@minus 0.2ex}% {-\z@\relax}% {\normalfont\normalsize\bfseries\itshape\hspace{\parindent}{#1}\textit{\addperi}}{\relax}} \AtBeginDocument{\def\st@rtbibsection{\mspart{\refname}}}% BDB -- this is for apacite \AtBeginDocument{\def\bibsection{\mspart{\refname}}}% BDB -- this is for apacite + natbib \newcommand{\mspart}{{\ifapamodeman{\clearpage}{}}\@startsection {section}{1}{\z@}% {\b@level@one@skip}{\e@level@one@skip}% {\centering\normalfont\normalsize}} \RequirePackage[singlelinecheck=off]{caption} \ifapamode{% man \DeclareCaptionLabelFormat{tablelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}} \DeclareCaptionLabelFormat{figurelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}} \DeclareCaptionTextFormat{tabletext}{\hspace{-\parindent}\raggedright\textit{#1}} \DeclareCaptionLabelSeparator{apalabelsep}{\\} }{% jou \DeclareCaptionLabelFormat{tablelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}} \DeclareCaptionLabelFormat{figurelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}} \DeclareCaptionTextFormat{tabletext}{\hspace{-\parindent}\textit{#1}} \DeclareCaptionLabelSeparator{apalabelsep}{\\ \\} }{% doc \DeclareCaptionLabelFormat{tablelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}} \DeclareCaptionLabelFormat{figurelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}} \DeclareCaptionTextFormat{tabletext}{\hspace{-\parindent}\raggedright\textit{#1}} \DeclareCaptionLabelSeparator{apalabelsep}{\\ \\} } \captionsetup[table]{position=above,skip=0pt,labelformat=tablelabel,labelsep=apalabelsep,textformat=tabletext} \captionsetup[figure]{position=above,skip=0pt,labelformat=figurelabel,labelsep=apalabelsep,textfont=it} \newcommand{\figurenote}[1]{\par \small \textit{Note.} {#1}} \newcounter{APAenum} \newskip\@text@par@indent \def\APAenumerate{\@text@par@indent\parindent\setbox0\hbox{1. }% \list{\arabic{APAenum}.}{\usecounter{APAenum} \labelwidth\z@\labelsep\z@\leftmargin\z@\parsep\z@ \rightmargin\z@\itemsep\z@\topsep\z@\partopsep\z@ \itemindent\@text@par@indent\advance\itemindent by\wd0 \def\makelabel##1{\hss\llap{##1 }}}} \let\endAPAenumerate=\endlist \def\seriate{\@bsphack\begingroup% \setcounter{APAenum}{0}% \def\item{\addtocounter{APAenum}{1}(\alph{APAenum})\space}% \ignorespaces} \def\endseriate{\endgroup\@esphack} \def\APAitemize{\@text@par@indent\parindent\setbox0\hbox{$\bullet$}% \list{$\bullet$}{% \labelwidth\z@\labelsep.5em\leftmargin\z@\parsep\z@ \rightmargin\z@\itemsep\z@\topsep\z@\partopsep\z@ \itemindent\@text@par@indent \advance\itemindent by\wd0\advance\itemindent by.5em \def\makelabel##1{\hss\llap{##1}}}} \let\endAPAitemize=\endlist \long\def\title#1{\long\def\@title{#1}} \long\def\author#1{\authorsnames{#1}} \long\def\affiliation#1{\ClassWarning{apa7}{Deprecated: see documentation for \string\authorsaffiliations}\authorsaffiliations{#1}} \long\def\twoauthors#1#2{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}} \long\def\threeauthors#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}} \long\def\onetwoauthors#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}} \long\def\twooneauthors#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}} \long\def\fourauthors#1#2#3#4{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}} \long\def\fiveauthors#1#2#3#4#5{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}} \long\def\sixauthors#1#2#3#4#5#6{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}} \long\def\twoaffiliations#1#2{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}} \long\def\threeaffiliations#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}} \long\def\fouraffiliations#1#2#3#4{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}} \long\def\fiveaffiliations#1#2#3#4#5{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}} \long\def\sixaffiliations#1#2#3#4#5#6{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}} \long\def\course#1{\long\def\@course{#1}} \long\def\professor#1{\long\def\@professor{#1}} \long\def\duedate#1{\long\def\@duedate{#1}} \long\def\shorttitle#1{\long\def\@shorttitle{#1}} \long\def\note#1{\long\def\@note{#1}} \long\def\abstract#1{\long\def\@abstract{#1}} \long\def\keywords#1{\long\def\@keywords{#1}} \long\def\authornote#1{\long\def\@acks{#1}} \def\journal#1{\RequirePackage{fancyhdr}\def\@journal{#1}} \def\volume#1{\def\@vvolume{#1}} \def\ccoppy#1{\def\@ccoppy{#1}} \def\copnum#1{\def\@copnum{#1}} \newcommand*\listauthors{} \newcommand*\listsuperscripts{} \newcommand*\listaffiliations{} \newcommand*{\authorsnames}[2][]{ \def\def@multipleauthors{\@multipleauthorsmode} % \renewcommand*\listauthors{} \renewcommand*\listsuperscripts{} \newcounter{NumberOfAuthors} \newcounter{NumberOfSuperscripts} \forcsvlist{\stepcounter{NumberOfAuthors}\listadd\listauthors}{#2} \forcsvlist{\stepcounter{NumberOfSuperscripts}\listadd\listsuperscripts}{#1} } \newcommand*{\authorsaffiliations}[1]{ \def\def@multipleaffils{\@multipleaffilsmode} % \renewcommand*\listaffiliations{} \newcounter{NumberOfAffiliations} \forcsvlist{\stepcounter{NumberOfAffiliations}\listadd\listaffiliations}{#1} } \makeatletter \catcode`\|=3 \def\looptwo#1#2{% \edef\tmp{\noexpand\xtwo% \unexpanded\expandafter{#1}\relax % no added delimiter here \unexpanded\expandafter{#2}\relax % no added delimiter here } \tmp% }% \def\xtwo#1|#2\relax#3|#4\relax{% \dotwo{#1}{#3}% \def\tmp{#2}% \ifx\empty\tmp% \expandafter\@gobble% \else% \expandafter\@firstofone% \fi% {\xtwo#2\relax#4\relax}% }% \catcode`\|=12 \makeatother \newcommand*{\dotwo}[2]{} \newcommand*{\authorsep}{}% \newcommand*{\lastauthor}{}% \newcommand*{\prelastauthor}{}% \newcommand*{\prelastauthorsep}{}% \newcommand{\displayauthors}{% \renewcommand*{\authorsep}{}% \renewcommand*{\lastauthor}{}% \renewcommand*{\prelastauthor}{}% \renewcommand*{\prelastauthorsep}{}% \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print authors without superscripts. \renewcommand*{\do}[1]{% \authorsep% \lastauthor% \renewcommand{\lastauthor}{% \renewcommand{\authorsep}{, \renewcommand*{\prelastauthorsep}{,}}% \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space ##1% }% }% \dolistloop{\listauthors}% \else \renewcommand*{\dotwo}[2]{% \authorsep% \lastauthor% \renewcommand{\lastauthor}{% \renewcommand{\authorsep}{, \renewcommand*{\prelastauthorsep}{,}}% \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space ##1\textsuperscript{##2}% }% }% \looptwo\listauthors\listsuperscripts% \fi \prelastauthor \lastauthor% } \newcommand{\displayaffiliations}{% \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print affiliations without superscripts. \renewcommand*{\do}[1]{% ##1\\% }% \else \newcounter{AffiliationNumber} \renewcommand*{\do}[1]{% \stepcounter{AffiliationNumber} \textsuperscript{\arabic{AffiliationNumber}}##1\\% }% \fi \dolistloop{\listaffiliations}% } \makeatletter \def\check@author{% \@ifundefined{def@multipleauthors}{% \ClassWarningNoLine{apa7}{Author not defined}\authorsnames{Author}}{} \@ifundefined{@title}{% \ClassWarningNoLine{apa7}{Title not defined}\def\@title{Title}}{} \@ifundefined{def@multipleaffils}{% \ClassWarningNoLine{apa7}{Affiliation not defined}\authorsaffiliations{Affiliation}}{} \@ifundefined{def@stu}{% man mode \@ifundefined{@shorttitle}{% \ClassWarningNoLine{apa7}{Short title not defined}\def\@shorttitle{INSERT SHORTTITLE COMMAND IN PREAMBLE}}{} \@ifundefined{@abstract}{% \ClassWarningNoLine{apa7}{Abstract not defined}}{} \@ifundefined{@keywords}{% \ClassInfo{apa7}{Keywords not defined}}{} }{ % stu mode \@ifundefined{@course}{% \ClassWarningNoLine{apa7}{Course title not defined}\def\@course{Course Title}}{} \@ifundefined{@professor}{% \ClassWarningNoLine{apa7}{Professor not defined}\def\@professor{Professor Name}}{} \@ifundefined{@duedate}{% \ClassWarningNoLine{apa7}{Due date not defined}\def\@duedate{Due Date}}{} \@ifundefined{@shorttitle}{% \def\@shorttitle{}}{}% } \@ifundefined{def@multipleauthors}{}{% \ifnum\value{NumberOfSuperscripts}=0% % do nothing. If no superscripts are specified, print authors and affiliations without superscripts. \else \ifnum\value{NumberOfAuthors}=\value{NumberOfSuperscripts}% % do nothing \else \ClassError{apa7}{Number of Authors does not match number of Superscripts}{Please provide an equal number of authors and superscripts.} \fi \fi }% } \newsavebox\gr@box \newlength\gr@boxwidth \newlength\gr@boxheight \newcommand{\fitfigure}[2][0.5]{% \sbox\gr@box{\includegraphics[width=\linewidth]{#2}} \settoheight{\gr@boxheight}{\usebox\gr@box} \ifdim\gr@boxheight>\textheight% \centerline{\includegraphics[height=#1\textheight]{#2}}% need to leave space for caption \else% \usebox\gr@box% \fi } \newcommand{\fitbitmap}[2][0.5]{ % like fitfigure but no scaling in man mode for best quality \sbox\gr@box{\includegraphics[width=\linewidth]{#2}} \settoheight{\gr@boxheight}{\usebox\gr@box} \ifdim\gr@boxheight>\textheight% \centerline{\includegraphics[height=#1\textheight]{#2}}% need to leave space for caption \else% \centerline{\usebox\gr@box}% \fi } \let\normal@BBAB\BBAB % -- thp 2005/07/23 \let\table@BBAB\BBAA % -- thp 2005/07/23 \setlength{\doublerulesep}{\arrayrulewidth} \newcommand\thickline{\hline\hline} \renewcommand\footnoterule{% \kern-3\p@ \hrule height0.125pt width.5in \kern2.6\p@} \let\apaSeventabular\tabular \let\apaSeven@doc@tabular\tabular %% \let\apaSeven@doc@endtabular\endtabular \def\@tab@fn#1{\ensuremath{^{\mbox{{\scriptsize #1}}}}} \def\tabfnm#1{\rlap{\@tab@fn{#1}}} \def\tabfnt#1#2{\raggedright\@tab@fn{#1}#2} \def\apaSevenvector#1{{\ensuremath \uprightlowercasegreek \ifapamodeman {\apaSevensmash{\mathop{\kern\z@\mathrm{#1}}\limits_{\scriptscriptstyle\sim}}}% {\if@bm@loaded\bm{\mathrm{#1}}\else\mathbf{#1}\fi% in case bm is not available }% }} \newcommand{\apaSevensmash}{% \def\finsm@sh{\dp\z@\z@ \box\z@}% \expandafter\mathpalette\expandafter\mathsm@sh }% \newif\if@bm@loaded\@bm@loadedfalse \IfFileExists{bm.sty}{\RequirePackage{bm}\@bm@loadedtrue}{}% if not, apaSevenvector will fail \newcommand{\uprightlowercasegreek}{% \@ifundefined{alphaup}{}{% \def\alpha {\alphaup }% \def\beta {\betaup }% \def\gamma {\gammaup }% \def\delta {\deltaup }% \def\epsilon {\epsilonup }% \def\varepsilon{\varepsilonup}% \def\zeta {\zetaup }% \def\eta {\etaup }% \def\theta {\thetaup }% \def\vartheta {\varthetaup }% \def\iota {\iotaup }% \def\kappa {\kappaup }% \def\lambda {\lambdaup }% \def\mu {\muup }% \def\nu {\nuup }% \def\xi {\xiup }% \def\pi {\piup }% \def\varpi {\varpiup }% \def\rho {\rhoup }% \def\varrho {\varrhoup }% \def\sigma {\sigmaup }% \def\varsigma {\varsigmaup }% \def\tau {\tauup }% \def\upsilon {\upsilonup }% \def\phi {\phiup }% \def\varphi {\varphiup }% \def\chi {\chiup }% \def\psi {\psiup }% \def\omega {\omegaup }% }% } \let\apaSevenmatrix\apaSevenvector \newcounter{appendix}\setcounter{appendix}{0} \renewcommand{\theappendix}{\@Alph\c@appendix} \def\apaSevenappfig{% \renewcommand\thefigure{\theappendix\@arabic\c@figure}% \ifapamodeman{\renewcommand\thepostfig{\theappendix\arabic{postfig}}}{}} \def\apaSevenapptab{% \renewcommand\thetable{\theappendix\@arabic\c@table}% \ifapamodeman{\renewcommand\theposttbl{\theappendix\arabic{posttbl}}}{}} \newif\ifoneappendix \oneappendixtrue % one appendix by default \newif\ifappendix \appendixfalse \def\appendix{% \ifapamodeman{\processdelayedfloats}{}% BDB -- output all tables and figures prior to the appendix \appendixtrue \apaSevenappfig \apaSevenapptab \let\old@apaSeven@section=\section % This will not work right with five levels in appendix. % Should go into \section, not \leveltwo but would also require % changes to section* and section[ (see \def\section above) % Who uses five level heading appendices anyway? \long\def\section##1{% \makeatletter% \def\@currentlabelname{##1}% \makeatother% \ifapamodeman{% \clearpage \setcounter{postfig}{0} \setcounter{posttbl}{0} }{% }% \setcounter{figure}{0}% \setcounter{table}{0}% \vskip2.5ex% \refstepcounter{appendix}% 2002/07/20 this takes care of references too \ifnum\c@appendix>1\immediate\write\@auxout{\global\string\oneappendixfalse}\fi% \centerline{\normalfont\normalsize\textbf\appendixname\ifoneappendix\else~\textbf\theappendix\fi}% \centerline{\normalfont\normalsize\bfseries##1}\par% \setlength{\parindent}{0.5in} \makeatletter% \@afterindentfalse% \@afterheading% \makeatother% }% } % end of appendix definition %%%%%%%%%%%%%%%%%%%%%%%%% %% %% %% MANUSCRIPT FORMAT %% %% AND STUDENT %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%% \@ifundefined{def@man}{}{% \def\@@spacing{1.655} \newcommand{\@doublespacing}{\linespread{1.655}} \@doublespacing \captionsetup[table]{skip=10pt} \captionsetup[figure]{skip=10pt} \def\rightheader#1{\def\r@headr{\protect\MakeUppercase{#1}}} \def\leftheader#1{\def\r@headl{#1}} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\newcommand{\shorttitle}[1]{\def\@shorttitle{#1}} \raggedright \RequirePackage{fancyhdr} \setlength{\headheight}{15.2pt} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancypagestyle{titlepage}{% \lhead{\MakeUppercase{\@shorttitle}}% \rhead{\thepage}% } \fancypagestyle{otherpage}{% \lhead{\MakeUppercase{\@shorttitle}}% \rhead{\thepage}% } \pagestyle{otherpage} %% added by BDB to make section heading non-bolface %% \@ifundefined{@acks}{}{\newpage\section{\acksname}\@acks} \let\@noendfloattab\table% BDB \let\@noendfloatfig\figure% BDB \RequirePackage[notablist,figlist,notabhead,nofighead,tablesfirst,nomarkers]{endfloat}[1995/10/11] \def\@gobbleuntilnext[#1]{} \let\eatarg\@gobbleuntilnext \let\ifnextchar\@ifnextchar \@ifundefined{def@floatsintext}{% Guillaume Jourjon 19/10/10 \def\figure{% \ifappendix \vspace*{\intextsep} \def\fps@figure{!hbt}% \@noendfloatfig \else \efloat@condopen{fff} \@nameuse{efloat@separator@fff}% \efloat@iwrite{fff}{\string\begin{figure*}[hbt]}% \global\def\@figure@written{\relax}% Set a flag that there is at least one figure -- thp 20010705 %% should be a global declaration to be "visible" at end document \ifnextchar[{\gobbleuntilnext[}{} \efloat@iwrite{fff}{\string\ifnextchar[{\string\eatarg}{}} \def\@currenvir{efloat@float}% \begingroup% \let\do\ef@makeinnocent \dospecials% \ef@makeinnocent\^^L% and whatever other special cases \endlinechar`\^^M \catcode`\^^M=12 \ef@xfigure% \fi% }% \def\table{% \ifappendix \vspace*{\intextsep} \def\fps@table{!hbt} \@noendfloattab \else \efloat@condopen{ttt} \@nameuse{efloat@separator@ttt}% \efloat@iwrite{ttt}{\string\begin{table*}[hbt]}% \ifnextchar[{\gobbleuntilnext[}{} \@ifundefined{hrm}{}{% \efloat@iwrite{ttt}{\string\sf}}% \efloat@iwrite{ttt}{\string\ifnextchar[{\string\eatarg}{}} % bj \def\@currenvir{efloat@float}% \begingroup \let\do\ef@makeinnocent \dospecials \ef@makeinnocent\^^L% and whatever other special cases \endlinechar`\^^M \catcode`\^^M=12 \ef@xtable% \fi }% \RequirePackage{etoolbox} \AtEndPreamble{% \@ifpackageloaded{rotating}{% \DeclareDelayedFloatFlavor{sidewaystable}{table} \DeclareDelayedFloatFlavor{sidewaysfigure}{figure} }{}% }% }{% \RequirePackage{float} \floatplacement{figure}{htb} \def\figure{\@float{figure}} \def\endfigure{\end@float} \floatplacement{table}{htb} \def\table{\@float{table}} \def\endtable{\end@float} } %%%%%%%%%%%%%%\long\def\@@contentsline#1#2#3{ #2 } %%%%%%%%%%%%%%\long\def\numberline#1#2{\noindent{\em\figurename\ #1.\/} #2\vspace{0.5\baselineskip}\par} %%%%%%%%%%%%%%\long\def\@@caption{\refstepcounter\@captype \@dblarg{\@@@caption\@captype}} %%%%%%%%%%%%%%\long\def\@@@caption#1[#2]#3{\addcontentsline{\csname %%%%%%%%%%%%%% ext@#1\endcsname}{#1}{\protect\numberline{\csname %%%%%%%%%%%%%% the#1\endcsname}{\ignorespaces #2}}} \def\processfigures{% \expandafter\ifnum \csname @ef@fffopen\endcsname>0 \immediate\closeout\efloat@postfff \ef@setct{fff}{0} \clearpage \if@figlist \@ifundefined{@figure@written}{}{% {\normalsize\@ifundefined{hrm}{}{\sf}% } } \fi \@ifundefined{fig@num}{% \pagestyle{otherpage} }{% \setcounter{page}{1} \def\@oddhead{\rightmark} % changed by Michael Erickson \markright{\hfill \s@title, \figurename\ \protect\thefigure} % to include appendix numbering % remove rm - thp 020227 } \def\baselinestretch{\@@spacing}\normalsize\@ifundefined{hrm}{}{\sf} \processfigures@hook \@input{\jobname.fff} \fi} \def\processtables{% \expandafter\ifnum \csname @ef@tttopen\endcsname>0 \immediate\closeout\efloat@postttt \ef@setct{ttt}{0} \clearpage \if@tabhead \section*{\tablesection} \suppressfloats[t] \fi \def\baselinestretch{\@@spacing} \processtables@hook \@ifundefined{hrm}{}{\sf}% \tiny\normalsize% \let\BBAB\table@BBAB% -- thp 2005/07/23 \@input{\jobname.ttt}% \let\BBAB\normal@BBAB% -- thp 2005/07/23 \fi} \captionsetup{justification=raggedright} \def\maketitle{ \@ifundefined{hrm}{}{\hrm} \check@author \begin{center} \vspace*{4\baselineskip} \textbf\@title% \ifapamodeman{% \@ifundefined{def@noextraspace}{% \vspace{\baselineskip}\\ }{} }{% \vspace{\baselineskip}\\ } \@ifundefined{def@stu}{ %Professional manuscript \@ifundefined{apaSeven@maskauthoridentity}{% BDB \displayauthors \\ \displayaffiliations \@ifundefined{@note} {\vspace*{\baselineskip} } {\@note} }{% mask author identity -- show nothing in the author or author note space } \end{center} \@ifundefined{apaSeven@maskauthoridentity}{ \@ifundefined{@acks} {} {% \vfill% \section{\normalfont\normalsize\textbf\acksname} \raggedright \setlength{\parindent}{0.5in} \indent\@acks\par% } }{% mask author identity -- show nothing in the author or author note space }}{% Student Manuscript \displayauthors \\ \displayaffiliations \@course \\ \@professor \\ \@duedate \\ \@ifundefined{@note} {\vspace*{\baselineskip} } {\@note} \end{center} \@ifundefined{@acks} {} {% \vfill% \section{\normalfont\normalsize\textbf\acksname} \raggedright \setlength{\parindent}{0.5in} \indent\@acks\par% } } \newpage %BDB\hyphenpenalty 10000 \fussy \@ifundefined{@abstract}{}{% \section{\normalfont\normalsize\textbf\abstractname}% BDB \noindent\@abstract\par% BDB \@ifundefined{@keywords}{}{% \setlength{\parindent}{0.5in}% BDB \indent\textit{\keywordname:} \@keywords% }% \newpage } \@ifundefined{def@donotrepeattitle}{ \section{\protect\normalfont\textbf{\@title}} }{}% \raggedright% \setlength{\parindent}{0.5in}% } \thispagestyle{titlepage} \setlength{\footnotesep}{16pt} \renewcommand\@makefntext[1]{\raggedright\textsuperscript{\@thefnmark}~#1} \newcommand{\footmark}[1]{${}^{\mbox{\normalsize #1}}$} %% added second set of braces around \em to get citations in man mode -- tp 17/7/2000 %% then removed them again because they were cancelling application of em to the caption \setcounter{topnumber}{1} \def\topfraction{.7} \setcounter{bottomnumber}{1} \def\bottomfraction{.6} \setcounter{totalnumber}{1} \def\textfraction{0} \def\floatpagefraction{.7} \setcounter{dbltopnumber}{1} \def\dbltopfraction{.7} \def\dblfloatpagefraction{.7} \def\dbltextfloatsep{\textfloatsep} \fussy \@ifundefined{def@nosf}{% \def\helvetica{% \ClassWarning{apa7}{ignored \string\helvetica\space (use helv option)} }}{\def\helvetica{\relax}} }% end of man mode (manuscript format) %%%%%%%%%%%%%%%%%%%% %% %% %% JOURNAL FORMAT %% %% %% %%%%%%%%%%%%%%%%%%%% \@ifundefined{def@jou}{}{% \renewcommand{\addORCIDlink}[2]{\href{https://orcid.org/#2}{{\mbox{\scalerel*{ \begin{tikzpicture}[yscale=-1,transform shape] \pic{orcidlogo}; \end{tikzpicture} }{|}}} #1}} \IfFileExists{flushend.sty}{\RequirePackage[keeplastbox]{flushend}}{} \IfFileExists{ftnright.sty}{ \let\savefootnoterule\footnoterule \let\save@makefntext\@makefntext \RequirePackage{ftnright} \let\footnoterule\savefootnoterule \let\@makefntext\save@makefntext }{} \def\rightheader#1{\def\r@headr{\protect\MakeUppercase{\protect\scriptsize #1}}} \def\leftheader#1{\def\r@headl{\protect\MakeUppercase{\protect\scriptsize #1}}} \def\r@headr{\protect\MakeUppercase{\protect\scriptsize\@shorttitle}}% BDB %%%%%%%%%%%%%%%%%%%%%%%\def\shorttitle#1{\def\r@headr{\protect\MakeUppercase{\protect\scriptsize #1}}}% BDB \def\maketitle{ \check@author \@ifundefined{r@headr}{\def\r@headr{\protect\MakeUppercase{\protect\scriptsize\@title}}}{} \@ifundefined{r@headl}{\def\r@headl{ADD \\LEFTHEADER COMMAND}}{} \twocolumn[ % anything appearing within the brackets is set in one-column mode \vspace{0.03in} \begin{center} {\LARGE \@title}\\ \vspace{-0.05in} \@ifundefined{apaSeven@maskauthoridentity}{% BDB \parbox[t]{\textwidth}{\begin{center}{\large \displayauthors\vspace{0in}}% {\displayaffiliations\vspace{0.05in}}\end{center}} \@ifundefined{@note} {\vspace{0.07in}} {\vspace{0.07in}\\ {\large\@note\vspace{0.07in}}} }{% mask author identity -- show nothing in the author or author space \vspace{0.32in} } \@ifundefined{@abstract} {\par } {\par \parbox{4.6875in} {\small \noindent \@abstract \@ifundefined{@keywords}{}{% \par\vspace{0.12in}\raggedright\textit{\keywordname:} \@keywords% }% } \vspace{0.24in}% } \end{center} ] % end of \twocolumn[] \pagenumbering{arabic} \@ifundefined{@journal}{\thispagestyle{empty}}{% \@ifundefined{@vvolume}{\def\@vvolume{\strut}}{}% \@ifundefined{@copnum}{\def\@copnum{\strut}}{}% \@ifundefined{@ccoppy}{\def\@ccoppy{\strut}}{}% \fancyhead{} \fancyhead[LO]{\stiny{\@journal}\vspace{-0.15\baselineskip}\\ \stiny{\@vvolume}} \fancyhead[RO]{\stiny{\@ccoppy}\vspace{-0.15\baselineskip}\\ \stiny{\@copnum}} \fancyfoot[CO]{\small\rm\thepage} % the following are needed if the starting page number is changed to % an even number: \fancyhead[LE]{\stiny{\@journal}\vspace{-0.15\baselineskip}\\ \stiny{\@vvolume}} \fancyhead[RE]{\stiny{\@ccoppy}\vspace{-0.15\baselineskip}\\ \stiny{\@copnum}} \fancyfoot[CE]{\small\rm\thepage} \renewcommand{\headrulewidth}{0pt} \renewcommand{\footrulewidth}{0pt} \thispagestyle{fancy} } \@ifundefined{apaSeven@maskauthoridentity}{% BDB \@ifundefined{@acks} {} {\begin{figure}[b] \parbox{\columnwidth}{\setlength{\parindent}{0.18in} \noindent\makebox[\columnwidth]{\vrule height0.125pt width\columnwidth}\vspace*{0.05in}\par {\footnotesize\hspace{-0.04in}\@acks\par}} \end{figure}} }{% mask author identity -- show nothing in the author note space } \@ifundefined{apaSeven@maskauthoridentity}{% BDB \markboth{\hfill\r@headl\hfill}{\hfill\r@headr\hfill} }{% mask author identity -- show the short title for both the left and right headers \markboth{\hfill\r@headr\hfill}{\hfill\r@headr\hfill} } \@ifundefined{no@tab}{\let\tabular\apaSeventabular}{} %\noindent } \newcommand\stiny{\@setfontsize\stiny\@vipt\@viipt} \setlength{\footnotesep}{0.2813in} \setlength{\topmargin}{-0.275in} \addtolength{\headheight}{0.02in} \addtolength{\headsep}{-0.156in} \setlength{\oddsidemargin}{-0.25in} \setlength{\evensidemargin}{-0.25in} \setlength{\textwidth}{6.94in} \setlength{\textheight}{8.9in} \setlength{\columnwidth}{8.5cm} \setlength{\columnsep}{0.25in} \setlength{\parindent}{0.15625in} %%\setlength{\parskip}{0in} \setlength{\textfloatsep}{0.35in} \setcounter{secnumdepth}{0} \def\ps@myheadings{% \let\@mkboth\@gobbletwo \def\@oddhead{\hbox{}\rightmark \hfil\rm\thepage} \def\@oddfoot{} \def\@evenhead{\rm\thepage\hfil\leftmark\hbox{}} \def\@evenfoot{} \def\sectionmark##1{} \def\subsectionmark##1{} } \pagestyle{myheadings} \setcounter{topnumber}{2} \def\topfraction{.85} \setcounter{bottomnumber}{2} \def\bottomfraction{.75} \setcounter{totalnumber}{3} \def\textfraction{.10} \def\floatpagefraction{.85} \setcounter{dbltopnumber}{2} \def\dbltopfraction{.85} \def\dblfloatpagefraction{.85} \def\dbltextfloatsep{0.8\textfloatsep} \let\footnotesize=\small \def\helvetica{\relax} \doublehyphendemerits5000 \hfuzz0pt \tolerance=9999 \pretolerance=-1 \emergencystretch=25pt \hbadness=30000 \hyphenpenalty=100 \@ifundefined{def@apacite}{}{% -- Philip Kime 2008/12/03 % Removed some bibliography redefinitions as per the instructions of Erik Meijer \bibleftmargin=1.2em % left these in because the default is too big \bibindent=-\bibleftmargin % and this is apparently not refefined each time \renewcommand{\bibliographytypesize}{\footnotesize}} \@ifundefined{def@natbib}{}{% -- Philip Kime 2008/12/03 % Removed some bibliography redefinitions as per the instructions of Erik Meijer \bibleftmargin=1.2em % left these in because the default is too big \bibindent=-\bibleftmargin % and this is apparently not refefined each time \renewcommand{\bibliographytypesize}{\footnotesize}} }% end of jou mode (journal format) %%%%%%%%%%%%%%%%%%%% %% %% %% REGULAR FORMAT %% %% %% %%%%%%%%%%%%%%%%%%%% \@ifundefined{def@doc}{}{% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\renewcommand{\shorttitle}[1]{\def\@shorttitle{#1}} \def\leftheader#1{\def\r@headl{#1}} \RequirePackage{fancyhdr} \setlength{\headheight}{15.2pt} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \fancypagestyle{otherpage}{% \lhead{\MakeUppercase{\@shorttitle}}% \rhead{\thepage}% } \pagestyle{otherpage} \def\maketitle{ \global\@topnum\z@ % to prevent tables before the title %% Erik Meijer, 2006/01/03 \@ifundefined{@acks}{% if there acknowledgements they make up a "float" on the 1st page \global\@botnum\z@}{% to prevent tables on the first page %% Erik Meijer, 2006/01/03 \global\@botnum\@ne}% to prevent tables below the footnote -- thp 2006/01/10 \check@author \@ifundefined{r@headr}{\typeout{Using title for running head} \def\r@headr{\protect\MakeUppercase{\@title}} \markright{\rm \@title \protect\\ \thepage}}{} \@ifundefined{r@headl}{\let\r@headl\r@headr}{} \@ifundefined{s@title}{\let\s@title\r@headr}{} \sloppy \setlength{\parindent}{0.5in} \begin{center} \@ifundefined{@journal}{}{% \@ifundefined{@vvolume}{\def\@vvolume{}}{}% \@ifundefined{@copnum}{\def\@copnum{}}{}% \@ifundefined{@ccoppy}{\def\@ccoppy{}}{}% {\scriptsize{\@journal}}\hspace{\fill}{\scriptsize{\@ccoppy}}\vspace{-0.3\baselineskip}\\ {\scriptsize{\@vvolume}}\hspace{\fill}{\scriptsize{\@copnum}}\vspace{0.1in}\\ } \vspace*{0.3in} {\LARGE \@title}\\ \vspace{0.3in} \@ifundefined{apaSeven@maskauthoridentity}{% BDB {\Large \displayauthors} \\ \displayaffiliations \vspace{0.1in} }{% mask author identity -- show nothing in the author note space } \@ifundefined{@abstract}{}{% {\abstractname}\vspace{0.1in}% BDB \parbox{5in}{\@abstract% \@ifundefined{@keywords}{}{% \par\vspace{0.12in}\textit{\keywordname:} \@keywords% }% }\vspace{0.25in}% } \end{center} \pagenumbering{arabic} \thispagestyle{empty} \@ifundefined{apaSeven@maskauthoridentity}{% BDB \@ifundefined{@acks} {} {\begin{figure}[b] \parbox{\textwidth}{ \setlength{\parindent}{0.2in} \noindent \makebox[\linewidth]{\vrule height0.125pt width\linewidth} \vspace*{0.05in} {\footnotesize \indent \@acks }} \end{figure}} }{% mask author identity -- show nothing in the author note space } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \markboth{\hfill \r@headl \hfill}{\hfill \r@headr \hfill} \let\tabular\apaSeven@doc@tabular% -- thp 2006/01/02 \let\endtabular\apaSeven@doc@endtabular% -- thp 2006/01/03 } \setlength{\topmargin}{-0.25in} \setlength{\oddsidemargin}{0.25in} \setlength{\evensidemargin}{0.25in} \setlength{\textwidth}{6in} \setlength{\textheight}{8.5in} \setcounter{secnumdepth}{0} \flushbottom \setlength{\headwidth}{\textwidth} \setcounter{topnumber}{2} \def\topfraction{.7} \setcounter{bottomnumber}{2} \def\bottomfraction{.6} \setcounter{totalnumber}{3} \def\textfraction{.2} \def\floatpagefraction{.7} \setcounter{dbltopnumber}{2} \def\dbltopfraction{.8} \def\dblfloatpagefraction{.8} \def\dbltextfloatsep{0.8\textfloatsep} \def\helvetica{\relax} %%\def\timesroman{\relax}% Commented out all \timesroman -- thp 2005/07/23 \@ifundefined{def@apacite}{}{% -- Philip Kime 2008/12/03 % Removed defs as per the instructions of Erik Meijer -- thp 2005/07/23 \renewcommand{\bibliographytypesize}{\small}} \@ifundefined{def@natbib}{}{% -- Philip Kime 2008/12/03 % Removed defs as per the instructions of Erik Meijer -- thp 2005/07/23 \renewcommand{\bibliographytypesize}{\small}} }% end of doc mode (regular LaTeX format) \let\ignore\@gobble \@ifundefined{def@apacite}{}{% -- Philip Kime 2008/12/03 \bibliographystyle{apacite} % % Thanks to Donald Arsenau for the right way to ignore \bibliographystyle % \def\bibliographystyle#1{\ClassWarning{apa7}{\string\bibliographystyle\space command ignored}}} \@ifundefined{def@natbib}{}{% -- Philip Kime 2008/12/03 \bibliographystyle{apacite} % % Thanks to Donald Arsenau for the right way to ignore \bibliographystyle % \def\bibliographystyle#1{\ClassWarning{apa7}{\string\bibliographystyle\space command ignored}}} %% %% Copyright (C) 2020 by Daniel A. Weiss %% %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License (LPPL), either %% version 1.3c of this license or (at your option) any later %% version. The latest version of this license is in the file: %% %% http://www.latex-project.org/lppl.txt %% %% Users may freely modify these files without permission, as long as the %% copyright line and this statement are maintained intact. %% %% This work is not endorsed by, affiliated with, or probably even known %% by, the American Psychological Association. %% %% This work is "maintained" (as per LPPL maintenance status) by %% Daniel A. Weiss. %% %% This work consists of the file apa7.dtx %% and the derived files apa7.ins, %% apa7.cls, %% apa7.pdf, %% README, %% APA7american.txt, %% APA7british.txt, %% APA7dutch.txt, %% APA7english.txt, %% APA7french.txt, %% APA7german.txt, %% APA7ngerman.txt, %% APA7greek.txt, %% APA7czech.txt, %% APA7turkish.txt, %% APA7endfloat.cfg, %% Figure1.pdf, %% shortsample.tex, %% longsample.tex, and %% bibliography.bib. %% %% %% End of file `apa7.cls'.