Debian Codegraph @

texmf-dist/source/latex/apa7/apa7.dtx

raw
1 % \iffalse meta-comment
2 % !TEX program = pdfLaTeX
3 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 % %
5 % CHANGE THESE VALUES WITH EACH NEW RELEASE: %
6 % %
7 %<class>\ProvidesClass{apa7}[2022/07/25 v2.16 APA formatting (7th edition)]
8 % %
9 %<*internal> %
10 \def\apaSevenVersionDate{2022/07/25}
11 \def\apaSevenVersionNumber{2.16}
12 % %
13 % %
14 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 \iffalse
16 %</internal>
17 %<*readme>
18 ----------------------------------------------------------------------
19
20 apa7 - A LaTeX class for formatting documents in compliance with the
21 American Psychological Association's Publication Manual, 7th edition
22
23 Copyright (C) 2022 by Daniel A. Weiss <daniel.weiss.led at gmail.com>
24
25 This work may be distributed and/or modified under the
26 conditions of the LaTeX Project Public License (LPPL), either
27 version 1.3c of this license or (at your option) any later
28 version. The latest version of this license is in the file:
29
30 http://www.latex-project.org/lppl.txt
31
32 Users may freely modify these files without permission, as long as the
33 copyright line and this statement are maintained intact.
34
35 This work is not endorsed by, affiliated with, or probably even known
36 by, the American Psychological Association.
37
38 ----------------------------------------------------------------------
39
40 The Publication Manual of the American Psychological Association is
41 widely used in the social sciences. The most recent update, in 2019,
42 altered the formatting guidelines and therefore rendered existing
43 formatting solutions inadequate. The apa7 class is an update of
44 older code from the apa6 class (available from CTAN). The student
45 manuscript type has been added. See the documentation for details.
46
47 ----------------------------------------------------------------------
48
49 Installation Notes:
50 1. Create directory "config" next to the file apa7.ins
51 2. Run latex apa7.ins
52 3. Move/copy apa7.cls to the directory of your latex install or the directory containing your latex project.
53 %</readme>
54 %<*internal>
55 \fi
56 \def\nameofplainTeX{plain}
57 \ifx\fmtname\nameofplainTeX\else
58 \expandafter\begingroup
59 \fi
60 %</internal>
61 %<*install>
62 \input docstrip.tex
63 \keepsilent
64 \askforoverwritefalse
65 \preamble
66 ----------------------------------------------------------------------
67
68 apa7 - A LaTeX class for formatting documents in compliance with the
69 American Psychological Association's Publication Manual, 7th edition
70
71 Copyright (C) 2022 by Daniel A. Weiss <daniel.weiss.led at gmail.com>
72
73 This work may be distributed and/or modified under the
74 conditions of the LaTeX Project Public License (LPPL), either
75 version 1.3c of this license or (at your option) any later
76 version. The latest version of this license is in the file:
77
78 http://www.latex-project.org/lppl.txt
79
80 Users may freely modify these files without permission, as long as the
81 copyright line and this statement are maintained intact.
82
83 This work is not endorsed by, affiliated with, or probably even known
84 by, the American Psychological Association.
85
86 ----------------------------------------------------------------------
87
88 \endpreamble
89 \postamble
90
91 Copyright (C) 2022 by Daniel A. Weiss <daniel.weiss.led at gmail.com>
92
93 This work may be distributed and/or modified under the
94 conditions of the LaTeX Project Public License (LPPL), either
95 version 1.3c of this license or (at your option) any later
96 version. The latest version of this license is in the file:
97
98 http://www.latex-project.org/lppl.txt
99
100 Users may freely modify these files without permission, as long as the
101 copyright line and this statement are maintained intact.
102
103 This work is not endorsed by, affiliated with, or probably even known
104 by, the American Psychological Association.
105
106
107 This work is "maintained" (as per LPPL maintenance status) by
108 Daniel A. Weiss.
109
110 This work consists of the file apa7.dtx
111 and the derived files apa7.ins,
112 apa7.cls,
113 apa7.pdf,
114 README,
115 APA7american.txt,
116 APA7british.txt,
117 APA7dutch.txt,
118 APA7english.txt,
119 APA7french.txt,
120 APA7german.txt,
121 APA7ngerman.txt,
122 APA7greek.txt,
123 APA7czech.txt,
124 APA7turkish.txt,
125 APA7spanish.txt,
126 APA7hungarian.txt,
127 APA7endfloat.cfg,
128 Figure1.pdf,
129 shortsample.tex,
130 longsample.tex, and
131 bibliography.bib.
132
133 \endpostamble
134 \usedir{tex/latex/apa7}
135 \generate{
136 \file{\jobname.cls}{\from{\jobname.dtx}{class}}
137 }
138 \usedir{tex/latex/apa7/config}
139 \generate{
140 \file{./config/APA7american.txt}{\from{\jobname.dtx}{american}}
141 \file{./config/APA7british.txt}{\from{\jobname.dtx}{british}}
142 \file{./config/APA7dutch.txt}{\from{\jobname.dtx}{dutch}}
143 \file{./config/APA7english.txt}{\from{\jobname.dtx}{english}}
144 \file{./config/APA7french.txt}{\from{\jobname.dtx}{french}}
145 \file{./config/APA7german.txt}{\from{\jobname.dtx}{german}}
146 \file{./config/APA7ngerman.txt}{\from{\jobname.dtx}{ngerman}}
147 \file{./config/APA7greek.txt}{\from{\jobname.dtx}{greek}}
148 \file{./config/APA7czech.txt}{\from{\jobname.dtx}{czech}}
149 \file{./config/APA7turkish.txt}{\from{\jobname.dtx}{turkish}}
150 \file{./config/APA7spanish.txt}{\from{\jobname.dtx}{spanish}}
151 \file{./config/APA7hungarian.txt}{\from{\jobname.dtx}{hungarian}}
152 \file{./config/APA7endfloat.cfg}{\from{\jobname.dtx}{APAendfloat}}
153 }
154 \usedir{tex/latex/apa7/samples}
155 \generate{
156 \file{./samples/bibliography.bib}{\from{\jobname.dtx}{bibliography}}
157 \file{./samples/shortsample.tex}{\from{\jobname.dtx}{shortsample}}
158 \file{./samples/longsample.tex}{\from{\jobname.dtx}{longsample}}
159 }
160 %</install>
161 %<install>\endbatchfile
162 %<*internal>
163 \usedir{source/latex/apa7}
164 \generate{
165 \file{\jobname.ins}{\from{\jobname.dtx}{install}}
166 }
167 \nopreamble\nopostamble
168 \usedir{doc/latex/apa7}
169 \generate{
170 \file{README.txt}{\from{\jobname.dtx}{readme}}
171 }
172 \ifx\fmtname\nameofplainTeX
173 \expandafter\endbatchfile
174 \else
175 \expandafter\endgroup
176 \fi
177 %</internal>
178 %<class>\NeedsTeXFormat{LaTeX2e}
179 %<*driver>
180 \documentclass{ltxdoc}
181 \usepackage[T1]{fontenc}
182 \usepackage{lmodern}
183 \RequirePackage{scalerel,tikz} % this is included for ORCID icon
184 \usetikzlibrary{svg.path}
185 \definecolor{orcidlogocol}{HTML}{A6CE39}
186 \tikzset{
187 orcidlogo/.pic={
188 \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};
189 \fill[white] svg{M86.3,186.2H70.9V79.1h15.4v48.4V186.2z}
190 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}
191 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};
192 }
193 }
194 \newcommand{\addORCIDlink}[2]{#1 \href{https://orcid.org/#2}{{\mbox{\scalerel*{
195 \begin{tikzpicture}[yscale=-1,transform shape]
196 \pic{orcidlogo};
197 \end{tikzpicture}
198 }{|}}} https://orcid.org/#2}}
199
200 \usepackage{hyperref}
201 \hypersetup{%
202 colorlinks,
203 linkcolor=blue,
204 citecolor=blue,
205 urlcolor=black,
206 pdfauthor = {Daniel A. Weiss <[email protected]>},
207 pdftitle = {The apa7 class},
208 pdfsubject = {Documentation of LaTeX class apa7},
209 pdfkeywords = {LaTeX, APA}
210 }
211 \usepackage{graphicx}
212 \usepackage{booktabs}
213 \usepackage{verbatimbox}
214 \EnableCrossrefs
215 \CodelineIndex
216 \OnlyDescription % don't publish the full code in the PDF documentation file
217 \RecordChanges
218 \begin{document}
219 \DocInput{\jobname.dtx}
220 \end{document}
221 %</driver>
222 % \fi
223 %
224 %\DoNotIndex{\#,\$,\%,\&,\@,\\,\{,\},\^,\_,\~,\ }
225 %\DoNotIndex{\@ne}
226 %\DoNotIndex{\advance,\begingroup,\catcode,\closein}
227 %\DoNotIndex{\closeout,\day,\def,\edef,\else,\empty,\endgroup}
228 %\DoNotIndex{\newcommand,\renewcommand}
229 %
230 %
231 % \title{^^A
232 % Formatting documents in APA style (7th Edition)\\^^A
233 % with the \textsf{apa7} \LaTeX\ class^^A
234 % \thanks{This file describes version ^^A
235 % \apaSevenVersionNumber, last revised \apaSevenVersionDate.}^^A
236 % }
237 % \author{Daniel A. Weiss\thanks{E-mail: [email protected]}}
238 % \date{Released \apaSevenVersionDate}
239 %
240 % \maketitle
241 %
242 % \changes{v1.00}{2019/12/26}{Initial release}
243 %
244 % \changes{v1.01}{2019/12/29}{Corrected figure caption styles for doc format.}
245 % \changes{v1.01}{2019/12/29}{Clarified that apacite and natbib are in 6th edition style.}
246 %
247 % \changes{v1.02}{2019/12/29}{Fixed filename issue with language localization files.}
248 %
249 % \changes{v1.03}{2019/12/29}{Updated class to detect babel package in document and localize accordingly.}
250 %
251 % \changes{v1.04}{2019/12/30}{Added table of contents. Updated documentation and added correct license statement to cls for apa6 package.}
252 %
253 % \changes{v1.05}{2020/03/27}{Fixed float placement at end for man and stu mode to ensure one correctly placed figure/table per page. Thanks WC.}
254 %
255 % \changes{v1.06}{2020/05/04}{Added figurenote command.}
256 %
257 % \changes{v1.07}{2020/05/10}{Fixed bug in figurenote command. Fixed figure title formatting in doc mode. Thanks RH.}
258 %
259 % \changes{v1.08}{2020/05/27}{Added support for optional running head (shorttitle) in stu mode.}
260 %
261 % \changes{v1.09}{2020/06/19}{Fixed note command (will no longer print "Author Note" header).}
262 %
263 % \changes{v2.01}{2020/07/18}{Re-wrote author and affiliation to be APA7 compliant. Fixed spacing on Title Page for title and author. }
264 %
265 % \changes{v2.02}{2020/08/02}{Added the "and" in multiple author list to localization files. }
266 %
267 % \changes{v2.03}{2020/08/12}{Added French localization. }
268 %
269 % \changes{v2.04}{2020/10/11}{Updated ORCID link style for jou mode. }
270 %
271 % \changes{v2.05}{2020/11/14}{Fixed a bug with the noextraspace option and added donotrepeattitle option to the documentation. }
272 %
273 % \changes{v2.06}{2020/12/02}{Added tablenote command. Added "Note." for table/figure notes to localization files. }
274 %
275 % \changes{v2.07}{2020/12/05}{Extended mask command to also mask in stu mode. }
276 %
277 % \changes{v2.08}{2021/03/01}{Updated BibLaTex to allow overriding bibliography title. }
278 %
279 % \changes{v2.09}{2021/03/03}{Updated APA7endfloat.cfg file to use more modern DeclareDelayedFloatFlavor. This fixes the bug where longtable can be shown on the same page as another table. }
280 %
281 % \changes{v2.10}{2021/03/04}{Update BibLaTex instructions to remove DeclareLanguageMapping and remove commands that are no longer required. }
282 %
283 % \changes{v2.11}{2021/04/05}{Updated linebreaks in caption separators to prevent warning. }
284 %
285 % \changes{v2.12}{2021/04/08}{Reset equation counter for every appendix (like for figures and tables). Thanks mmrabe. }
286 %
287 % \changes{v2.13}{2021/05/17}{Fix headers for jou style when journal command is provided. }
288 %
289 % \changes{v2.14}{2021/08/08}{Added Spanish localization. Fixed compatibility with Version 4.0 of flushend.sty. Clarify installation in readme. }
290 %
291 % \changes{v2.15}{2022/01/03}{Spacing updated to more closely match APA 7th Edition Manual.}
292 %
293 % \changes{v2.16}{2022/07/25}{Add Hungarian localization.}
294 %
295 % \begin{abstract}
296 % The \textit{Publication Manual} of the American Psychological
297 % Association is widely used in the social sciences. The most
298 % recent update, in 2019, altered the formatting guidelines and
299 % therefore rendered existing formatting solutions inadequate. The
300 % \textsf{apa7} class is an update of older code from the
301 % \textsf{apa6} class. The student manuscript type has been added.
302 % \end{abstract}
303 %
304 % \tableofcontents
305 %
306 % \section{Background}
307 % Most journals in the social sciences require manuscripts to be
308 % formatted in compliance with the American Psychological
309 % Association's \textit{Publication Manual}, which is updated
310 % periodically. The 7th Edition, released in 2019, substantially
311 % changed the guidelines for formatting manuscripts; these
312 % modifications rendered existing formatting solutions (e.g., the
313 % \textsf{apa6} \LaTeX\ class) inadequate for venues in which 7th
314 % Edition guidelines are being enforced. The \textsf{apa7} class
315 % solves this problem, and provides some new functionality not offered
316 % by the \textsf{apa6} class.
317 %
318 % \section{Disclaimer}
319 % Great care has been taken to ensure the closest possible match
320 % between APA requirements and the output of this class. However, it
321 % is the sole responsibility of the user to ensure compliance with
322 % specific journal submission requirements!
323 %
324 % \section{\textsf{apa7} Version 2.01 Changes to Authors and Affiliations}
325 % The way that authors and affiliations work has been changed in
326 % version 2.01 to be APA 7th edition compliant.
327 % This change will require updating any multiple author and/or
328 % multiple affiliation documents to use the new |\authorsnames| and
329 % |\authorsaffiliations| commands (See Section~\ref{sec:authorsaffiliations}).
330 %
331 % \section{Usage}
332 % \label{sec:usage}
333 %
334 % \subsection{Class Options}
335 % \label{sec:classoptions}
336 % When loading \textsf{apa7} with
337 % |\documentclass|\oarg{options}|{apa7}|, the following options are
338 % available.
339 %
340 % \vspace{1em}
341 % \textbf{Document mode:} Four choices are available.
342 % \begin{itemize}
343 % \item \DescribeMacro{jou}|jou| (default): Formats the document with an
344 % appearance resembling a printed APA journal (e.g., \textit{Journal
345 % of Educational Psychology}. The text is typeset in two-sided,
346 % two-column format.
347 % \item \DescribeMacro{man}|man|: Formats the document in close (if
348 % not complete) compliance with the requirements for submission to
349 % an APA journal (e.g., title page, double-spacing, etc.).
350 % \item \DescribeMacro{stu}|stu|: Formats the document in close (if
351 % not complete) compliance with the requirements for student paper
352 % (e.g., title page, double-spacing, etc.).
353 % \item \DescribeMacro{doc}|doc|: Formats the document as a typical
354 % \LaTeX\ document (one-sided, single-column, etc.)
355 % \end{itemize}
356 %
357 % \textbf{Other class options:}
358 % \begin{itemize}
359 % \item \DescribeMacro{10pt}|10pt|: Typesets the document in 10-point
360 % font.
361 % \item \DescribeMacro{11pt}|11pt|: Typesets the document in 11-point
362 % font.
363 % \item \DescribeMacro{12pt}|12pt|: Typesets the document in 12-point
364 % font.
365 % \item \DescribeMacro{a4paper}|a4paper|: Specifies A4 paper size
366 % (letter is default).
367 % \item \DescribeMacro{nolmodern}|nolmodern|: Suppresses loading of the
368 % \textsf{lmodern} package.
369 % \item \DescribeMacro{nofontenc}|nofontenc|: Suppresses loading of the
370 % \textsf{fontenc} package (which is needed for proper hyphenation
371 % of accented characters).
372 % \item \DescribeMacro{babel}|babel|: In all modes, loads
373 % \textsf{babel}; the desired language(s) are listed as options
374 % immediately following |babel|; the last language listed is the
375 % main one.
376 % \item \DescribeMacro{donotrepeattitle}|donotrepeattitle|: Suppress the title above the
377 % introduction (in case a different title is desired).
378 % \item \DescribeMacro{noextraspace}|noextraspace|: Removed option in version 2.15
379 % in an attempt to more closely match APA 7th edition guidelines (will throw error if used).
380 % \item \DescribeMacro{floatsintext}|floatsintext|: In |man| and |stu| mode,
381 % integrates floats (tables and figures) within the body of the text
382 % instead of postponing them until after the reference list.
383 % \item \DescribeMacro{biblatex}|biblatex|: Loads the
384 % \textsf{biblatex} package; see Section~\ref{sec:biblatexinfo} for
385 % details.
386 % \item \DescribeMacro{apacite}|apacite|: Loads the \textsf{apacite}
387 % package; see Section~\ref{sec:apaciteinfo} for details. \\
388 % \textit{\textbf{Note:} at this time, this will produce citations in 6th edition format. }
389 % \item \DescribeMacro{natbib}|natbib|: See
390 % Section~\ref{sec:natbibinfo} for details. \\
391 % \textit{\textbf{Note:} at this time, this will produce citations in 6th edition format.}
392 % \item \DescribeMacro{mask}|mask|: Masks references that are marked
393 % as the author's own (for masked peer review); see
394 % Section~\ref{sec:masking} for details.
395 % \item \DescribeMacro{longtable}|longtable|: If you \textit{must} use
396 % long tables (exceeding one page in length), try this option (but
397 % it may not work in all contexts). Do \textbf{\textit{not}} load
398 % \textsf{longtable} yourself because of precedence requirements
399 % with the \textsf{endfloat} package. Copy the file
400 % |APA7endfloat.cfg| from the ``config'' folder of your \textsf{apa}
401 % installation to the working folder of your document (not in your
402 % |texmf| tree), and rename it to |endfloat.cfg| so that endfloat
403 % will recognize it. The supplied |APA7endfloat.cfg| file will also
404 % be necessary in conjunction with the \textsf{rotating} package
405 % (and its |\sideways| command) to produce rotated tables; this
406 % works for |man| and |stu| mode only. For rotated tables in |jou| or |doc|
407 % mode, the \textsf{rotating} package may be used. If sideways
408 % tables get pushed to the end of your document with the
409 % |floatsintext| option, try using the |ph!| placement specifier for
410 % your sideways table(s); for example, |\begin{sidewaystable}[ph!]|.
411 % \item \DescribeMacro{notxfonts}|notxfonts|: In |jou| mode, prevents
412 % \textsf{txfonts} from loading, in case \textsf{pslatex} or
413 % \textsf{times} is preferable for some reason.
414 % \item \DescribeMacro{notimes}|notimes|: In |jou| mode, cancels
415 % loading \textsf{txfonts} or \textsf{pslatex} or \textsf{times} and
416 % uses Computer Modern instead.
417 % \item \DescribeMacro{notab}|notab|: In |jou| mode, cancels the
418 % automatic stretching of tabular environments to the width of their
419 % enclosing float.
420 % \item \DescribeMacro{helv}|helv|: In |man| and |stu| mode,
421 % uses Helvetica font instead of Computer Modern.
422 % \item \DescribeMacro{nosf}|nosf|: In |man| and |stu| mode,
423 % neutralizes the |\helvetica| command.
424 % \item \DescribeMacro{tt}|tt|: In |man| and |stu| mode, uses typewriter-like
425 % font.
426 % \item \DescribeMacro{draftfirst}|draftfirst|: In all modes, places
427 % the word ``DRAFT'' as a watermark across the first page.
428 % \item \DescribeMacro{draftall}|draftall|: In all modes, places the
429 % word ``DRAFT'' as a watermark across all pages.
430 % \end{itemize}
431 %
432 % Class options not handled by \textsf{apa7} (e.g., |draft|) will be
433 % passed on to the \textsf{article} class.
434 %
435 % \subsection{Document Preamble}
436 % \label{sec:preamble}
437 % The following commands are available within the document preamble
438 % (i.e., the part of the file preceding |\begin{document}|).
439 %
440 % \subsubsection{Document Title and Headers}
441 % \label{sec:titleheaders}
442 % \begin{itemize}
443 % \item \DescribeMacro{\title}|\title|\marg{document-title}: The title of the document
444 % \item \DescribeMacro{\shorttitle}|\shorttitle|\marg{short-title}: A
445 % shortened version of the title (for page headers)
446 % \item
447 % \DescribeMacro{\leftheader}|\leftheader|\marg{author-last-name(s)}:
448 % Author last name(s) (for even-page headers in |jou| mode)
449 % \end{itemize}
450 % Optional; use if desired:\par
451 % \begin{itemize}
452 % \item \DescribeMacro{\journal}|\journal|\marg{journal-name}: Journal
453 % name or other note; typeset in the top left header of page 1
454 % (|jou| and |doc| modes only); to change the starting page to a
455 % number other than 1, insert the following line immediately after
456 % |\maketitle|:\\
457 % |\setcounter{page}|\marg{custom-page-number}
458 % \item \DescribeMacro{\volume}|\volume|\marg{journal-volume}: Volume,
459 % number, pages; typeset in the top left header in |jou| and |doc|
460 % modes, underneath the content of |\journal|
461 % \item \DescribeMacro{\ccoppy}|\ccoppy|\marg{copright-notice}:
462 % Copyright notice, etc.; typeset in the top right header of page 1
463 % (|jou| and |doc| modes only)
464 % \item \DescribeMacro{\copnum}|\copnum|\marg{more-copyright-info}:
465 % Any additional text needed; typeset in the top right header in
466 % |jou| and |doc| modes, underneath the content of |\ccoppy|
467 % \end{itemize}
468 %
469 % \subsubsection{Authors and Affiliations}
470 % \label{sec:authorsaffiliations}
471 % Based on the new APA 7th edition style guide, the previous method for
472 % handling multiple authors and multiple affiliations has been deprecated as of version 2.01 of apa7. \par
473 % \textit{The followings commands have been deprecated and will return an error:} \par
474 % |\twoauthors{First Author(s)}{Second Author(s)}|\par
475 % |\threeauthors{John and Jim}{Mary and Sue}{Nick}|\par
476 % |\fourauthors{Helen}{Dick}{Tracy and Larry}{James Bond}|\par
477 % |\fiveauthors{...}{...}{...}{...}{...}|\par
478 % |\sixauthors{...}{...}{...}{...}{...}{...}|\par
479 % |\twoaffiliations{Affil. of 1st Author(s)}{Affil. 2nd Author(s)}|\par
480 % |\threeaffiliations{U of A}{U of B}{U of C}|\par
481 % |\fouraffiliations{My Company}{Your Department}{Heaven}{Earth}|\par
482 % |\fiveaffiliations{...}{...}{...}{...}{...}|\par
483 % |\sixaffiliations{...}{...}{...}{...}{...}{...}|\par
484 % \begin{itemize}
485 % \item \DescribeMacro{\author}|\author|\marg{author name}: Author name (if only 1 author)
486 % \item \DescribeMacro{\affiliation}|\affiliation|\marg{author's affiliation}: Author's affiliation (if only 1 affiliation)
487 % \item \DescribeMacro{\authorsnames}|\authorsnames|\oarg{comma separated list of superscripts}\marg{comma separated list of authors name(s)}: Authors names (if more than 1 author)
488 % \end{itemize}
489 %
490 % Where \marg{authors names} is a comma separated list of authors in display order
491 % and \oarg{superscripts} is an optional comma separated list of affiliation superscripts.
492 % If there are multiple superscripts for one author, put the set of superscripts within |{ }|.
493 %
494 % \begin{itemize}
495 % \item
496 % \DescribeMacro{\authorsaffiliations}|\authorsaffiliations|\marg{comma separated list of affiliation(s)}:
497 % Author affiliation(s). Put each affiliation within |{ }| and separate each affiliation with a comma.
498 % \end{itemize}
499 %
500 % \noindent \textbf{Examples:} \par
501 % \noindent One author, one affiliation \par
502 % |\authorsnames{Maggie C. Leonard}| \par
503 % |\authorsaffiliations{{Department of Psychology, George Mason University}}| \par
504 % \noindent One author, two affiliations \par
505 % |\authorsnames{Andrew K. Jones-Willoughby}| \par
506 % |\authorsaffiliations{{School of Psychology, University of Sydney},| \par
507 % |{Center for Behavioral Neuroscience, American University}}| \par
508 % \noindent Two authors, shared affiliation \par
509 % |\authorsnames{Mackenzie J. Clement,Talia R. Cummings}| \par
510 % |\authorsaffiliations{{College of Nursing, Michigan State University}}| \par
511 % \noindent Two authors, different affiliations \par
512 % |\authorsnames[1,2]{Wilhelm T. Webber,Latasha P. Jackson}| \par
513 % |\authorsaffiliations{{Max Planck Institute for Human Development, Berlin, Germany},| \par
514 % |{College of Education, University of Georgia}}| \par
515 % \noindent Three or more authors, different affiliations \par
516 % |\authorsnames[1,{2,3},1]{Savannah C. St. John, Fen-Lei Chang, Carlos O. Vásquez III}| \par
517 % |\authorsaffiliations{{Education Testing Service, Princeton, New Jersey, ...},| \par
518 % |{MRC Cognition and Brain Science Unit, Cambridge, England},| \par
519 % |{Department of Psychology, University of Cambridge}}| \par
520 %
521 %
522 % \subsubsection{Title Page Information}
523 % \label{sec:titlepageinfo}
524 % \begin{itemize}
525 % \item \DescribeMacro{\course}|\course|\marg{course-number-name}: The
526 % course number and name (e.g. PSYC 3170: Clinical Psychology)
527 % \item \DescribeMacro{\professor}|\professor|\marg{professor}: The
528 % course professor name.
529 % \item \DescribeMacro{\duedate}|\duedate|\marg{paper-duedate}: The
530 % due date for the paper (e.g. October 1, 2019)
531 % \item \DescribeMacro{\abstract}|\abstract|\marg{abstract-text}: The
532 % abstract of the article
533 % \item \DescribeMacro{\keywords}|\keywords|\marg{keywords}: Keywords
534 % (typeset after the abstract) See Section~\ref{sec:keywords} for
535 % details regarding language localization of the ``Keywords'' label.
536 % \item \DescribeMacro{\authornote}|\authornote|\marg{author-note}:
537 % The Author Note, containing contact information, acknowledgements,
538 % etc.
539 % \item \DescribeMacro{\addORCIDlink}|\addORCIDlink|\marg{author-name}\marg{ORCID}: Optionally, use this within the author note to generate the ORCID link. \\
540 % For example
541 % \begin{verbatim} \addORCIDlink{First M. Last}{0000-0000-0000-0000} \end{verbatim} \\
542 % generates \\ \\
543 % \addORCIDlink{First M. Last}{0000-0000-0000-0000}
544 % \end{itemize}
545 %
546 % Optional; use if desired:\par
547 % \begin{itemize}
548 % \item \DescribeMacro{\note}|\note|\marg{note-text}: Notation of
549 % manuscript date or other information desired beneath the
550 % affiliation line (not part of the APA 7th edition specification for title page)
551 % \end{itemize}
552 %
553 % \subsection{Maketitle}
554 % The \DescribeMacro{\maketitle}|\maketitle| command formats the
555 % document title, page headers, author list, author affiliations,
556 % Author Note (if provided), abstract according to whether |jou|,
557 % |man|, |stu|, or |doc| mode has been specified. This command should be
558 % on the line after |\begin{document}|, with the first line of text
559 % immediately following the |\maketitle| line (no blank lines).
560 %
561 % \subsection{Heading Levels}
562 % \label{sec:headinglevels}
563 % Heading levels are automatically formatted using the following
564 % standard \LaTeX\ commands:
565 % \begin{itemize}
566 % \item \DescribeMacro{\section}|\section|\marg{title}
567 % \item \DescribeMacro{\subsection}|\subsection|\marg{title}
568 % \item \DescribeMacro{\subsubsection}|\subsubsection|\marg{title}
569 % \item \DescribeMacro{\paragraph}|\paragraph|\marg{title}
570 % \item \DescribeMacro{\subparagraph}|\subparagraph|\marg{title}
571 % \end{itemize}
572 %
573 % Please note that sections cannot be |\ref|'d since APA style does
574 % not use numbered sections. So |\label| commands are unnecessary
575 % unless you wish to use |\refname|.
576 %
577 % \subsection{Enumeration}
578 % \label{sec:enumeration}
579 % Several forms of enumeration are provided, as follows.
580 %
581 % \vspace{0.6em}
582 % \DescribeMacro{\begin\{seriate\}} \DescribeMacro{\end\{seriate\}}
583 % |Blah blah blah|\par
584 % |\begin{seriate}|\par
585 % | \item first item,|\par
586 % | \item second item.|\par
587 % |\end{seriate}|\par
588 % |Blah blah blah|\par\vspace{0.6em}
589 % \noindent results in:\par\vspace{0.6em}
590 % |Blah blah blah (a) first item, (b) second item. Blah blah blah|
591 %
592 % \vspace{3em}
593 % \DescribeMacro{\begin\{APAenumerate\}} \DescribeMacro{\end\{APAenumerate\}}
594 % |Blah blah blah|\par
595 % |\begin{APAenumerate}|\par
596 % | \item first item ... ... ... continue continue|\par
597 % | \item second item ... ... ... continue continue|\par
598 % |\end{APAenumerate}|\par
599 % |Blah blah blah|\par\vspace{0.6em}
600 % \noindent results in:\par\vspace{0.6em}
601 % |Blah blah blah|\par
602 % | 1. first item ... ... ...|\par
603 % |continue continue|\par
604 % | 2. second item ... ... ...|\par
605 % |continue continue|\par
606 % |Blah blah blah|\par
607 %
608 % \vspace{3em}
609 % \DescribeMacro{\begin\{APAitemize\}} \DescribeMacro{\end\{APAitemize\}}
610 % |Blah blah blah|\par
611 % |\begin{APAitemize}|\par
612 % | \item first item ... ... ... continue continue|\par
613 % | \item second item ... ... ... continue continue|\par
614 % |\end{APAitemize}|\par
615 % |Blah blah blah|\par\vspace{0.6em}
616 % \noindent results in:\par\vspace{0.6em}
617 % |Blah blah blah|\par
618 % | o first item ... ... ...|\par
619 % |continue continue|\par
620 % | o second item ... ... ...|\par
621 % |continue continue|\par
622 % |Blah blah blah|\par
623 %
624 % \vspace{0.6em}
625 % In addition to the above, all standard \LaTeX\ enumeration
626 % environments are available (e.g., |enumerate| and |itemize|).
627 %
628 % \subsection{Other Macros}
629 % \label{sec:othermacros}
630 % \begin{itemize}
631 % \item \DescribeMacro{\begin\{figure*\}} \DescribeMacro{\end\{figure*\}}
632 % \DescribeMacro{\begin\{table*\}} \DescribeMacro{\end\{table*\}}
633 % When a figure is too wide for a single column (in |jou| mode), use
634 % |\begin{figure*}| and |\end{figure*}| instead of the non-starred
635 % version. The same applies with |\begin{table*}| and |\end{table*}|.
636 % When using double-column tables or figures (|jou| mode), use the
637 % |\centering| command; for example:\par
638 % |\begin{table*}|\par\vspace{-.5em}
639 % | \centering|\par\vspace{-.5em}
640 % | \begin{threeparttable}|\par
641 % \item
642 % \DescribeMacro{\figurenote}|\figurenote|\marg{figure-note-text}:
643 % Formats figure note when placed after |\includegraphic|, |\fitfigure|, or similar command within |\begin{figure}| and |\end{figure}|.
644 % \item
645 % \DescribeMacro{\tablenote}|\tablenote|\marg{table-note-text}:
646 % Formats table note when placed after |\end{tabular}| or similar command within |\begin{table}| and |\end{table}|.
647 % \item
648 % \DescribeMacro{\fitfigure}|\fitfigure|\oarg{height}\marg{eps-filename}:
649 % Automatically fit a postscript figure; use instead of
650 % |\includegraphics|
651 % \item
652 % \DescribeMacro{\fitbitmap}|\fitbitmap|\oarg{height}\marg{eps-filename}:
653 % Same as |\fitfigure| but won't scale figure in |\man| mode for
654 % best reproduction of bitmap figures
655 % \item \DescribeMacro{\tabfnm}|\tabfnm{a}|: Place a superscript
656 % \textbf{f}oot\textbf{n}ote \textbf{m}ark inside a table cell. Any
657 % series of unique identifiers can be used in place of |a|.
658 % \item \DescribeMacro{\tabfnt}|\tabfnt{a}|\marg{footnote-text}:
659 % Within table footnotes, specify the \textbf{f}oot\textbf{n}ote
660 % \textbf{t}ext for |\tabfnm{a}|
661 % \item \DescribeMacro{\apavector}|\apavector|\marg{symbol}: Format
662 % the \marg{symbol} as a vector by APA rules
663 % \end{itemize}
664 %
665 % \subsection{Appendices}
666 % \label{sec:appendices}
667 % \begin{itemize}
668 % \item \DescribeMacro{\appendix}|\appendix|: Begins the appendices
669 % portion of the document
670 % \item \DescribeMacro{\section}|\section|\marg{appendix-title}:
671 % Begins each appendix
672 % \end{itemize}
673 %
674 % Because appendices are numbered (with letters!) you may establish a
675 % label for each appendix (e.g., |\label{app:xxx}|); when there is
676 % more than one appendix, use |Appendix~\ref{app:xxx}| within the main
677 % body of the text to refer to that appendix. (Of course, if there is
678 % only one appendix, simply refer to it as |the Appendix|.)
679 %
680 % \section{Known Limitations}
681 % \begin{itemize}
682 % \item The |APAenumerate| environment does not nest properly.
683 % \end{itemize}
684 %
685 % \section{Development of \textsf{apa7}}
686 % The base code for this class is the \textsf{apa6} class, which in
687 % turn was based upon other sources. In order to comply with 7th
688 % Edition criteria, certain changes had to be made to update the
689 % \textsf{apa6} code.
690 %
691 % \subsection{Section Headings}
692 % Most prominently, the formatting of section headings had to be
693 % altered. The 7th Edition specifies a more straightforward series of
694 % heading levels than previous editions did. Briefly, the top-level
695 % heading is now boldfaced and centered, upper- and lower-case, no
696 % matter now many levels of heading are in the document; other heading
697 % levels have similar specifications. The \textsf{apa7} class
698 % utilizes code (with permission) from the \textsf{apa6} class to
699 % comply with all of these specifications.
700 %
701 % Because the 7th Edition requires figure captions to be printed on
702 % the same page as their respective figures, there are no more Figure
703 % Captions pages.
704 %
705 % \subsection{Author Note}
706 % According to 7th Edition guidelines, Author Notes are now placed "in the bottom half of the title page" on the
707 % title page of manuscripts per the style guide.
708 %
709 % \section{Features}
710 % The featured implemented in the |apa6| have been included in the |apa7| class for the 7th Edition of the
711 % \textit{Manual}.
712 %
713 % \subsection{Masked References}
714 % \label{sec:masking}
715 % When manuscripts are sent out for review, they customarily must have
716 % all identifying information stripped so that reviewers do not know
717 % who the author of the manuscript is. The new
718 % \DescribeMacro{mask}|mask| option suppresses the output of the
719 % author's name and affiliation, the author note, and any references
720 % that are marked as being the author's own.
721 %
722 % \begin{table}[htbp]
723 % \caption{Supported masking commands}
724 % \label{tab:CitationCommandsTable}
725 % \begin{tabular}{@{}llll@{}} \toprule
726 % Unmasked Result & \multicolumn{3}{c}{Masking Commands} \\ \cmidrule(r){2-4}
727 % & \textsf{apacite} & \textsf{natbib} & \textsf{biblatex} \\ \midrule
728 % (van Dijk, 2001) & |\maskcite| & |\maskcitep| & |\maskparencite| \\
729 % (Van Dijk, 2001) & & |\maskCitep| & |\maskParencite| \\
730 % van Dijk, 2001 & |\maskciteNP| & |\maskcitealp| & |\maskcite| \\
731 % Van Dijk, 2001 & & |\maskCitealp| & |\maskCite| \\
732 % van Dijk (2001) & |\maskciteA| & |\maskcitet| & |\masktextcite| \\
733 % Van Dijk (2001) & & |\maskCitet| & |\maskTextcite| \\
734 % van Dijk & |\maskciteauthor| & |\maskciteauthor| & |\maskciteauthor| \\
735 % Van Dijk & & |\maskCiteauthor| & |\maskCiteauthor| \\
736 % (2001) & |\maskciteyear| & |\maskciteyearpar| & \\
737 % 2001 & |\maskciteyearNP| & |\maskciteyear| & |\maskciteyear| \\ \bottomrule
738 % \end{tabular}
739 % \end{table}
740 %
741 % To specify a reference that is to be masked with the |mask| option,
742 % simply prepend |mask| to the desired citation command (e.g.,
743 % |\maskcite| instead of |\cite|). Supported bibliography packages
744 % are \textsf{biblatex}, \textsf{apacite}, and \textsf{natbib}. The
745 % specific masking commands are shown in Table
746 % \ref{tab:CitationCommandsTable}. Prenotes and postnotes for
747 % citations are supported with both \textsf{biblatex} and
748 % \textsf{natbib}; however, they are not supported with the
749 % \textsf{apacite} package.
750 %
751 % To mask citations that have been prepended with |mask| (and the
752 % corresponding bibliography entries), the name of the bibliography
753 % package must also be passed in as an option on the |\documentclass|
754 % line, in addition to the |mask| option. For example,
755 % |\documentclass[jou,biblatex,mask]{apa7}|. (But as explained later,
756 % the |biblatex| option is the default and is therefore not required,
757 % even with the |mask| option.)
758 %
759 % \textbf{Be warned}, however, that if you have previously generated
760 % .bbl, etc., files without the |mask| option applied, those files
761 % must be deleted or re-written before \LaTeX-ing with the |mask|
762 % option---otherwise, you will see the to-be-masked entries showing up
763 % in the bibliography.
764 %
765 % Masked citations are replaced with the text, \textit{(2 citations
766 % removed for masked review)} (in the case of two masked citations).
767 % The corresponding entries in the References section are also
768 % suppressed.
769 %
770 % There is no need to revise the masked citations when removing the
771 % |mask| option for final production. The citations that were
772 % previously masked will not be masked in the absence of the |mask|
773 % option.
774 %
775 % The |mask| command does not apply to |stu| type documents.
776 %
777 % \subsection{Repositioned Floats}
778 % When revising and proofreading a manuscript, it is most helpful to
779 % have the tables and figures readily available (rather than turning
780 % most of the way to the end of the manuscript to access them). The
781 % \DescribeMacro{floatsintext}|floatsintext| option (specified in the
782 % |\documentclass| line) will integrate tables and figures
783 % approximately where they are mentioned in the text. This is
784 % available only with the |man| and |stu| options, of course, because the other
785 % formats already have floats integrated with the text.
786 %
787 % \subsection{User-defined Font Size}
788 % \DescribeMacro{10pt} \DescribeMacro{11pt} \DescribeMacro{12pt} Users
789 % can now select from the font-size options available in standard
790 % \LaTeX\ (10pt, 11pt, 12pt) by including the appropriate option
791 % (e.g., |10pt|) in the |\documentclass| line. The default font size
792 % is 10pt for |jou| mode, 11pt for |doc| mode, and 12pt for |man|
793 % mode.
794 %
795 % \subsection{Watermark}
796 % If desired, a ``DRAFT'' watermark can be placed on either the first
797 % pages or all pages of the document with the
798 % \DescribeMacro{draftfirst}|draftfirst| and
799 % \DescribeMacro{draftall}|draftall| options, respectively. The text,
800 % font size, angle, and lightness of the text can all be modified
801 % using commands explained in the \textsf{draftwatermark}
802 % documentation. Also loads the \textsf{everypage} package.
803 %
804 % \subsection{Flexible Bibliographies}
805 % The \textsf{apa7} class supports three bibliography packages:
806 % \textsf{biblatex}, \textsf{apacite}, and \textsf{natbib}. \\ \\
807 % At this time, only \textsf{biblatex} is updated to support the 7th edition of APA style for citations and references.
808 %
809 % \subsubsection{\textsf{biblatex}}
810 % \label{sec:biblatexinfo}
811 % \textit{\textbf{Note:} This is the recommended method for 7th edition citations and references.} \\
812 % Biblatex is the most APA-compliant bibiliography package. The
813 % \DescribeMacro{biblatex}|biblatex| option directs \textsf{apa7} to
814 % load the \textsf{biblatex} package with the following option:
815 % style=apa; however, the |\addbibresource| command will need
816 % to be specified by the user within the document preamble. In the
817 % absence of bibliographic options, \textsf{apa7} will mask references
818 % using \textsf{biblatex} commands if the |mask| option is specified.
819 % In other words, the only reason to use the |biblatex| option is to
820 % have \textsf{apa7} automatically load the \textsf{biblatex} package.
821 %
822 % \subsubsection{\textsf{apacite}}
823 % \label{sec:apaciteinfo}
824 % \textit{\textbf{Note:} at this time, this will produce citations in 6th edition format.} \\
825 % The \textsf{apacite} package is loaded if the
826 % \DescribeMacro{apacite}|apacite| option is specified. This option
827 % also informs \textsf{apa7} to mask references using \textsf{apacite}
828 % commands if the |mask| option is specified. \textbf{The
829 % \textsf{apacite} package is \textit{not} loaded by default.}
830 %
831 % \subsubsection{\textsf{natbib}}
832 % \label{sec:natbibinfo}
833 % \textit{\textbf{Note:} at this time, this will produce citations in 6th edition format.} \\
834 % Specifying the \DescribeMacro{natbib}|natbib| option implicitly
835 % loads \textsf{apacite} and \textsf{natbib} and directs
836 % \textsf{apa7} to mask references using \textsf{natbib} commands if
837 % the |mask| option is specified.
838 %
839 % \subsection{Keywords}
840 % \label{sec:keywords}
841 % Many journals (including APA journals) request authors to provide
842 % keywords for their manuscripts to facilitate electronic indexing.
843 % \textsf{apa6} introduced the \DescribeMacro{\keywords}|\keywords|
844 % command. If provided, keywords will be displayed on a line beneath
845 % the abstract. For languages other than English, the `Keywords'
846 % label can be localized by modifying the appropriate configuration
847 % file (in the `config' folder of the \textsf{apa7} installation).
848 %
849 % \subsection{Float Placement}
850 % The 7th Edition (as did the 6th Edition) requires
851 % that tables and figures (in that order) be placed after the
852 % references but before the appendices. This creates a bit of a
853 % conundrum as to what should happen with tables or figures that are
854 % ultimately typeset within an appendix. The choices we are left with
855 % are to place appendix floats (a) along with the floats from the main
856 % part of the manuscript, which would mean that appendix floats appear
857 % prior to the point at which they are mentioned; (b) within the
858 % appendices themselves, which is not consistent with how floats in
859 % the main part of the manuscript are handled; or (c) in a separate
860 % float section that follows the appendices, which results in two
861 % float sections. Obviously none of these choices is satisfactory, so
862 % Brian Beitzel (author of |apa6| package) posed the question to APA's Style Expert. The style expert responded that at
863 % least for APA's journals ``it doesn't matter whether appendix tables
864 % are submitted with text tables or separately, as long as they are
865 % numbered correctly (e.g., Table A1, Table B1, etc.)'' (J.\
866 % Hume-Pratuch, personal communication, June 15, 2011). Therefore,
867 % \textsf{apa7} takes the same approach as \textsf{apa6}: the most straightforward approach that includes
868 % all appendix floats within the body of the relevant appendix. This
869 % also has the advantage of making appendices more readable.
870 %
871 % \section{Dependencies}
872 % \textsf{apa7} automatically loads the following packages. If these
873 % packages are not already installed, producing the first
874 % \textsf{apa7} document could take a few minutes while these packages
875 % are downloaded and installed.
876 %
877 % \begin{itemize}
878 % \item \textsf{apacite}: bibliography package; used only if the
879 % |apacite| or |natbib| option has been specified
880 % \item \textsf{biblatex}: bibliographic package; used only if the
881 % |biblatex| option has been specified
882 % \item \textsf{booktabs}: formats tables that are much more
883 % attractive than the standard \LaTeX\ tables.
884 % \item \textsf{caption}: formats table and figure captions
885 % \item \textsf{draftwatermark}: includes a ``DRAFT'' watermark; used
886 % only if the |draftfirst| or |draftall| options are specified
887 % (\textsf{draftwatermark} automatically loads \textsf{everypage}
888 % \item \textsf{endfloat}: handles placing tables and figures at the
889 % end of a manuscript; used only with the |man| and |stu| options
890 % \item \textsf{etoolbox}: provides low-level hooks needed to detect
891 % user-loaded packages
892 % \item \textsf{fancyhdr}: formats page headers
893 % \item \textsf{float}: handles floats placed within text; used only
894 % when the |man| and |floatsintext| options are both specified
895 % \textsf{biblatex} package (when loaded by the user in the document
896 % preamble) in time to set the ``References'' heading to
897 % non-boldface; used only if no bibliographic options have been
898 % specified
899 % \item \textsf{geometry}: formats margins
900 % \item \textsf{graphicx}: allows inclusion of figures
901 % \item \textsf{hyperref}: needed for ORCID link
902 % \item \textsf{longtable}: formats tables that exceed one page in
903 % length; loaded only if the |longtable| option is specified. Also
904 % loads the \textsf{array} package.
905 % \item \textsf{lmodern}: needed for proper default text size for
906 % draft watermark, so used on all documents; may be suppressed from
907 % loading with option |nolmodern|.
908 % \item \textsf{scalerel}: needed for ORCID logo sizing
909 % \item \textsf{substr}: counts masked references; used only if the
910 % |mask| option is specified
911 % \item \textsf{threeparttable}: produces nicely formatted table notes
912 % that comply with APA style. See |longsample.tex| (in the
913 % ``samples'' subfolder of the \textsf{apa7} installation;
914 % specifically, Appendix B in that document) for how to set up a
915 % table with notes.
916 % \item \textsf{tikz}: needed for ORCID logo
917 % \item \textsf{times}: for math definitions
918 % \end{itemize}
919 %
920 %
921 % \section{Examples}
922 %
923 % Sample documents are included with this class; look in the
924 % ``samples'' subfolder of your installation. The source and output for
925 % |shortsample.tex| are reproduced on the following pages for quick
926 % reference.
927 %
928 % \newpage
929 %
930 % \subsection{shortsample.tex}
931 % \iffalse
932 %<*verb>
933 % \fi
934 \begin{verbnobox}[\hspace{-3cm}]
935 \documentclass[jou]{apa7}
936
937 \usepackage[american]{babel}
938
939 \usepackage{csquotes}
940 \usepackage[style=apa,backend=biber]{biblatex}
941 \addbibresource{bibliography.bib}
942
943 \title{Sample APA-Style Document Using the \textsf{apa7} Package}
944
945 \author{Daniel A. Weiss}
946 \affiliation{A University Somewhere}
947
948 \leftheader{Weiss}
949
950 \abstract{This demonstration paper uses the \textsf{apa7} \LaTeX\
951 class to format the document in compliance with the 7th Edition of
952 the American Psychological Assocation's \textit{Publication Manual.}
953 The references are managed using \textsf{biblatex}.}
954
955 \keywords{APA style, demonstration}
956
957 \begin{document}
958 \maketitle
959 We begin with \textcite{Shotton1989}. We can also cite this work in
960 parenthesis, like this: \parencite{Shotton1989}.
961
962 A three-author paper \parencite[e.g.,][]{Lassen2006} lists all
963 three authors for the first citation, then only the first author
964 on all subsequent citations \parencite{Lassen2006}.
965
966 Note the use of five heading levels throughout this demonstration
967 Method section.
968
969 \section{Method}
970 \subsection{Participants}
971 We had a lot of people in this study.
972
973 \subsection{Materials}
974 Several materials were used for this project. Some of them were
975 already created for prior research.
976
977 \subsubsection{Paper-and-Pencil Instrument}
978 We used an instrument that we found to be highly successful.
979
980 \paragraph{Reliability}
981 The reliability of this instrument is extraordinary.
982
983 \paragraph{Validity}
984 We now discuss the validity of our instrument.
985
986 \subparagraph{Face validity} The face validity is exceptionally
987 strong. Everyone should be impressed.
988
989 \subparagraph{Construct validity} Also very strong.
990
991 \subsection{Design}
992 This section describes the study's design.
993
994 \subsection{Procedure}
995 The procedure was fairly straightforward, yet required
996 attention to detail.
997
998 \section{Results}
999 Table \ref{tab:ComplexTable} contains some sample data. Our
1000 statistical prowess in analyzing these data is unmatched.
1001
1002 \begin{table}[htbp]
1003 \vspace*{2em}
1004 \begin{threeparttable}
1005 \caption{A Complex Table}
1006 \label{tab:ComplexTable}
1007 \begin{tabular}{@{}lrrr@{}} \toprule
1008 Distribution type & \multicolumn{2}{l}{Percentage of} & Total number \\
1009 & \multicolumn{2}{l}{targets with} & of trials per \\
1010 & \multicolumn{2}{l}{segment in} & participant \\ \cmidrule(r){2-3}
1011 & Onset & Coda & \\ \midrule
1012 Categorical -- onset\tabfnm{a} & 100 & 0 & 196 \\
1013 Probabilistic & 80 & 20\tabfnm{*} & 200 \\
1014 Categorical -- coda\tabfnm{b} & 0 & 100\tabfnm{*} & 196 \\ \midrule
1015 \end{tabular}
1016 \tablenote{All data are approximate.
1017
1018 \tabfnt{a}Categorical may be onset.
1019 \tabfnt{b}Categorical may also be coda.
1020
1021 \tabfnt{*}\textit{p} < .05.
1022 \tabfnt{**}\textit{p} < .01.
1023 }
1024 \end{threeparttable}
1025 \end{table}
1026
1027 \section{Discussion}
1028 This is a lengthy and erudite discussion. It demonstrates amazing
1029 skill in interpreting the results for the masses.
1030
1031 \printbibliography
1032
1033 \end{document}
1034 \end{verbnobox}
1035 % \iffalse
1036 %</verb>
1037 % \fi
1038 %
1039 % \subsection{shortsample.pdf}
1040 % \IfFileExists{samples/shortsample.pdf}%
1041 % {\includegraphics[scale=0.8, trim = 1in 1.5in 1in 0.8in]{samples/shortsample.pdf}}%
1042 % {PRINTED DOCUMENT WILL BE DISPLAYED HERE \newpage}
1043 %
1044 %
1045 % \StopEventually{^^A
1046 % \PrintChanges
1047 % \PrintIndex
1048 % }
1049 %
1050 % \begin{macrocode}
1051 %<*class>
1052 % \end{macrocode}
1053 %
1054 %\begin{macro}{apa7.cls}
1055 % \begin{macrocode}
1056 % % Below is the license statement from the apa class, upon which this
1057 % % apa7 class was built
1058 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1059 %
1060 % apa6 version 2.33
1061 %
1062 % apa6 - A LaTeX class for formatting documents in compliance with the
1063 % American Psychological Association's Publication Manual, 6th edition
1064 %
1065 % Copyright (C) 2011-2017 by Brian D. Beitzel <brian at beitzel.com>
1066 %
1067 % This work may be distributed and/or modified under the
1068 % conditions of the LaTeX Project Public License (LPPL), either
1069 % version 1.3c of this license or (at your option) any later
1070 % version. The latest version of this license is in the file:
1071 %
1072 % http://www.latex-project.org/lppl.txt
1073 %
1074 % Users may freely modify these files without permission, as long as the
1075 % copyright line and this statement are maintained intact.
1076 %
1077 % This work is not endorsed by, affiliated with, or probably even known
1078 % by, the American Psychological Association.
1079 %
1080 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1081
1082 \DeclareOption{man}{%
1083 \def\def@man{\@manmode}
1084 }
1085
1086 \DeclareOption{stu}{%
1087 \def\def@stu{\@stumode}
1088 \def\def@man{\@manmode}
1089 }
1090
1091 \DeclareOption{jou}{%
1092 \def\def@jou{\@joumode}
1093 }
1094
1095 \DeclareOption{doc}{%
1096 \def\def@doc{\@docmode}
1097 }
1098
1099 \DeclareOption{babel}{%
1100 \def\def@babel{\@babel}
1101 }
1102
1103 \DeclareOption{notimes}{%
1104 \@ifundefined{def@jou}{}{\def\def@notimes{\@notimes}}
1105 }
1106
1107 \DeclareOption{notxfonts}{% -- thp 2005/07/23
1108 \@ifundefined{def@jou}{}{\def\def@notxfonts{\@notxfonts}}
1109 }
1110
1111 \DeclareOption{nosf}{%
1112 \@ifundefined{def@man}{}{\def\def@nosf{\@nosf}}
1113 }
1114
1115 \DeclareOption{fignum}{%
1116 \@ifundefined{def@man}{}{\def\fig@num{\relax}}
1117 }
1118
1119 % \DeclareOption{floatmark}{%
1120 % \@ifundefined{def@man}{}{\def\float@mark{\relax}}
1121 % }
1122
1123 \DeclareOption{longtable}{%
1124 \def\long@table{\relax}
1125 }
1126
1127 \DeclareOption{tt}{%
1128 \@ifundefined{def@man}{}{\def\tt@family{\relax}}
1129 }
1130
1131 \DeclareOption{helv}{%
1132 \@ifundefined{def@man}{}{\def\helv@family{\relax}}
1133 }
1134
1135 \DeclareOption{notab}{\def\no@tab{\relax}}
1136
1137 \DeclareOption{nobf}{\def\no@bf@title{\relax}}
1138
1139 \DeclareOption{nolmodern}{%
1140 \def\def@nolmodern{\@nolmodernmode}
1141 }
1142
1143 \DeclareOption{nofontenc}{%
1144 \def\def@nofontenc{\@nofontencmode}
1145 }
1146
1147 % remove extra space around headings, etc., in man mode
1148 \DeclareOption{noextraspace}{%
1149 \ClassError{apa7}{Option removed: no longer uses as of version 2.15}{Spacing updated to more closely match APA 7th Edition Manual}
1150 }
1151
1152 % suppress the title at the introduction (in case a different title is desired)
1153 \DeclareOption{donotrepeattitle}{%
1154 \def\def@donotrepeattitle{\@donotrepeattitlemode}
1155 }
1156
1157 % in order to have tables and figure inside the text, Guillaume Jourjon 19/10/10
1158 \DeclareOption{floatsintext}{%
1159 \def\def@floatsintext{\@floatsintext}
1160 }
1161
1162 % allow A4 paper size
1163 \DeclareOption{a4paper}{%
1164 \def\def@aFourPaper{\@aFourPapermode}
1165 }
1166
1167 \DeclareOption{apacite}{% BDB
1168 \def\def@apacite{\@apacitemode}
1169 }
1170
1171 \DeclareOption{natbib}{% BDB
1172 \def\def@natbib{\@natbibmode}
1173 }
1174
1175 \DeclareOption{biblatex}{% BDB
1176 \def\def@biblatex{\@biblatexmode}
1177 }
1178
1179 \DeclareOption{draftfirst}{% BDB
1180 \def\def@draftfirst{\@draftfirstmode}
1181 }
1182
1183 \DeclareOption{draftall}{% BDB
1184 \def\def@draftall{\@draftallmode}
1185 }
1186
1187 \DeclareOption{mask}{\def\apaSeven@maskauthoridentity{\relax}} % BDB
1188
1189 % declare the font-size commands
1190 \newcommand\apaSeven@ptsize{}
1191 \newcommand\apaSeven@noptsize{}
1192 \DeclareOption{10pt}{\renewcommand\apaSeven@ptsize{10pt}}
1193 \DeclareOption{11pt}{\renewcommand\apaSeven@ptsize{11pt}}
1194 \DeclareOption{12pt}{\renewcommand\apaSeven@ptsize{12pt}}
1195
1196
1197 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
1198
1199 \ProcessOptions\relax
1200
1201 % make jou the default if no other options have been specified
1202 \@ifundefined{def@man}{%
1203 \@ifundefined{def@doc}{%
1204 \@ifundefined{def@jou}{%
1205 \def\def@jou{\@joumode}
1206 \ClassInfo{apa7}{Using default mode (jou)}
1207 %\def\def@man{\@manmode}
1208 %\def\def@doc{\@docmode}
1209 }{}
1210 }{}
1211 }{}
1212
1213 % pass the default font-size to the article class
1214 \@ifundefined{def@man}{%
1215 \@ifundefined{def@jou}{%
1216 \@ifundefined{def@doc}{%
1217 }{% doc
1218 \ifx\apaSeven@ptsize\apaSeven@noptsize
1219 \LoadClass[11pt]{article} % default for doc is 11pt
1220 \else
1221 \LoadClass[\apaSeven@ptsize]{article}
1222 \fi
1223 }
1224 }{% jou
1225 \ifx\apaSeven@ptsize\apaSeven@noptsize
1226 \LoadClass[10pt,twoside]{article} % default for jou is 10pt
1227 \else
1228 \LoadClass[\apaSeven@ptsize,twoside]{article}
1229 \fi
1230 }
1231 }{% man
1232 \ifx\apaSeven@ptsize\apaSeven@noptsize
1233 \LoadClass[12pt,twoside]{article} % default for man is 12pt
1234 \else
1235 \LoadClass[\apaSeven@ptsize]{article}
1236 \fi
1237 }
1238
1239
1240
1241 % determine the bibliography package, and load it if selected through the appropriate \documentclass option
1242 \@ifundefined{def@apacite}{%
1243 \@ifundefined{def@natbib}{%
1244 \@ifundefined{def@biblatex}{%
1245 \def\def@biblatex{\@biblatexmode}% the default bibliography package is biblatex
1246 \RequirePackage{etoolbox}
1247 \AtEndPreamble{%
1248 \@ifpackageloaded{biblatex}{% the user has loaded biblatex
1249 \@ifundefined{def@man}{%
1250 \defbibheading{bibliography}[\refname]{\section*{\normalfont\textbf{#1}}}%
1251 }{%
1252 \defbibheading{bibliography}[\refname]{\clearpage\section*{\normalfont\textbf{#1}}}%
1253 }
1254 }{}
1255 }
1256 \ClassInfo{apa7}{No bibliography package was specified; defaulting to (but not loading) Biblatex}
1257 }{%
1258 \def\def@biblatex{\@biblatexmode}% the selected bibliography package is Biblatex
1259 \RequirePackage[style=apa,backend=biber]{biblatex}
1260 \@ifundefined{def@man}{%
1261 \defbibheading{bibliography}[\refname]{\section*{\normalfont\textbf{#1}}}%
1262 }{%
1263 \defbibheading{bibliography}[\refname]{\clearpage\section*{\normalfont\textbf{#1}}}%
1264 }
1265 \ClassInfo{apa7}{The selected bibliography package, biblatex, has been loaded}
1266 }
1267 }{%
1268 \def\def@natbib{\@natbibmode}% the selected bibliography package is natbib (with apacite)
1269 \@ifundefined{def@man}{% -- thp 2005/07/23
1270 \RequirePackage[natbibapa]{apacite}[2012/02/25]}
1271 {\RequirePackage[natbibapa,bibnewpage]{apacite}[2012/02/25]}
1272 \ClassInfo{apa7}{The selected bibliography package, apacite and
1273 natbib, have been loaded}
1274 }
1275 }{%
1276 \def\def@apacite{\@apacitemode}% the selected bibliography package is apacite
1277 \@ifundefined{def@man}{% -- thp 2005/07/23
1278 \RequirePackage{apacite}[2005/06/08]}
1279 {\RequirePackage[bibnewpage]{apacite}[2005/06/08]}
1280 \ClassInfo{apa7}{The selected bibliography package, apacite, has been loaded}
1281 }
1282
1283 % load the lmodern package (needed for proper watermark font size)
1284 \@ifundefined{def@nolmodern}{%
1285 \RequirePackage{lmodern}
1286 }{}
1287
1288 % load the fontenc package (needed for proper hyphenation of accented characters)
1289 \@ifundefined{def@nofontenc}{%
1290 \RequirePackage[T1]{fontenc}
1291 }{}
1292
1293 % place a watermark on any pages indicated
1294 \@ifundefined{def@draftall}{%
1295 \@ifundefined{def@draftfirst}{}{%
1296 \RequirePackage[firstpage]{draftwatermark}
1297 \SetWatermarkText{DRAFT}
1298 }
1299 }{%
1300 % a draft watermark has been requested for all pages
1301 \RequirePackage{draftwatermark}
1302 \SetWatermarkText{DRAFT}
1303 }
1304
1305 %\@ifundefined{def@noapacite}% -- Philip Kime 2008/12/03
1306 % {\ClassInfo{apa7}{Using BibTeX with apacite for citations and references}}%
1307 % {\ClassInfo{apa7}{apacite not loaded -- User may load BibLaTeX}}
1308
1309
1310 %==== Conditional compilation macros depending on mode ====
1311
1312 \long\def\ifapamodeman#1#2{\@ifundefined{def@man}{#2}{#1}}
1313 \long\def\ifapamodejou#1#2{\@ifundefined{def@jou}{#2}{#1}}
1314 \long\def\ifapamodedoc#1#2{\@ifundefined{def@doc}{#2}{#1}}
1315 \long\def\ifapamode#1#2#3{%
1316 \@ifundefined{def@man}{%
1317 \@ifundefined{def@jou}{%
1318 \@ifundefined{def@doc}{\ClassError{apa7}{Undefined mode state!}}{#3}%
1319 }{#2}%
1320 }{#1}%
1321 }
1322
1323 %=================================================================
1324 \@ifundefined{def@man}{}{%
1325 %
1326 % endnotes and endfloat loaded later
1327 % longtable must be loaded before endfloat
1328 %
1329 \@ifundefined{long@table}{}{%
1330 \RequirePackage{array}
1331 \RequirePackage{longtable}
1332 %
1333 % longtable messes with captions too, we need to intervene to match style
1334 % NOTE: the caption package makes the following redundant
1335 %\def\LT@makecaption#1#2#3{%
1336 % \LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox{\linewidth}{%
1337 % \vskip 10pt%
1338 % #1{#2}%
1339 % \let\BBAB\table@BBAB% -- thp 2005/07/23
1340 % \par\emph{#3}%
1341 % \let\BBAB\normal@BBAB% -- thp 2005/07/23
1342 % \endgraf\vskip\baselineskip}%
1343 % \hss}}}
1344 }% END of loading longtable
1345 %
1346 % Switch font family for manuscript if required
1347 %
1348 \@ifundefined{tt@family}{}{%
1349 % A typewriter font can be used as in the APA manual example. Since tt has
1350 % no bold (or bold-italic), the cmss font metrics are loaded instead
1351 % \DeclareFontShape{OT1}{cmtt}{bx}{n}{ <-> sub * cmss/bx/n }{} % this fails
1352 \DeclareFontShape{OT1}{cmtt}{bx}{n}{ <-> cmssbx10 }{} % probably not the
1353 \DeclareFontShape{OT1}{cmtt}{bx}{it}{ <-> cmssbxo10}{} % right way to do it
1354 \renewcommand{\familydefault}{cmtt}
1355 }
1356 \@ifundefined{helv@family}{}{%
1357 \renewcommand{\familydefault}{phv}}
1358 }
1359
1360
1361 %
1362 % For jou mode, load times (and related math fonts) if available
1363 % First try txfonts because they are supposed to have better math definitions
1364 %
1365 \@ifundefined{def@jou}{}{%
1366 \@ifundefined{def@notimes}{%
1367 \newif\iftxfonts % -- thp 2005/07/23
1368 \txfontsfalse % added checks for txfonts because they may be undesirable
1369 % for example, there are no Greek txfonts but there are times
1370 \IfFileExists{txfonts.sty}{\@ifundefined{def@notxfonts}{\txfontstrue}{}}{}
1371 \iftxfonts%
1372 \RequirePackage{txfonts}%
1373 \typeout{apa7.cls: Using txfonts}% Changed from Warning -- thp 2005/12/28
1374 %%%
1375 % According to Erik Meijer, txfonts causes problems if amsmath is loaded later
1376 % (i.e., via \usepackage by the user); instead of providing yet another option
1377 % to load amsmath by apa.cls, we adopt Erik's suggestion to undefine temporarily
1378 % the offending macros -- thp 2005/12/28
1379 \let\tempiint\iint\let\iint\undefined
1380 \let\tempiiint\iiint\let\iiint\undefined
1381 \let\tempiiiint\iiiint\let\iiiint\undefined
1382 \let\tempidotsint\idotsint\let\idotsint\undefined
1383 \let\tempopenbox\openbox\let\openbox\undefined
1384 \AtBeginDocument{%
1385 \let\iint\tempiint\let\tempiint\undefined
1386 \let\iiint\tempiiint\let\tempiiint\undefined
1387 \let\iiiint\tempiiiint\let\tempiiiint\undefined
1388 \let\idotsint\tempidotsint\let\tempidotsint\undefined
1389 \let\openbox\tempopenbox\let\tempopenbox\undefined
1390 }
1391 %%% end of taking care of txfonts problems
1392 \else%
1393 % if txfonts are not available/desirable, try pslatextimes/mathptm
1394 \IfFileExists{pslatex.sty}
1395 {\RequirePackage{pslatex}}
1396 % if pslatex is not available, try times/mathptm
1397 {\RequirePackage{times}
1398 \IfFileExists{mathptm.sty}{\RequirePackage{mathptm}}{}}%
1399 \fi% txfonts not available/desirable
1400 }{}% def@notimes
1401 }% def@jou
1402
1403
1404 % choose a paper size and set the page margins
1405 \@ifundefined{def@aFourPaper}{
1406 \RequirePackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
1407 }{
1408 \RequirePackage[top=1in, bottom=1in, left=1in, right=1in,a4paper]{geometry}
1409 }
1410
1411 \RequirePackage{graphicx} % this is for including graphics
1412
1413 \RequirePackage{scalerel,tikz,hyperref} % this is included for ORCID icon
1414 \usetikzlibrary{svg.path}
1415 \definecolor{orcidlogocol}{HTML}{A6CE39}
1416 \tikzset{
1417 orcidlogo/.pic={
1418 \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};
1419 \fill[white] svg{M86.3,186.2H70.9V79.1h15.4v48.4V186.2z}
1420 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}
1421 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};
1422 }
1423 }
1424 \newcommand{\addORCIDlink}[2]{#1 \href{https://orcid.org/#2}{{\mbox{\scalerel*{
1425 \begin{tikzpicture}[yscale=-1,transform shape]
1426 \pic{orcidlogo};
1427 \end{tikzpicture}
1428 }{|}}} https://orcid.org/#2}}
1429
1430 \RequirePackage{booktabs} % this is for nice-looking tables
1431 \setlength{\abovetopsep}{0pt} % set the distance between the table title and the table toprule
1432 \setlength{\belowbottomsep}{0pt} % set the distance between the table bottomrule and any notes
1433
1434 \RequirePackage[para,flushleft]{threeparttable} % this is for nice-looking table footnotes, etc.
1435 % need to redefine the tablenotes so they hug the bottom line of the table a little closer
1436 % also, the manuscript format needs to have \raggedright
1437 \@ifundefined{def@man}{% BDB
1438 \def\TPT@doparanotes{\par\vspace{-.5\baselineskip}% BDB
1439 \prevdepth\z@ \TPT@hsize
1440 \TPTnoteSettings
1441 \parindent\z@ \pretolerance 8
1442 \linepenalty 200
1443 \renewcommand\item[1][]{\relax\ifhmode \begingroup
1444 \unskip
1445 \advance\hsize 10em % \hsize is scratch register, based on real hsize
1446 \penalty -45 \hskip\z@\@plus\hsize \penalty-19
1447 \hskip .15\hsize \penalty 9999 \hskip-.15\hsize
1448 \hskip .01\hsize\@plus-\hsize\@minus.01\hsize
1449 \hskip 1em\@plus .3em
1450 \endgroup\fi
1451 \tnote{##1}\,\ignorespaces}%
1452 \let\TPToverlap\relax
1453 \def\endtablenotes{\par}%
1454 }
1455 }{%
1456 \def\TPT@doparanotes{\par\vspace{-.4\baselineskip}% BDB
1457 \prevdepth\z@ \TPT@hsize
1458 \TPTnoteSettings
1459 \raggedright
1460 \parindent\z@ \pretolerance 8
1461 \linepenalty 200
1462 \renewcommand\item[1][]{\relax\ifhmode \begingroup
1463 \unskip
1464 \advance\hsize 10em % \hsize is scratch register, based on real hsize
1465 \penalty -45 \hskip\z@\@plus\hsize \penalty-19
1466 \hskip .15\hsize \penalty 9999 \hskip-.15\hsize
1467 \hskip .01\hsize\@plus-\hsize\@minus.01\hsize
1468 \hskip 1em\@plus .3em
1469 \endgroup\fi
1470 \tnote{##1}\,\ignorespaces}%
1471 \let\TPToverlap\relax
1472 \def\endtablenotes{\par}%
1473 }
1474 }
1475
1476 %========= Language portability parameters ===========
1477
1478 % Language-specific definition of strings is handled externally -- thp 2005/12/30
1479 % Based on handling of the same issue in apacite.sty
1480
1481 % First define the default American English macros in case no external file is present or needed
1482 \def\lastauthorseparator{and}
1483 \def\acksname{Author Note}
1484 \def\keywordname{Keywords}
1485 \def\notesname{Footnotes}
1486 \def\notelabel{Note}
1487
1488 \AtBeginDocument{% so that we know what language is active in babel
1489
1490 % \typeout{\string\languagename\space is\space\languagename}
1491 % \@ifundefined{iflanguage}% this is defined by babel, so it means babel is loaded
1492 % Unfortunately, because babel is built into the format
1493 % in modern distributions, \iflanguage is defined and
1494 % \languagename contains whichever language happens to be
1495 % last in the definition list, whether or not the babel
1496 % package is loaded by the current document
1497
1498 \@ifpackageloaded{babel}% this is defined only if the user requested loading babel
1499 {\def\@apaSeven@langfile{config/APA7\languagename.txt}}
1500 {\def\@apaSeven@langfile{config/APA7american.txt}}
1501 \InputIfFileExists{\@apaSeven@langfile}{}{%
1502 \ClassInfo{apa7}{Language definition file \@apaSeven@langfile\space not found}
1503 }%
1504 }
1505
1506 %========== Load babel if required ===================
1507
1508 \@ifundefined{def@babel}{}{% -- thp 2005/07/23
1509 \RequirePackage{babel} % -- thp 2005/07/23, removed options 2005/12/28
1510 }
1511
1512 \@ifundefined{def@biblatex}{}{% BDB
1513
1514 % we are using biblatex
1515
1516 %%%%%%%%%%%% biblatex commands %%%%%%%%%%%%%%%%
1517 %%
1518 %% \cite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk, 2001; Ross, 1987, p. 11
1519 %% \Cite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., Van Dijk, 2001; Ross, 1987, p. 11
1520 %% \parencite[e.g.,][p.~11]{vanDijk2001,Ross1987} => (e.g., van Dijk, 2001; Ross, 1987, p. 11)
1521 %% \Parencite[e.g.,][p.~11]{vanDijk2001,Ross1987} => (e.g., Van Dijk, 2001; Ross, 1987, p. 11)
1522 %% \textcite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk (2001); Ross (1987, p. 11)
1523 %% \Textcite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., Van Dijk (2001); Ross (1987, p. 11)
1524 %% \citeauthor[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk (2001); Ross (1987, p. 11)
1525 %% \Citeauthor[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., Van Dijk (2001); Ross (1987, p. 11)
1526 %% \citeyear[e.g.,][p.~11]{vanDijk2001} => e.g., 2001, p. 11)
1527 %% \footcite[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk, 2001; Ross, 1987, p. 11. [as footnote]
1528 %% \footcitetext[e.g.,][p.~11]{vanDijk2001,Ross1987} => e.g., van Dijk, 2001; Ross, 1987, p. 11. [as footnotetext]
1529 %%
1530 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1531
1532 \@ifundefined{apaSeven@maskauthoridentity}% BDB
1533 {% change masked references to unmasked
1534 \providecommand\maskcite\cite
1535 \providecommand\maskCite\Cite
1536 \providecommand\maskparencite\parencite
1537 \providecommand\maskParencite\Parencite
1538 \providecommand\masktextcite\textcite
1539 \providecommand\maskTextcite\Textcite
1540 \providecommand\maskciteauthor\citeauthor
1541 \providecommand\maskCiteauthor\Citeauthor
1542 \providecommand\maskciteyear\citeyear
1543 \providecommand\maskfootcite\footcite
1544 \providecommand\maskfootcitetext\footcitetext
1545 }{% mask references to author
1546
1547 \RequirePackage{substr} % to allow counting of masked references
1548 \newcounter{maskedRefs}
1549
1550 % \maskcite
1551 \newcommand\maskcite{\@ifnextchar[{\maskcite@@also}{\maskcite@@also[]}}
1552 \newcommand\maskcite@@also{}
1553 \def\maskcite@@also[#1]{\@ifnextchar[{\maskcite@@@also[#1]}{\maskcite@@@also[][#1]}}
1554
1555 \def\maskcite@@@also%
1556 [#1][#2]#3{%
1557 \setcounter{maskedRefs}{0}%
1558 \SubStringsToCounter{maskedRefs}{,}{#3}%
1559 \addtocounter{maskedRefs}{1}%
1560 \ifnum\value{maskedRefs} = 1%
1561 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1562 \else%
1563 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1564 \fi%
1565 \apaSeven@masked@refs%
1566 }
1567
1568 % \maskCite
1569 \newcommand\maskCite{\@ifnextchar[{\maskCite@@also}{\maskCite@@also[]}}
1570 \newcommand\maskCite@@also{}
1571 \def\maskCite@@also[#1]{\@ifnextchar[{\maskCite@@@also[#1]}{\maskCite@@@also[][#1]}}
1572
1573 \def\maskCite@@@also%
1574 [#1][#2]#3{%
1575 \setcounter{maskedRefs}{0}%
1576 \SubStringsToCounter{maskedRefs}{,}{#3}%
1577 \addtocounter{maskedRefs}{1}%
1578 \ifnum\value{maskedRefs} = 1%
1579 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1580 \else%
1581 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1582 \fi%
1583 \apaSeven@masked@refs%
1584 }
1585
1586 % \maskparencite
1587 \newcommand\maskparencite{\@ifnextchar[{\maskparencite@@also}{\maskparencite@@also[]}}
1588 \newcommand\maskparencite@@also{}
1589 \def\maskparencite@@also[#1]{\@ifnextchar[{\maskparencite@@@also[#1]}{\maskparencite@@@also[][#1]}}
1590
1591 \def\maskparencite@@@also%
1592 [#1][#2]#3{%
1593 \setcounter{maskedRefs}{0}%
1594 \SubStringsToCounter{maskedRefs}{,}{#3}%
1595 \addtocounter{maskedRefs}{1}%
1596 \ifnum\value{maskedRefs} = 1%
1597 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1598 \else%
1599 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1600 \fi%
1601 \apaSeven@masked@refs%
1602 }
1603
1604 % \maskParencite
1605 \newcommand\maskParencite{\@ifnextchar[{\maskParencite@@also}{\maskParencite@@also[]}}
1606 \newcommand\maskParencite@@also{}
1607 \def\maskParencite@@also[#1]{\@ifnextchar[{\maskParencite@@@also[#1]}{\maskParencite@@@also[][#1]}}
1608
1609 \def\maskParencite@@@also%
1610 [#1][#2]#3{%
1611 \setcounter{maskedRefs}{0}%
1612 \SubStringsToCounter{maskedRefs}{,}{#3}%
1613 \addtocounter{maskedRefs}{1}%
1614 \ifnum\value{maskedRefs} = 1%
1615 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1616 \else%
1617 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1618 \fi%
1619 \apaSeven@masked@refs%
1620 }
1621
1622 % \maskciteauthor
1623 \newcommand\maskciteauthor{\@ifnextchar[{\maskciteauthor@@also}{\maskciteauthor@@also[]}}
1624 \newcommand\maskciteauthor@@also{}
1625 \def\maskciteauthor@@also[#1]{\@ifnextchar[{\maskciteauthor@@@also[#1]}{\maskciteauthor@@@also[][#1]}}
1626
1627 \def\maskciteauthor@@@also%
1628 [#1][#2]#3{%
1629 \setcounter{maskedRefs}{0}%
1630 \SubStringsToCounter{maskedRefs}{,}{#3}%
1631 \addtocounter{maskedRefs}{1}%
1632 \ifnum\value{maskedRefs} = 1%
1633 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1634 \else%
1635 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1636 \fi%
1637 \apaSeven@masked@refs%
1638 }
1639
1640 % \maskCiteauthor
1641 \newcommand\maskCiteauthor{\@ifnextchar[{\maskCiteauthor@@also}{\maskCiteauthor@@also[]}}
1642 \newcommand\maskCiteauthor@@also{}
1643 \def\maskCiteauthor@@also[#1]{\@ifnextchar[{\maskCiteauthor@@@also[#1]}{\maskCiteauthor@@@also[][#1]}}
1644
1645 \def\maskCiteauthor@@@also%
1646 [#1][#2]#3{%
1647 \setcounter{maskedRefs}{0}%
1648 \SubStringsToCounter{maskedRefs}{,}{#3}%
1649 \addtocounter{maskedRefs}{1}%
1650 \ifnum\value{maskedRefs} = 1%
1651 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1652 \else%
1653 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1654 \fi%
1655 \apaSeven@masked@refs%
1656 }
1657
1658 % \maskciteyear
1659 \newcommand\maskciteyear{\@ifnextchar[{\maskciteyear@@also}{\maskciteyear@@also[]}}
1660 \newcommand\maskciteyear@@also{}
1661 \def\maskciteyear@@also[#1]{\@ifnextchar[{\maskciteyear@@@also[#1]}{\maskciteyear@@@also[][#1]}}
1662
1663 \def\maskciteyear@@@also%
1664 [#1][#2]#3{%
1665 \setcounter{maskedRefs}{0}%
1666 \SubStringsToCounter{maskedRefs}{,}{#3}%
1667 \addtocounter{maskedRefs}{1}%
1668 \ifnum\value{maskedRefs} = 1%
1669 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1670 \else%
1671 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1672 \fi%
1673 \apaSeven@masked@refs%
1674 }
1675
1676 % \maskfootcite
1677 \newcommand\maskfootcite{\@ifnextchar[{\maskfootcite@@also}{\maskfootcite@@also[]}}
1678 \newcommand\maskfootcite@@also{}
1679 \def\maskfootcite@@also[#1]{\@ifnextchar[{\maskfootcite@@@also[#1]}{\maskfootcite@@@also[][#1]}}
1680
1681 \def\maskfootcite@@@also%
1682 [#1][#2]#3{%
1683 \setcounter{maskedRefs}{0}%
1684 \SubStringsToCounter{maskedRefs}{,}{#3}%
1685 \addtocounter{maskedRefs}{1}%
1686 \ifnum\value{maskedRefs} = 1%
1687 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1688 \else%
1689 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1690 \fi%
1691 \apaSeven@masked@refs%
1692 }
1693
1694 % \maskfootcitetext
1695 \newcommand\maskfootcitetext{\@ifnextchar[{\maskfootcitetext@@also}{\maskfootcitetext@@also[]}}
1696 \newcommand\maskfootcitetext@@also{}
1697 \def\maskfootcitetext@@also[#1]{\@ifnextchar[{\maskfootcitetext@@@also[#1]}{\maskfootcitetext@@@also[][#1]}}
1698
1699 \def\maskfootcitetext@@@also%
1700 [#1][#2]#3{%
1701 \setcounter{maskedRefs}{0}%
1702 \SubStringsToCounter{maskedRefs}{,}{#3}%
1703 \addtocounter{maskedRefs}{1}%
1704 \ifnum\value{maskedRefs} = 1%
1705 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1706 \else%
1707 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1708 \fi%
1709 \apaSeven@masked@refs%
1710 }
1711
1712 % \masktextcite
1713 \newcommand\masktextcite{\@ifnextchar[{\masktextcite@@also}{\masktextcite@@also[]}}
1714 \newcommand\masktextcite@@also{}
1715 \def\masktextcite@@also[#1]{\@ifnextchar[{\masktextcite@@@also[#1]}{\masktextcite@@@also[][#1]}}
1716
1717 \def\masktextcite@@@also%
1718 [#1][#2]#3{%
1719 \setcounter{maskedRefs}{0}%
1720 \SubStringsToCounter{maskedRefs}{,}{#3}%
1721 \addtocounter{maskedRefs}{1}%
1722 \ifnum\value{maskedRefs} = 1%
1723 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1724 \else%
1725 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1726 \fi%
1727 \apaSeven@masked@refs%
1728 }
1729
1730 % \maskTextcite
1731 \newcommand\maskTextcite{\@ifnextchar[{\maskTextcite@@also}{\maskTextcite@@also[]}}
1732 \newcommand\maskTextcite@@also{}
1733 \def\maskTextcite@@also[#1]{\@ifnextchar[{\maskTextcite@@@also[#1]}{\maskTextcite@@@also[][#1]}}
1734
1735 \def\maskTextcite@@@also%
1736 [#1][#2]#3{%
1737 \setcounter{maskedRefs}{0}%
1738 \SubStringsToCounter{maskedRefs}{,}{#3}%
1739 \addtocounter{maskedRefs}{1}%
1740 \ifnum\value{maskedRefs} = 1%
1741 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citation removed for masked review})}%
1742 \else%
1743 \def\apaSeven@masked@refs{(\textit{\themaskedRefs\ citations removed for masked review})}%
1744 \fi%
1745 \apaSeven@masked@refs%
1746 }
1747
1748 }
1749
1750 }
1751
1752
1753
1754 %========== APA Section spacing
1755
1756 \newskip\b@level@one@skip \b@level@one@skip=2.5ex plus 1ex minus .2ex
1757 \newskip\e@level@one@skip \e@level@one@skip=1.5ex plus .6ex minus .1ex
1758 \newskip\b@level@two@skip \b@level@two@skip=2.5ex plus 1ex minus .2ex
1759 \newskip\e@level@two@skip \e@level@two@skip=1.5ex plus .6ex minus .1ex
1760 \newskip\b@level@three@skip \b@level@three@skip=2.0ex plus .8ex minus .2ex
1761 \newskip\e@level@three@skip \e@level@three@skip=1.5ex plus .6ex minus .1ex
1762 \newskip\b@level@four@skip \b@level@four@skip=0\baselineskip \@plus 0.2ex \@minus 0.2ex
1763 \newskip\e@level@four@skip \e@level@four@skip=-0.5em
1764 \newskip\b@level@five@skip \b@level@five@skip=0\baselineskip \@plus 0.2ex \@minus 0.2ex
1765 \newskip\e@level@five@skip \e@level@five@skip=-0.5em
1766
1767 \ifapamodeman{%
1768 \b@level@one@skip=0.2\baselineskip \@plus 0.2ex \@minus 0.2ex
1769 \e@level@one@skip=0.2\baselineskip \@plus .2ex
1770 \b@level@two@skip=0.2\baselineskip \@plus 0.2ex \@minus 0.2ex
1771 \e@level@two@skip=0.2\baselineskip \@plus 0.2ex
1772 \b@level@three@skip=0.2\baselineskip \@plus 0.2ex \@minus 0.2ex
1773 \e@level@three@skip=0.2\baselineskip \@plus 0.2ex
1774 \b@level@four@skip=0\baselineskip \@plus 0.2ex \@minus 0.2ex
1775 \e@level@four@skip=-0.5em
1776 \b@level@five@skip=0\baselineskip \@plus 0.2ex \@minus 0.2ex
1777 \e@level@five@skip=-0.5em
1778 }{}
1779
1780 %========== APA Section heading & seriation, adapted from class apa6e
1781
1782 % % Below is the license statement from the apa6e class, from which a
1783 % % small bit of code was used (with permission from Nathaniel Smith)
1784 % % Copyright (C) 2011 by Nathaniel J. Smith <[email protected]>
1785 % %
1786 % % Redistribution and use in source and binary forms, with or without
1787 % % modification, are permitted provided that the following conditions are
1788 % % met:
1789 % %
1790 % % 1. Redistributions of source code must retain the above copyright
1791 % % notice, this list of conditions and the following disclaimer.
1792 % %
1793 % % 2. Redistributions in binary form must reproduce the above
1794 % % copyright notice, this list of conditions and the following
1795 % % disclaimer in the documentation and/or other materials provided
1796 % % with the distribution.
1797 % %
1798 % % THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1799 % % ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1800 % % LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1801 % % A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1802 % % HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1803 % % SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1804 % % LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
1805 % % DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
1806 % % THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
1807 % % (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1808 % % OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1809 % %
1810
1811 \setcounter{secnumdepth}{0}
1812
1813 \renewcommand{\section}{\@startsection {section}{1}{\z@}%
1814 {\b@level@one@skip}{\e@level@one@skip}%
1815 {\centering\normalfont\normalsize\bfseries}}
1816
1817 \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
1818 {\b@level@two@skip}{\e@level@two@skip}%
1819 {\normalfont\normalsize\bfseries}}
1820
1821
1822 \newcommand*{\typesectitle}[1]{#1\addperi}
1823
1824 \newcommand*{\addperi}{%
1825 \relax\ifhmode%
1826 \ifnum\spacefactor>\@m \else.\fi%
1827 \fi%
1828 }
1829
1830 \renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
1831 {\b@level@three@skip}{\e@level@three@skip}%
1832 {\normalfont\normalsize\bfseries\itshape}}
1833
1834 \renewcommand{\paragraph}{\@startsection{paragraph}{4}{\parindent}%
1835 {\b@level@four@skip}%
1836 {\e@level@four@skip}%
1837 {\normalfont\normalsize\bfseries\typesectitle}}
1838
1839 \renewcommand{\subparagraph}[1]{\@startsection{subparagraph}{5}{1em}%
1840 {\b@level@five@skip}%
1841 {\e@level@five@skip}%
1842 {\normalfont\normalsize\bfseries\itshape\hspace{\parindent}{#1}\textit{\addperi}}{\relax}}
1843
1844 % make the References section non-boldface
1845 \AtBeginDocument{\def\st@rtbibsection{\mspart{\refname}}}% BDB -- this is for apacite
1846 \AtBeginDocument{\def\bibsection{\mspart{\refname}}}% BDB -- this is for apacite + natbib
1847 \newcommand{\mspart}{{\ifapamodeman{\clearpage}{}}\@startsection {section}{1}{\z@}%
1848 {\b@level@one@skip}{\e@level@one@skip}%
1849 {\centering\normalfont\normalsize}}
1850
1851 % format the table and figure captions
1852 \RequirePackage[singlelinecheck=off]{caption}
1853
1854 \ifapamode{% man
1855 \DeclareCaptionLabelFormat{tablelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}}
1856 \DeclareCaptionLabelFormat{figurelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}}
1857 \DeclareCaptionTextFormat{tabletext}{\hspace{-\parindent}\raggedright\textit{#1}}
1858 \DeclareCaptionLabelSeparator{apalabelsep}{\\}
1859 }{% jou
1860 \DeclareCaptionLabelFormat{tablelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}}
1861 \DeclareCaptionLabelFormat{figurelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}}
1862 \DeclareCaptionTextFormat{tabletext}{\hspace{-\parindent}\textit{#1}}
1863 \DeclareCaptionLabelSeparator{apalabelsep}{\\[\baselineskip]}
1864 }{% doc
1865 \DeclareCaptionLabelFormat{tablelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}}
1866 \DeclareCaptionLabelFormat{figurelabel}{\hspace{-\parindent}\raggedright\textbf{#1 #2}}
1867 \DeclareCaptionTextFormat{tabletext}{\hspace{-\parindent}\raggedright\textit{#1}}
1868 \DeclareCaptionLabelSeparator{apalabelsep}{\\[\baselineskip]}
1869 }
1870 \captionsetup[table]{position=above,skip=0pt,labelformat=tablelabel,labelsep=apalabelsep,textformat=tabletext}
1871 \captionsetup[figure]{position=above,skip=0pt,labelformat=figurelabel,labelsep=apalabelsep,textfont=it}
1872
1873 % space between caption and surrounding document text
1874 % \setlength{\belowcaptionskip}{0pt}
1875
1876
1877 %=============================================================
1878 %
1879 % End of code from apa6e
1880 %
1881 %=============================================================
1882
1883 \newcommand{\figurenote}[1]{\par \small \textit{\notelabel.} {#1}}
1884 \newcommand{\tablenote}[1]{\begin{tablenotes}[para,flushleft]
1885 {\small
1886 \textit{\notelabel.} {#1}
1887 }
1888 \end{tablenotes}}
1889
1890 % Code from theapa.sty
1891
1892 % Refer to LaTeX book to modify, if you want, spaces before and after of
1893 % \begin{...} ... \end{...} or spaces between \item-s.
1894 \newcounter{APAenum}
1895 \newskip\@text@par@indent
1896 \def\APAenumerate{\@text@par@indent\parindent\setbox0\hbox{1. }%
1897 \list{\arabic{APAenum}.}{\usecounter{APAenum}
1898 \labelwidth\z@\labelsep\z@\leftmargin\z@\parsep\z@
1899 \rightmargin\z@\itemsep\z@\topsep\z@\partopsep\z@
1900 \itemindent\@text@par@indent\advance\itemindent by\wd0
1901 \def\makelabel##1{\hss\llap{##1 }}}}
1902 \let\endAPAenumerate=\endlist
1903
1904 \def\seriate{\@bsphack\begingroup%
1905 \setcounter{APAenum}{0}%
1906 \def\item{\addtocounter{APAenum}{1}(\alph{APAenum})\space}%
1907 \ignorespaces}
1908 \def\endseriate{\endgroup\@esphack}
1909
1910 \def\APAitemize{\@text@par@indent\parindent\setbox0\hbox{$\bullet$}%
1911 \list{$\bullet$}{%
1912 \labelwidth\z@\labelsep.5em\leftmargin\z@\parsep\z@
1913 \rightmargin\z@\itemsep\z@\topsep\z@\partopsep\z@
1914 \itemindent\@text@par@indent
1915 \advance\itemindent by\wd0\advance\itemindent by.5em
1916 \def\makelabel##1{\hss\llap{##1}}}}
1917 \let\endAPAitemize=\endlist
1918
1919 % \let\enumerate=\APAenumerate
1920 % \let\endenumerate=\endAPAenumerate
1921 % \let\itemize=\APAitemize
1922 % \let\enditemize=\endAPAitemize
1923
1924 %=============================================================
1925 %
1926 % End of code from theapa.sty
1927 %
1928 %=============================================================
1929
1930 %===== apa.cls main declarations for title page contents =====
1931
1932 \long\def\title#1{\long\def\@title{#1}}
1933 \long\def\author#1{\authorsnames{#1}}
1934 \long\def\affiliation#1{\ClassWarning{apa7}{Deprecated: see documentation for \string\authorsaffiliations}\authorsaffiliations{#1}}
1935 \long\def\twoauthors#1#2{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}}
1936 \long\def\threeauthors#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}}
1937 \long\def\onetwoauthors#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}}
1938 \long\def\twooneauthors#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}}
1939 \long\def\fourauthors#1#2#3#4{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}}
1940 \long\def\fiveauthors#1#2#3#4#5{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}}
1941 \long\def\sixauthors#1#2#3#4#5#6{\ClassError{apa7}{Deprecated: see documentation for \string\authorsnames}{For multiple authors use \string\authorsnames}}
1942 \long\def\twoaffiliations#1#2{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}}
1943 \long\def\threeaffiliations#1#2#3{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}}
1944 \long\def\fouraffiliations#1#2#3#4{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}}
1945 \long\def\fiveaffiliations#1#2#3#4#5{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}}
1946 \long\def\sixaffiliations#1#2#3#4#5#6{\ClassError{apa7}{Deprecated: see documentation for \string\authorsaffiliations}{For multiple affiliations use \string\authorsaffiliations}}
1947 \long\def\course#1{\long\def\@course{#1}}
1948 \long\def\professor#1{\long\def\@professor{#1}}
1949 \long\def\duedate#1{\long\def\@duedate{#1}}
1950 \long\def\shorttitle#1{\long\def\@shorttitle{#1}}
1951 \long\def\note#1{\long\def\@note{#1}}
1952 \long\def\abstract#1{\long\def\@abstract{#1}}
1953 \long\def\keywords#1{\long\def\@keywords{#1}}
1954 %\long\def\acknowledgements#1{\long\def\@acks{#1}}
1955 \long\def\authornote#1{\long\def\@acks{#1}}
1956 \def\journal#1{\def\@journal{#1}}
1957 \def\volume#1{\def\@vvolume{#1}}
1958 \def\ccoppy#1{\def\@ccoppy{#1}}
1959 \def\copnum#1{\def\@copnum{#1}}
1960
1961 % Combined code from https://tex.stackexchange.com/questions/297507/how-to-apply-a-do-function-to-two-lists and
1962 % https://www.dickimaw-books.com/latex/admin/html/exercises/oxfordcomma.shtml
1963
1964 % Create etoolbox lists for multiple authors and affiliations
1965 \newcommand*\listauthors{}
1966 \newcommand*\listsuperscripts{}
1967 \newcommand*\listaffiliations{}
1968
1969 \newcommand*{\authorsnames}[2][]{
1970 \def\def@multipleauthors{\@multipleauthorsmode} %
1971 \renewcommand*\listauthors{}
1972 \renewcommand*\listsuperscripts{}
1973 \newcounter{NumberOfAuthors}
1974 \newcounter{NumberOfSuperscripts}
1975 \forcsvlist{\stepcounter{NumberOfAuthors}\listadd\listauthors}{#2}
1976 \forcsvlist{\stepcounter{NumberOfSuperscripts}\listadd\listsuperscripts}{#1}
1977 }
1978
1979 \newcommand*{\authorsaffiliations}[1]{
1980 \def\def@multipleaffils{\@multipleaffilsmode} %
1981 \renewcommand*\listaffiliations{}
1982 \newcounter{NumberOfAffiliations}
1983 \forcsvlist{\stepcounter{NumberOfAffiliations}\listadd\listaffiliations}{#1}
1984 }
1985
1986 \makeatletter
1987 \catcode`\|=3
1988
1989 \def\looptwo#1#2{%
1990 \edef\tmp{\noexpand\xtwo%
1991 \unexpanded\expandafter{#1}\relax % no added delimiter here
1992 \unexpanded\expandafter{#2}\relax % no added delimiter here
1993 } \tmp%
1994 }%
1995
1996 \def\xtwo#1|#2\relax#3|#4\relax{%
1997 \dotwo{#1}{#3}%
1998 \def\tmp{#2}%
1999 \ifx\empty\tmp%
2000 \expandafter\@gobble%
2001 \else%
2002 \expandafter\@firstofone%
2003 \fi%
2004 {\xtwo#2\relax#4\relax}%
2005 }%
2006
2007 \catcode`\|=12
2008 \makeatother
2009
2010 \newcommand*{\dotwo}[2]{}
2011
2012 \newcommand*{\authorsep}{}%
2013 \newcommand*{\lastauthor}{}%
2014 \newcommand*{\prelastauthor}{}%
2015 \newcommand*{\prelastauthorsep}{}%
2016
2017 \newcommand{\displayauthors}{%
2018 \renewcommand*{\authorsep}{}%
2019 \renewcommand*{\lastauthor}{}%
2020 \renewcommand*{\prelastauthor}{}%
2021 \renewcommand*{\prelastauthorsep}{}%
2022 \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print authors without superscripts.
2023 \renewcommand*{\do}[1]{%
2024 \authorsep%
2025 \lastauthor%
2026 \renewcommand{\lastauthor}{%
2027 \renewcommand{\authorsep}{,
2028 \renewcommand*{\prelastauthorsep}{,}}%
2029 \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
2030 ##1%
2031 }%
2032 }%
2033 \dolistloop{\listauthors}%
2034 \else
2035 \renewcommand*{\dotwo}[2]{%
2036 \authorsep%
2037 \lastauthor%
2038 \renewcommand{\lastauthor}{%
2039 \renewcommand{\authorsep}{,
2040 \renewcommand*{\prelastauthorsep}{,}}%
2041 \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
2042 ##1\textsuperscript{##2}%
2043 }%
2044 }%
2045 \looptwo\listauthors\listsuperscripts%
2046 \fi
2047 \prelastauthor \lastauthor%
2048 }
2049
2050 \newcommand{\displayaffiliations}{%
2051 \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print affiliations without superscripts.
2052 \renewcommand*{\do}[1]{%
2053 ##1\\%
2054 }%
2055 \else
2056 \newcounter{AffiliationNumber}
2057 \renewcommand*{\do}[1]{%
2058 \stepcounter{AffiliationNumber}
2059 \textsuperscript{\arabic{AffiliationNumber}}##1\\%
2060 }%
2061 \fi
2062 \dolistloop{\listaffiliations}%
2063 }
2064
2065 \makeatletter
2066
2067 \def\check@author{%
2068 \@ifundefined{def@multipleauthors}{%
2069 \ClassWarningNoLine{apa7}{Author not defined}\authorsnames{Author}}{}
2070 \@ifundefined{@title}{%
2071 \ClassWarningNoLine{apa7}{Title not defined}\def\@title{Title}}{}
2072 \@ifundefined{def@multipleaffils}{%
2073 \ClassWarningNoLine{apa7}{Affiliation not defined}\authorsaffiliations{Affiliation}}{}
2074 \@ifundefined{def@stu}{% man mode
2075 \@ifundefined{@shorttitle}{%
2076 \ClassWarningNoLine{apa7}{Short title not defined}\def\@shorttitle{INSERT SHORTTITLE COMMAND IN PREAMBLE}}{}
2077 \@ifundefined{@abstract}{%
2078 \ClassWarningNoLine{apa7}{Abstract not defined}}{}
2079 \@ifundefined{@keywords}{%
2080 \ClassInfo{apa7}{Keywords not defined}}{}
2081 }{ % stu mode
2082 \@ifundefined{@course}{%
2083 \ClassWarningNoLine{apa7}{Course title not defined}\def\@course{Course Title}}{}
2084 \@ifundefined{@professor}{%
2085 \ClassWarningNoLine{apa7}{Professor not defined}\def\@professor{Professor Name}}{}
2086 \@ifundefined{@duedate}{%
2087 \ClassWarningNoLine{apa7}{Due date not defined}\def\@duedate{Due Date}}{}
2088 \@ifundefined{@shorttitle}{%
2089 \def\@shorttitle{}}{}%
2090 }
2091 \@ifundefined{def@multipleauthors}{}{%
2092 \ifnum\value{NumberOfSuperscripts}=0%
2093 % do nothing. If no superscripts are specified, print authors and affiliations without superscripts.
2094 \else \ifnum\value{NumberOfAuthors}=\value{NumberOfSuperscripts}%
2095 % do nothing
2096 \else
2097 \ClassError{apa7}{Number of Authors does not match number of Superscripts}{Please provide an equal number of authors and superscripts.}
2098 \fi
2099 \fi
2100 }%
2101 }
2102
2103 %==== Automatic figure size and orientation determination ====
2104
2105 \newsavebox\gr@box
2106 \newlength\gr@boxwidth
2107 \newlength\gr@boxheight
2108
2109 \newcommand{\fitfigure}[2][0.5]{%
2110 %\ifapamodeman
2111 %{% man
2112 %\sbox\gr@box{\includegraphics[width=\linewidth]{#2}}
2113 %\settowidth{\gr@boxwidth}{\usebox\gr@box}
2114 %\settoheight{\gr@boxheight}{\usebox\gr@box}
2115 %\ifdim\gr@boxheight>\gr@boxwidth{% display upright (h)
2116 % \ifdim\gr@boxheight>\textheight%
2117 % \centerline{\vspace{\fill}\includegraphics[height=\textheight]{#2}\vspace{\fill}}%
2118 % \else%
2119 % \usebox\gr@box%
2120 % \fi}
2121 %\else{% display rotated
2122 % \sbox\gr@box{\includegraphics[angle=90,width=\linewidth]{#2}}
2123 % \settoheight{\gr@boxheight}{\usebox\gr@box}
2124 % \ifdim\gr@boxheight>\textheight%
2125 % \centerline{\vspace{\fill}\includegraphics[angle=90,height=\textheight]{#2}\vspace{\fill}}%
2126 % \else%
2127 % \usebox\gr@box%
2128 % \fi}%
2129 %\fi
2130 %}{% jou, doc
2131 \sbox\gr@box{\includegraphics[width=\linewidth]{#2}}
2132 \settoheight{\gr@boxheight}{\usebox\gr@box}
2133 \ifdim\gr@boxheight>\textheight%
2134 \centerline{\includegraphics[height=#1\textheight]{#2}}% need to leave space for caption
2135 \else%
2136 \usebox\gr@box%
2137 \fi
2138 %}
2139 }
2140
2141 \newcommand{\fitbitmap}[2][0.5]{ % like fitfigure but no scaling in man mode for best quality
2142 %\ifapamodeman
2143 %{% man
2144 %\sbox\gr@box{\includegraphics{#2}}
2145 %\settowidth{\gr@boxwidth}{\usebox\gr@box}
2146 %\settoheight{\gr@boxheight}{\usebox\gr@box}
2147 %\ifdim\gr@boxwidth>\textwidth% display rotated
2148 % \centerline{\vspace{\fill}\includegraphics[angle=90]{#2}\vspace{\fill}}%
2149 % \ifdim\gr@boxheight>\textwidth\ClassWarning{apa7}{Figure #2 too high!}\fi% display rotated
2150 % \ifdim\gr@boxwidth>\textheight\ClassWarning{apa7}{Figure #2 too wide!}\fi% display rotated
2151 %\else% display upright
2152 % \centerline{\vspace{\fill}\includegraphics{#2}\vspace{\fill}}%
2153 % \ifdim\gr@boxheight>\textheight\ClassWarning{apa7}{Figure #2 too high!}\fi% display rotated
2154 %\fi}
2155 %{% jou, doc
2156 \sbox\gr@box{\includegraphics[width=\linewidth]{#2}}
2157 \settoheight{\gr@boxheight}{\usebox\gr@box}
2158 \ifdim\gr@boxheight>\textheight%
2159 \centerline{\includegraphics[height=#1\textheight]{#2}}% need to leave space for caption
2160 \else%
2161 \centerline{\usebox\gr@box}%
2162 \fi
2163 %}
2164 }
2165
2166 %==== Miscellaneous definitions
2167
2168 \let\normal@BBAB\BBAB % -- thp 2005/07/23
2169 \let\table@BBAB\BBAA % -- thp 2005/07/23
2170
2171 \setlength{\doublerulesep}{\arrayrulewidth}
2172 \newcommand\thickline{\hline\hline}
2173 \renewcommand\footnoterule{%
2174 \kern-3\p@
2175 % \hrule.5\@width.4\columnwidth
2176 \hrule height0.125pt width.5in
2177 \kern2.6\p@}
2178
2179 \let\apaSeventabular\tabular
2180 \let\apaSeven@doc@tabular\tabular
2181 %\let\old@tabular\tabular
2182 %\def\apaSeventabular#1{\def\@halignto{to\linewidth}%
2183 % \let\BBAB\table@BBAB% -- thp 2005/07/23
2184 % \@tabular{@{\extracolsep{\fill}}#1}}
2185 %\def\apaSeven@doc@tabular{%% thp 2006/01/02
2186 % \let\BBAB\table@BBAB%% Erik Meijer noticed that in doc mode tables weren't centered
2187 % \hfill\old@tabular} %% and that the in-table citation form was incorrect
2188 %%
2189 \let\apaSeven@doc@endtabular\endtabular
2190 %\let\orig@endtabular\endtabular % -- thp 2005/07/23
2191 %\def\endtabular{%
2192 % \let\BBAB\normal@BBAB% -- thp 2005/07/23
2193 % \orig@endtabular\ifapamodedoc{\hfill}{}}% 2006/01/02 \hfill for centering in doc mode
2194 %\def\apaSeven@doc@endtabular{%% thp 2006/01/03
2195 % \let\BBAB\normal@BBAB% %% separate redefinition of tabular/endtabular for doc mode
2196 % \orig@endtabular\hfill}%% to ensure centering, especially in case array.sty is loaded
2197
2198 % Define footnote mark commands for tables that won't mess up vertical alignment
2199 \def\@tab@fn#1{\ensuremath{^{\mbox{{\scriptsize #1}}}}}
2200 \def\tabfnm#1{\rlap{\@tab@fn{#1}}}
2201 %\def\tabfnt#1#2{\par\raggedright\@tab@fn{#1}#2}%BDB
2202 \def\tabfnt#1#2{\raggedright\@tab@fn{#1}#2}
2203
2204 % Provide a command to display vector symbols appropriately in each mode, thp 10/00
2205 % Use improved definition of apaSevenvector provided by Erik Meijer -- 2005/12/28
2206 \def\apaSevenvector#1{{\ensuremath
2207 \uprightlowercasegreek
2208 \ifapamodeman
2209 {\apaSevensmash{\mathop{\kern\z@\mathrm{#1}}\limits_{\scriptscriptstyle\sim}}}%
2210 {\if@bm@loaded\bm{\mathrm{#1}}\else\mathbf{#1}\fi% in case bm is not available
2211 }%
2212 }}
2213 % and here are the necessary definitions & packages, as instructed by Erik Meijer
2214 \newcommand{\apaSevensmash}{%
2215 \def\finsm@sh{\dp\z@\z@ \box\z@}%
2216 \expandafter\mathpalette\expandafter\mathsm@sh
2217 }%
2218 \newif\if@bm@loaded\@bm@loadedfalse
2219 \IfFileExists{bm.sty}{\RequirePackage{bm}\@bm@loadedtrue}{}% if not, apaSevenvector will fail
2220 \newcommand{\uprightlowercasegreek}{%
2221 \@ifundefined{alphaup}{}{%
2222 \def\alpha {\alphaup }%
2223 \def\beta {\betaup }%
2224 \def\gamma {\gammaup }%
2225 \def\delta {\deltaup }%
2226 \def\epsilon {\epsilonup }%
2227 \def\varepsilon{\varepsilonup}%
2228 \def\zeta {\zetaup }%
2229 \def\eta {\etaup }%
2230 \def\theta {\thetaup }%
2231 \def\vartheta {\varthetaup }%
2232 \def\iota {\iotaup }%
2233 \def\kappa {\kappaup }%
2234 \def\lambda {\lambdaup }%
2235 \def\mu {\muup }%
2236 \def\nu {\nuup }%
2237 \def\xi {\xiup }%
2238 \def\pi {\piup }%
2239 \def\varpi {\varpiup }%
2240 \def\rho {\rhoup }%
2241 \def\varrho {\varrhoup }%
2242 \def\sigma {\sigmaup }%
2243 \def\varsigma {\varsigmaup }%
2244 \def\tau {\tauup }%
2245 \def\upsilon {\upsilonup }%
2246 \def\phi {\phiup }%
2247 \def\varphi {\varphiup }%
2248 \def\chi {\chiup }%
2249 \def\psi {\psiup }%
2250 \def\omega {\omegaup }%
2251 }%
2252 }
2253 \let\apaSevenmatrix\apaSevenvector
2254
2255 %==== Appendix macros added by Michael Erickson 2000/07/11, revised by thp 2000/07/18
2256
2257 \newcounter{appendix}\setcounter{appendix}{0}
2258 \renewcommand{\theappendix}{\@Alph\c@appendix}
2259 \def\apaSevenappfig{%
2260 \renewcommand\thefigure{\theappendix\@arabic\c@figure}%
2261 \ifapamodeman{\renewcommand\thepostfig{\theappendix\arabic{postfig}}}{}}
2262 \def\apaSevenapptab{%
2263 \renewcommand\thetable{\theappendix\@arabic\c@table}%
2264 \ifapamodeman{\renewcommand\theposttbl{\theappendix\arabic{posttbl}}}{}}
2265 \def\apaSevenappeq{%
2266 \renewcommand\theequation{\theappendix\@arabic\c@equation}}
2267 \newif\ifoneappendix
2268 \oneappendixtrue % one appendix by default
2269 \newif\ifappendix
2270 \appendixfalse
2271
2272 \def\appendix{%
2273 %
2274 \ifapamodeman{\processdelayedfloats}{}% BDB -- output all tables and figures prior to the appendix
2275 %
2276 \appendixtrue
2277 \apaSevenappfig
2278 \apaSevenapptab
2279 \apaSevenappeq
2280 % \ifapamodejou{}{\clearpage} %% commented out -- thp 2005/07/23
2281 \let\old@apaSeven@section=\section % This will not work right with five levels in appendix.
2282 % Should go into \section, not \leveltwo but would also require
2283 % changes to section* and section[ (see \def\section above)
2284 % Who uses five level heading appendices anyway?
2285 % \newlength{\app@t@width}
2286 % \setlength{\app@t@width}{\columnwidth}
2287 % \addtolength{\app@t@width}{-8em}%% leveltwo is defined with leftskip=rightskip=4em plus 1fill
2288 \long\def\section##1{%
2289 \makeatletter%
2290 \def\@currentlabelname{##1}%
2291 \makeatother%
2292 \ifapamodeman{%
2293 \clearpage
2294 \setcounter{postfig}{0}
2295 \setcounter{posttbl}{0}
2296 % \efloat@condopen{fff}
2297 % \efloat@iwrite{fff}{\string\addtocounter{appendix}{1}}
2298 % \efloat@iwrite{fff}{\string\setcounter{figure}{0}}
2299 % \efloat@condopen{ttt}
2300 % \efloat@iwrite{ttt}{\string\addtocounter{appendix}{1}}
2301 % \efloat@iwrite{ttt}{\string\setcounter{table}{0}}%
2302 }{%
2303 % \setcounter{figure}{0}%
2304 % \setcounter{table}{0}%
2305 % \vskip2.5ex%
2306 % %\small% the appendix should be set in smaller type in jou, including headers!
2307 }%
2308 \setcounter{figure}{0}%
2309 \setcounter{table}{0}%
2310 \setcounter{equation}{0}%
2311 \vskip2.5ex%
2312 % \addtocounter{appendix}{1}%
2313 \refstepcounter{appendix}% 2002/07/20 this takes care of references too
2314 \ifnum\c@appendix>1\immediate\write\@auxout{\global\string\oneappendixfalse}\fi%
2315 % \old@apaSeven@section{%
2316 % \old@tabular[t]{@{}p{\app@t@width}@{}}% tabular may have been redefined
2317 % \centering{%
2318 % \appendixname\ifoneappendix\else~\theappendix\fi\\
2319 % ##1%
2320 % }\endtabular
2321 % }%
2322 %
2323 \centerline{\normalfont\normalsize\textbf\appendixname\ifoneappendix\else~\textbf\theappendix\fi}%
2324 \centerline{\normalfont\normalsize\bfseries##1}\par%
2325 \setlength{\parindent}{0.5in}
2326 \makeatletter%
2327 \@afterindentfalse%
2328 \@afterheading%
2329 \makeatother%
2330 %
2331 }%
2332 %
2333 } % end of appendix definition
2334
2335 %==== End of general apa.cls macro definitions ====
2336
2337
2338 %%%%%%%%%%%%%%%%%%%%%%%%%
2339 %% %%
2340 %% MANUSCRIPT FORMAT %%
2341 %% AND STUDENT %%
2342 %% %%
2343 %%%%%%%%%%%%%%%%%%%%%%%%%
2344
2345 \@ifundefined{def@man}{}{%
2346
2347 % \def\@@spacing{1.75}
2348 \def\@@spacing{1.655}
2349
2350 \newcommand{\@doublespacing}{\linespread{1.655}}
2351 \@doublespacing
2352
2353 % allow a little more space between captions and floats in man mode
2354 \captionsetup[table]{skip=10pt}
2355 \captionsetup[figure]{skip=10pt}
2356
2357 \def\rightheader#1{\def\r@headr{\protect\MakeUppercase{#1}}}
2358 \def\leftheader#1{\def\r@headl{#1}}
2359 %\def\shorttitle#1{\def\s@title{#1}}%\markright{\hfill #1 \thepage} %% no rm - thp 020227
2360
2361 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\newcommand{\shorttitle}[1]{\def\@shorttitle{#1}}
2362
2363 \raggedright
2364
2365 \RequirePackage{fancyhdr}
2366 \setlength{\headheight}{15.2pt}
2367 \fancyhf{}
2368 \renewcommand{\headrulewidth}{0pt}
2369
2370 \fancypagestyle{titlepage}{%
2371 \lhead{\MakeUppercase{\@shorttitle}}%
2372 \rhead{\thepage}%
2373 }
2374 \fancypagestyle{otherpage}{%
2375 \lhead{\MakeUppercase{\@shorttitle}}%
2376 \rhead{\thepage}%
2377 }
2378 \pagestyle{otherpage}
2379
2380 %========== Alterations to endnotes ===================
2381
2382 %\RequirePackage{endnotes}
2383 %
2384 %% added by BDB to make section heading non-bolface
2385 %\def\enoteheading{\section*{\normalfont\normalsize\notesname
2386 % \@mkboth{\MakeUppercase{\notesname}}{\MakeUppercase{\notesname}}}%
2387 % \mbox{}\par\vskip-\baselineskip}
2388 %
2389 %
2390 %\def\@makeenmark{\hbox{$^{\mbox{\small\@ifundefined{hrm}{}{\sf}\@theenmark}}$}}
2391 %\def\enoteformat{\rightskip\z@ \leftskip\z@
2392 % \raggedright\fussy\hyphenpenalty 10000 \parindent=0.4in
2393 % \leavevmode\llap{\hbox{$^{\mbox{\small\@ifundefined{hrm}{}{\sf}\@theenmark}}$}}}
2394 %\AtEndDocument{%
2395 % \ifappendix% set section back to no numbering after appendix
2396 % \appendixfalse\let\section=\old@apaSeven@section%
2397 % \fi
2398 %% \@ifundefined{@acks}{}{\newpage\section{\acksname}\@acks}
2399 % \@ifundefined{hrm}{\def\enotesize{\normalsize}}
2400 % {\def\enotesize{\normalsize\@ifundefined{hrm}{}{\sf}}}
2401 % \@ifundefined{NoEndnotes}{\if@enotesopen\newpage\theendnotes\fi}{}
2402 % \let\footnote=\oldfootnote
2403 %}
2404
2405 %========= Alterations to endfloat ====================
2406
2407 % prepare to bypass endfloat for any tables or figures in appendices
2408 \let\@noendfloattab\table% BDB
2409 \let\@noendfloatfig\figure% BDB
2410
2411 % \@ifundefined{float@mark}{% Figure and table in-text markers are no longer required
2412 % \RequirePackage[notablist,figlist,notabhead,nofighead,tablesfirst,nomarkers]{endfloat}[1995/10/11]}{%
2413 % \RequirePackage[notablist,figlist,notabhead,nofighead,tablesfirst]{endfloat}[1995/10/11]}
2414
2415 \RequirePackage[notablist,figlist,notabhead,nofighead,tablesfirst,nomarkers]{endfloat}[1995/10/11]
2416
2417 %\renewcommand{\figureplace}{%
2418 % \par\begin{center}
2419 % \parbox{\textwidth}
2420 % {\begin{center}
2421 % \rule{2.1in}{0.005in}\\
2422 % Insert \figurename~\thepostfig\ about here\\
2423 % \rule{2.1in}{0.005in}\\
2424 % \end{center}}
2425 % \end{center}\par}
2426 %\renewcommand{\tableplace}{%
2427 % \par\begin{center}
2428 % \parbox{\textwidth}
2429 % {\begin{center}
2430 % \rule{2.1in}{0.005in}\\
2431 % Insert \tablename~\theposttbl\ about here\\
2432 % \rule{2.1in}{0.005in}\\
2433 % \end{center}}
2434 % \end{center}\par}
2435
2436 \def\@gobbleuntilnext[#1]{}
2437 \let\eatarg\@gobbleuntilnext
2438 \let\ifnextchar\@ifnextchar
2439
2440 \@ifundefined{def@floatsintext}{% Guillaume Jourjon 19/10/10
2441 \def\figure{%
2442 \ifappendix
2443 \vspace*{\intextsep}
2444 \def\fps@figure{!hbt}%
2445 \@noendfloatfig
2446 \else
2447 \efloat@condopen{fff}
2448 \@nameuse{efloat@separator@fff}%
2449 \efloat@iwrite{fff}{\string\begin{figure*}[hbt]}%
2450 \global\def\@figure@written{\relax}% Set a flag that there is at least one figure -- thp 20010705
2451 %% should be a global declaration to be "visible" at end document
2452 \ifnextchar[{\gobbleuntilnext[}{}
2453 \efloat@iwrite{fff}{\string\ifnextchar[{\string\eatarg}{}}
2454 % \if@domarkers%
2455 % \addtocounter{postfig}{1}% % bj
2456 % \figureplace% % bj
2457 % \fi%
2458 \def\@currenvir{efloat@float}%
2459 \begingroup%
2460 \let\do\ef@makeinnocent \dospecials%
2461 \ef@makeinnocent\^^L% and whatever other special cases
2462 \endlinechar`\^^M \catcode`\^^M=12 \ef@xfigure%
2463 \fi%
2464 }%
2465
2466 \def\table{%
2467 \ifappendix
2468 \vspace*{\intextsep}
2469 \def\fps@table{!hbt}
2470 \@noendfloattab
2471 \else
2472 \efloat@condopen{ttt}
2473 \@nameuse{efloat@separator@ttt}%
2474 \efloat@iwrite{ttt}{\string\begin{table*}[hbt]}%
2475 \ifnextchar[{\gobbleuntilnext[}{}
2476 \@ifundefined{hrm}{}{%
2477 \efloat@iwrite{ttt}{\string\sf}}%
2478 \efloat@iwrite{ttt}{\string\ifnextchar[{\string\eatarg}{}} % bj
2479 % \if@domarkers
2480 % \addtocounter{posttbl}{1} % bj
2481 % \tableplace % bj
2482 % \fi
2483 \def\@currenvir{efloat@float}%
2484 \begingroup
2485 \let\do\ef@makeinnocent \dospecials
2486 \ef@makeinnocent\^^L% and whatever other special cases
2487 \endlinechar`\^^M \catcode`\^^M=12 \ef@xtable%
2488 \fi
2489 }%
2490
2491 % for rotated tables, per Ulrike Fischer: http://tex.stackexchange.com/a/79843
2492 \RequirePackage{etoolbox}
2493 \AtEndPreamble{%
2494 \@ifpackageloaded{rotating}{%
2495 \DeclareDelayedFloatFlavor{sidewaystable}{table}
2496 \DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
2497 }{}%
2498 }%
2499
2500 }{%
2501 \RequirePackage{float}
2502 \floatplacement{figure}{htb}
2503 \def\figure{\@float{figure}}
2504 \def\endfigure{\end@float}
2505
2506 \floatplacement{table}{htb}
2507 \def\table{\@float{table}}
2508 \def\endtable{\end@float}
2509 }
2510
2511 %%%%%%%%%%%%%%\long\def\@@contentsline#1#2#3{ #2 }
2512 %%%%%%%%%%%%%%\long\def\numberline#1#2{\noindent{\em\figurename\ #1.\/} #2\vspace{0.5\baselineskip}\par}
2513 %%%%%%%%%%%%%%\long\def\@@caption{\refstepcounter\@captype \@dblarg{\@@@caption\@captype}}
2514 %%%%%%%%%%%%%%\long\def\@@@caption#1[#2]#3{\addcontentsline{\csname
2515 %%%%%%%%%%%%%% ext@#1\endcsname}{#1}{\protect\numberline{\csname
2516 %%%%%%%%%%%%%% the#1\endcsname}{\ignorespaces #2}}}
2517 %\def\listoffigures{\section*{\figurecaptionsname}\@starttoc{lof}}% changed from 'Figure Captions'
2518
2519 %\long\def\figurecaptionsformat{
2520 % \let\contentsline=\@@contentsline
2521 % \let\numberline=\@@numberline
2522 % \def\baselinestretch{\@@spacing}
2523 %}
2524
2525 \def\processfigures{%
2526 \expandafter\ifnum \csname @ef@fffopen\endcsname>0
2527 \immediate\closeout\efloat@postfff \ef@setct{fff}{0}
2528 \clearpage
2529 \if@figlist
2530 \@ifundefined{@figure@written}{}{%
2531 % \figurecaptionsformat
2532 {\normalsize\@ifundefined{hrm}{}{\sf}%
2533 % \let\BBAB\table@BBAB% -- thp 2005/07/23
2534 % \listoffigures%
2535 % \let\BBAB\normal@BBAB% -- thp 2005/07/23
2536 }
2537 % \clearpage
2538 }
2539 \fi
2540 % \if@fighead
2541 % \section*{\figuresection}
2542 % \suppressfloats[t]
2543 % \fi
2544 \@ifundefined{fig@num}{%
2545 % \markboth{}{}
2546 \pagestyle{otherpage}
2547 % \pagestyle{empty}%
2548 }{%
2549 \setcounter{page}{1}
2550 % \markright{\rm\hfill \s@title, Figure}
2551 \def\@oddhead{\rightmark} % changed by Michael Erickson
2552 \markright{\hfill \s@title, \figurename\ \protect\thefigure} % to include appendix numbering
2553 % remove rm - thp 020227
2554 }
2555 % \let\caption=\@@caption
2556 \def\baselinestretch{\@@spacing}\normalsize\@ifundefined{hrm}{}{\sf}
2557 \processfigures@hook \@input{\jobname.fff}
2558 \fi}
2559
2560 \def\processtables{%
2561 \expandafter\ifnum \csname @ef@tttopen\endcsname>0
2562 \immediate\closeout\efloat@postttt \ef@setct{ttt}{0}
2563 \clearpage
2564 \if@tabhead
2565 \section*{\tablesection}
2566 \suppressfloats[t]
2567 \fi
2568 \def\baselinestretch{\@@spacing}
2569 \processtables@hook \@ifundefined{hrm}{}{\sf}%
2570 \tiny\normalsize%
2571 % We need to deal with citation alterations here because otherwise we either
2572 % lose the definition through the .ttt diversion or we miss the table*
2573 \let\BBAB\table@BBAB% -- thp 2005/07/23
2574 \@input{\jobname.ttt}%
2575 \let\BBAB\normal@BBAB% -- thp 2005/07/23
2576 \fi}
2577
2578 %========== Alterations to captions (BDB) ===================
2579
2580 \captionsetup{justification=raggedright}
2581
2582
2583 %========= Maketitle, margins, lengths, etc. ==========
2584
2585 \def\maketitle{
2586 \@ifundefined{hrm}{}{\hrm}
2587 \check@author
2588 % \@ifundefined{s@title}{\ClassInfo{apa7}{Using title for short title}
2589 % \def\s@title{\@title}
2590 % \markright{\hfill\@title}}%\protect\thepage}} %% removed rm
2591 % {\markright{\hfill\s@title}}%\protect\thepage}} %% thp 020227
2592 % \@ifundefined{r@headr}{\ClassInfo{apa7}{Using short title for running head}
2593 % \def\r@headr{\protect\MakeUppercase{\s@title}}}{}
2594
2595
2596 \begin{center}
2597
2598 % \makebox[\linewidth][l]{\rheadname\hspace{0.1in}\MakeUppercase{\r@headr}}\\ %thp090298
2599
2600 \vspace*{4\baselineskip}
2601 \textbf\@title%
2602 \ifapamodeman{%
2603 \vspace{\baselineskip}\\
2604 }{%
2605 \vspace{\baselineskip}\\
2606 }
2607 \@ifundefined{def@stu}{ %Professional manuscript
2608 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
2609
2610 \displayauthors \\
2611 \displayaffiliations
2612
2613 \@ifundefined{@note}
2614 {\vspace*{\baselineskip} }
2615 {\@note}
2616
2617 }{% mask author identity -- show nothing in the author or author note space
2618 }
2619
2620 \end{center}
2621
2622 \@ifundefined{apaSeven@maskauthoridentity}{
2623 \@ifundefined{@acks}
2624 {}
2625 {%
2626 \vfill%
2627 \section*{\normalfont\normalsize\textbf\acksname}
2628 \raggedright
2629 \setlength{\parindent}{0.5in}
2630 \indent\@acks\par%
2631 }
2632 }{% mask author identity -- show nothing in the author or author note space
2633 }}{% Student Manuscript
2634 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
2635 \displayauthors \\
2636
2637 \displayaffiliations
2638 }{% mask author identity -- show nothing in the author or affiliations space
2639 }
2640 \@course \\
2641 \@professor \\
2642 \@duedate \\
2643
2644 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
2645 \@ifundefined{@note}
2646 {\vspace*{\baselineskip} }
2647 {\@note}
2648 }{% mask author identity -- show nothing in the note space
2649 }
2650
2651 \end{center}
2652
2653 \@ifundefined{@acks}
2654 {}
2655 {%
2656 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
2657 \vfill%
2658 \section*{\normalfont\normalsize\textbf\acksname}
2659 \raggedright
2660 \setlength{\parindent}{0.5in}
2661 \indent\@acks\par%
2662 }{% mask author identity -- show nothing in the author note space
2663 }
2664 }
2665
2666 }
2667 \newpage
2668 %BDB\hyphenpenalty 10000
2669 \fussy
2670 \@ifundefined{@abstract}{}{%
2671 \section*{\normalfont\normalsize\textbf\abstractname}% BDB
2672 \noindent\@abstract\par% BDB
2673 \@ifundefined{@keywords}{}{%
2674 \setlength{\parindent}{0.5in}% BDB
2675 \indent\textit{\keywordname:} \@keywords%
2676 }%
2677 \newpage
2678 }
2679
2680 \@ifundefined{def@donotrepeattitle}{
2681 \section*{\protect\normalfont\textbf{\@title}}
2682 }{}%
2683 \raggedright%
2684 \setlength{\parindent}{0.5in}%
2685 % \indent%
2686 }
2687
2688 \thispagestyle{titlepage}
2689
2690 %\ThreeLevelHeading
2691 % \def\baselinestretch{\@@spacing}
2692
2693 % footnote issues: separate multiple footnotes on the same page:
2694 \setlength{\footnotesep}{16pt}
2695
2696 % make footnotes ragged-right (credit to Mako Hill):
2697 \renewcommand\@makefntext[1]{\raggedright\textsuperscript{\@thefnmark}~#1}
2698
2699 %\setlength{\topmargin}{0in}
2700 %\setlength{\oddsidemargin}{0.25in}
2701 %\setlength{\evensidemargin}{0.25in}
2702 %\setlength{\textwidth}{6in}
2703 %\setlength{\textheight}{8.5in}
2704 %\setcounter{secnumdepth}{0}
2705 %
2706 %\def\ps@myheadings{
2707 % \let\@mkboth\@gobbletwo
2708 % \def\@oddhead{\hbox{}\rightmark\hfil\hspace{0.1in}\thepage} %% removed rm - thp 020227
2709 % \def\@oddfoot{}
2710 % \def\@evenhead{}
2711 % \def\@evenfoot{}
2712 % \def\sectionmark##1{}
2713 % \def\subsectionmark##1{}}
2714
2715 %\pagestyle{myheadings}
2716 %\raggedright
2717 %BDB\hyphenpenalty 10000
2718 \newcommand{\footmark}[1]{${}^{\mbox{\normalsize #1}}$}
2719
2720 %\long\def\@makecaption#1#2{%
2721 % \let\BBAB\table@BBAB % thp 2005/07/23
2722 % \vskip10pt%
2723 % \setbox\@tempboxa\hbox{\parbox{\columnwidth}{#1\cap@line{\cap@style #2}}}%
2724 % \ifdim\wd\@tempboxa>\hsize\parbox{\columnwidth}{#1\cap@line{\cap@style #2}}\par%
2725 % \else\hbox to\hsize{\box\@tempboxa\hfil}\par%
2726 % \fi%
2727 % \let\BBAB\normal@BBAB % thp 2005/07/23
2728 % \vskip\baselineskip}
2729 %
2730 %\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
2731 % ext@#1\endcsname}{#1}{\protect\numberline{\csname
2732 % the#1\endcsname}{\ignorespaces #2}}\begingroup
2733 % \@parboxrestore
2734 % \normalsize\@ifundefined{hrm}{}{\hrm}
2735 % \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3 } \par
2736 % \endgroup}
2737 %
2738 %\def\caption{\refstepcounter\@captype \@dblarg{\@caption\@captype}}
2739 %
2740 %\def\centeredcaption#1{\caption}
2741 %
2742 %\def\fnum@figure{\def\cap@style{}\def\cap@line{}{\em\figurename\ {\thefigure}}. }
2743 %% added second set of braces around \em to get citations in man mode -- tp 17/7/2000
2744 %% then removed them again because they were cancelling application of em to the caption
2745 %\long\def\fnum@table{\def\cap@style{\em}\def\cap@line{\\ }\tablename\ \thetable }
2746
2747 \setcounter{topnumber}{1}
2748 \def\topfraction{.7}
2749 \setcounter{bottomnumber}{1}
2750 \def\bottomfraction{.6}
2751 \setcounter{totalnumber}{1}
2752 \def\textfraction{0}
2753 \def\floatpagefraction{.7}
2754 \setcounter{dbltopnumber}{1}
2755 \def\dbltopfraction{.7}
2756 \def\dblfloatpagefraction{.7}
2757 \def\dbltextfloatsep{\textfloatsep}
2758
2759 \fussy
2760 %\setlength{\parindent}{0.4in}
2761 %\let\oldfootnote=\footnote % 3/10/00
2762 %\let\footnote=\endnote
2763 %\def\footnotesize{\normalsize\rm}
2764
2765 \@ifundefined{def@nosf}{%
2766 \def\helvetica{%
2767 \ClassWarning{apa7}{ignored \string\helvetica\space (use helv option)}
2768 }}{\def\helvetica{\relax}}
2769
2770 %==== Appendix definitions added by Michael Erickson 2000/07/11
2771
2772 %\efloat@condopen{fff}
2773 %\efloat@iwrite{fff}{\string\apaSevenappfig}
2774 %\efloat@iwrite{fff}{\string\setcounter{appendix}{0}}
2775 %\efloat@condopen{ttt}
2776 %\efloat@iwrite{ttt}{\string\apaSevenapptab}
2777 %\efloat@iwrite{ttt}{\string\setcounter{appendix}{0}}
2778
2779 }% end of man mode (manuscript format)
2780
2781
2782 %%%%%%%%%%%%%%%%%%%%
2783 %% %%
2784 %% JOURNAL FORMAT %%
2785 %% %%
2786 %%%%%%%%%%%%%%%%%%%%
2787
2788 \@ifundefined{def@jou}{}{%
2789
2790 \RequirePackage{fancyhdr}
2791
2792 \renewcommand{\addORCIDlink}[2]{\href{https://orcid.org/#2}{{\mbox{\scalerel*{
2793 \begin{tikzpicture}[yscale=-1,transform shape]
2794 \pic{orcidlogo};
2795 \end{tikzpicture}
2796 }{|}}} #1}}
2797
2798 %========== balance last-page columns =================
2799
2800 \IfFileExists{flushend.sty}{\RequirePackage{flushend}}{}
2801
2802 %========== ftnright and alterations ==================
2803
2804 \IfFileExists{ftnright.sty}{
2805 \let\savefootnoterule\footnoterule
2806 \let\save@makefntext\@makefntext
2807 \RequirePackage{ftnright}
2808 \let\footnoterule\savefootnoterule
2809 \let\@makefntext\save@makefntext
2810 }{}
2811
2812 %======================================================
2813
2814 \def\rightheader#1{\def\r@headr{\protect\MakeUppercase{\protect\scriptsize #1}}}
2815 \def\leftheader#1{\def\r@headl{\protect\MakeUppercase{\protect\scriptsize #1}}}
2816 \def\r@headr{\protect\MakeUppercase{\protect\scriptsize\@shorttitle}}% BDB
2817 %%%%%%%%%%%%%%%%%%%%%%%\def\shorttitle#1{\def\r@headr{\protect\MakeUppercase{\protect\scriptsize #1}}}% BDB
2818
2819 \def\maketitle{
2820 \check@author
2821 \@ifundefined{r@headr}{\def\r@headr{\protect\MakeUppercase{\protect\scriptsize\@title}}}{}
2822 \@ifundefined{r@headl}{\def\r@headl{ADD \\LEFTHEADER COMMAND}}{}
2823
2824 \twocolumn[ % anything appearing within the brackets is set in one-column mode
2825 \vspace{0.03in}
2826 \begin{center}
2827 % title
2828 {\LARGE \@title}\\
2829 \vspace{-0.05in}
2830
2831 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
2832
2833 \parbox[t]{\textwidth}{\begin{center}{\large \displayauthors\vspace{0in}}%
2834
2835 {\displayaffiliations\vspace{0.05in}}\end{center}}
2836
2837 \@ifundefined{@note}
2838 {\vspace{0.07in}}
2839 {\vspace{0.07in}\\ {\large\@note\vspace{0.07in}}}
2840
2841 }{% mask author identity -- show nothing in the author or author space
2842 \vspace{0.32in}
2843 }
2844
2845
2846 \@ifundefined{@abstract}
2847 {\par }
2848 {\par \parbox{4.6875in}
2849 {\small \noindent \@abstract
2850 \@ifundefined{@keywords}{}{%
2851 \par\vspace{0.12in}\raggedright\textit{\keywordname:} \@keywords%
2852 }%
2853 }
2854 \vspace{0.24in}%
2855 }
2856 \end{center}
2857 ] % end of \twocolumn[]
2858
2859 \renewcommand{\headrulewidth}{0pt}%
2860
2861 \pagenumbering{arabic}
2862 \@ifundefined{@journal}{\thispagestyle{empty}}{%
2863 \@ifundefined{@vvolume}{\def\@vvolume{\strut}}{}%
2864 \@ifundefined{@copnum}{\def\@copnum{\strut}}{}%
2865 \@ifundefined{@ccoppy}{\def\@ccoppy{\strut}}{}%
2866 \fancypagestyle{pageone}{%
2867 \fancyhf{}%
2868 \fancyhead[L]{\stiny{\@journal}\vspace{-0.15\baselineskip}\\
2869 \stiny{\@vvolume}}%
2870 \fancyhead[R]{\stiny{\@ccoppy}\vspace{-0.15\baselineskip}\\
2871 \stiny{\@copnum}}%
2872 }
2873 \thispagestyle{pageone}
2874 }
2875
2876 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
2877 \@ifundefined{@acks}
2878 {}
2879 {\begin{figure}[b]
2880 \parbox{\columnwidth}{\setlength{\parindent}{0.18in}
2881 \noindent\makebox[\columnwidth]{\vrule height0.125pt width\columnwidth}\vspace*{0.05in}\par
2882 {\footnotesize\hspace{-0.04in}\@acks\par}}
2883 \end{figure}}
2884 }{% mask author identity -- show nothing in the author note space
2885 }
2886
2887 \@ifundefined{no@tab}{\let\tabular\apaSeventabular}{}
2888 %\noindent
2889 }
2890
2891 \newcommand\stiny{\@setfontsize\stiny\@vipt\@viipt}
2892
2893 %\ThreeLevelHeading
2894 %\def\baselinestretch{0.923}
2895 %\def\refname{References}
2896 \setlength{\footnotesep}{0.2813in}
2897 \setlength{\topmargin}{-0.275in}
2898 \addtolength{\headheight}{0.02in}
2899 \addtolength{\headsep}{-0.156in}
2900 \setlength{\oddsidemargin}{-0.25in}
2901 \setlength{\evensidemargin}{-0.25in}
2902 \setlength{\textwidth}{6.94in}
2903 \setlength{\textheight}{8.9in}
2904 \setlength{\columnwidth}{8.5cm}
2905 \setlength{\columnsep}{0.25in}
2906 \setlength{\parindent}{0.15625in}
2907 %%\setlength{\parskip}{0in}
2908 \setlength{\textfloatsep}{0.35in}
2909 %\flushbottom
2910
2911 \setcounter{secnumdepth}{0}
2912
2913 \fancypagestyle{journalbase}{%
2914 \fancyhf{}%
2915 \fancyhead[LE]{\thepage}%
2916 \fancyhead[RO]{\thepage}%
2917 \fancyhead[CO]{\r@headr}%
2918 \def\sectionmark##1{}
2919 \def\subsectionmark##1{}
2920 }
2921
2922 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
2923 \fancypagestyle{journal}[journalbase]{%
2924 \fancyhead[CE]{\r@headl}%
2925 }
2926 }{% mask author identity -- show the short title for both the left and right headers
2927 \fancypagestyle{journal}[journalbase]{%
2928 \fancyhead[CE]{\r@headr}%
2929 }
2930 }
2931 \pagestyle{journal}
2932
2933 %\long\def\@makecaption#1#2{%
2934 % \let\BBAB\table@BBAB % thp 2005/07/23
2935 % \vskip\abovecaptionskip
2936 % \sbox\@tempboxa{#1 #2}%
2937 % \ifdim \wd\@tempboxa >\hsize
2938 % #1 #2\par
2939 % \else
2940 % \global \@minipagefalse
2941 % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
2942 % \fi
2943 % \let\BBAB\normal@BBAB % thp 2005/07/23
2944 % \vskip\belowcaptionskip}
2945 %
2946 %\long\def\@makeccaption#1#2#3{
2947 % \let\BBAB\table@BBAB % thp 2005/07/23
2948 % \vskip\abovecaptionskip
2949 % \setbox\@tempboxa\hbox{#1 #2}
2950 % \ifdim \wd\@tempboxa > \hsize
2951 % \hbox to\hsize{\hfil\parbox[t]{#3}{#1 #2}\hfil}
2952 % \else
2953 % \ifdim \wd\@tempboxa > #3
2954 % \hbox to\hsize{\hfil\parbox[t]{#3}{#1 #2}\hfil}
2955 % \else
2956 % \hbox to\hsize{\hfil\mbox{#1 #2}\hfil}
2957 % \fi
2958 % \fi
2959 % \let\BBAB\normal@BBAB % thp 2005/07/23
2960 % \vskip\belowcaptionskip}
2961 %
2962 %\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
2963 % ext@#1\endcsname}{#1}{\protect\numberline{\csname
2964 % the#1\endcsname}{\ignorespaces #2}}\begingroup
2965 % \@parboxrestore
2966 % \normalsize
2967 % \csname setcskip@#1\endcsname
2968 % \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
2969 % \endgroup}
2970 %
2971 %\long\def\@ccaption#1[#2]#3#4{\def\@ccwidth{#3} \par\addcontentsline{\csname
2972 % ext@#1\endcsname}{#1}{\protect\numberline{\csname
2973 % the#1\endcsname}{\ignorespaces #2}}\begingroup
2974 % \@parboxrestore
2975 % \normalsize
2976 % \@makeccaption{\csname fnum@#1\endcsname}{\ignorespaces #4}{\@ccwidth}\par
2977 % \endgroup}
2978 %
2979 %\def\caption{\refstepcounter\@captype \@dblarg{\@caption\@captype}}
2980 %
2981 %\long\def\centeredcaption{\refstepcounter\@captype \@dblarg{\@ccaption\@captype}}
2982 %
2983 %\def\setcskip@table{\setlength{\abovecaptionskip}{3.2pt}\setlength{\belowcaptionskip}{2pt}}
2984 %\def\setcskip@figure{\setlength{\abovecaptionskip}{-0.04in}\setlength{\belowcaptionskip}{-1.9pt}}
2985 %
2986 %\def\fnum@figure{\small{\em\figurename\ {\thefigure}}.\hspace{0.07in}}
2987 %\long\def\fnum@table{\makebox[\linewidth][l]{\tablename\ \thetable} \\ \em }
2988 %
2989 %\def\@makefnmark{\hbox{\@textsuperscript{\normalfont{\scriptsize\@thefnmark}}}}%
2990 %\long\def\@makefntext#1{\parindent 1em\noindent
2991 % \hb@[email protected]{%
2992 % \hss\@textsuperscript{\normalfont{\tiny\@thefnmark}\hspace{1.5pt}}}#1}%
2993
2994
2995 \setcounter{topnumber}{2}
2996 \def\topfraction{.85}
2997 \setcounter{bottomnumber}{2}
2998 \def\bottomfraction{.75}
2999 \setcounter{totalnumber}{3}
3000 \def\textfraction{.10}
3001 \def\floatpagefraction{.85}
3002 \setcounter{dbltopnumber}{2}
3003 \def\dbltopfraction{.85}
3004 \def\dblfloatpagefraction{.85}
3005 \def\dbltextfloatsep{0.8\textfloatsep}
3006 \let\footnotesize=\small
3007
3008 \def\helvetica{\relax}
3009
3010 \doublehyphendemerits5000
3011 \hfuzz0pt
3012 \tolerance=9999
3013 \pretolerance=-1
3014 \emergencystretch=25pt
3015 \hbadness=30000
3016 \hyphenpenalty=100
3017
3018
3019 \@ifundefined{def@apacite}{}{% -- Philip Kime 2008/12/03
3020 % Removed some bibliography redefinitions as per the instructions of Erik Meijer
3021 \bibleftmargin=1.2em % left these in because the default is too big
3022 \bibindent=-\bibleftmargin % and this is apparently not refefined each time
3023 \renewcommand{\bibliographytypesize}{\footnotesize}}
3024 \@ifundefined{def@natbib}{}{% -- Philip Kime 2008/12/03
3025 % Removed some bibliography redefinitions as per the instructions of Erik Meijer
3026 \bibleftmargin=1.2em % left these in because the default is too big
3027 \bibindent=-\bibleftmargin % and this is apparently not refefined each time
3028 \renewcommand{\bibliographytypesize}{\footnotesize}}
3029
3030
3031
3032 %\@ifundefined{def@noapacite}{% -- Philip Kime 2008/12/03
3033 % % Removed some bibliography redefinitions as per the instructions of Erik Meijer
3034 % \bibleftmargin=1.2em % left these in because the default is too big
3035 % \bibindent=-\bibleftmargin % and this is apparently not refefined each time
3036 % \renewcommand{\bibliographytypesize}{\footnotesize}}{}
3037
3038 }% end of jou mode (journal format)
3039
3040 %%%%%%%%%%%%%%%%%%%%
3041 %% %%
3042 %% REGULAR FORMAT %%
3043 %% %%
3044 %%%%%%%%%%%%%%%%%%%%
3045
3046 \@ifundefined{def@doc}{}{%
3047
3048 %\pagestyle{myheadings}
3049
3050 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\renewcommand{\shorttitle}[1]{\def\@shorttitle{#1}}
3051
3052 \def\leftheader#1{\def\r@headl{#1}}
3053
3054 \RequirePackage{fancyhdr}
3055 \setlength{\headheight}{15.2pt}
3056 \fancyhf{}
3057 \renewcommand{\headrulewidth}{0pt}
3058
3059 \fancypagestyle{otherpage}{%
3060 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3061 \lhead{\MakeUppercase{\@shorttitle}}%
3062 \rhead{\thepage}%
3063 }
3064 \pagestyle{otherpage}
3065
3066 \def\maketitle{
3067 \global\@topnum\z@ % to prevent tables before the title %% Erik Meijer, 2006/01/03
3068 \@ifundefined{@acks}{% if there acknowledgements they make up a "float" on the 1st page
3069 \global\@botnum\z@}{% to prevent tables on the first page %% Erik Meijer, 2006/01/03
3070 \global\@botnum\@ne}% to prevent tables below the footnote -- thp 2006/01/10
3071 \check@author
3072 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3073 \@ifundefined{r@headr}{\typeout{Using title for running head}
3074 \def\r@headr{\protect\MakeUppercase{\@title}}
3075 \markright{\rm \@title \protect\\ \thepage}}{}
3076 \@ifundefined{r@headl}{\let\r@headl\r@headr}{}
3077 \@ifundefined{s@title}{\let\s@title\r@headr}{}
3078 \sloppy
3079 \setlength{\parindent}{0.5in}
3080 \begin{center}
3081 \@ifundefined{@journal}{}{%
3082 \@ifundefined{@vvolume}{\def\@vvolume{}}{}%
3083 \@ifundefined{@copnum}{\def\@copnum{}}{}%
3084 \@ifundefined{@ccoppy}{\def\@ccoppy{}}{}%
3085 {\scriptsize{\@journal}}\hspace{\fill}{\scriptsize{\@ccoppy}}\vspace{-0.3\baselineskip}\\
3086 {\scriptsize{\@vvolume}}\hspace{\fill}{\scriptsize{\@copnum}}\vspace{0.1in}\\
3087 }
3088 \vspace*{0.3in}
3089
3090 {\LARGE \@title}\\
3091
3092 \vspace{0.3in}
3093 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
3094
3095 {\Large \displayauthors} \\
3096
3097 \displayaffiliations \vspace{0.1in}
3098
3099 }{% mask author identity -- show nothing in the author note space
3100 }
3101
3102 \@ifundefined{@abstract}{}{%
3103 {\abstractname}\vspace{0.1in}% BDB
3104
3105 \parbox{5in}{\@abstract%
3106 \@ifundefined{@keywords}{}{%
3107 \par\vspace{0.12in}\textit{\keywordname:} \@keywords%
3108 }%
3109 }\vspace{0.25in}%
3110 }
3111 \end{center}
3112 \pagenumbering{arabic}
3113 \thispagestyle{empty}
3114
3115 \@ifundefined{apaSeven@maskauthoridentity}{% BDB
3116
3117 \@ifundefined{@acks}
3118 {}
3119 {\begin{figure}[b]
3120 \parbox{\textwidth}{ \setlength{\parindent}{0.2in}
3121 \noindent \makebox[\linewidth]{\vrule height0.125pt width\linewidth}
3122
3123 \vspace*{0.05in}
3124 {\footnotesize
3125 \indent \@acks
3126
3127 }}
3128 \end{figure}}
3129
3130 }{% mask author identity -- show nothing in the author note space
3131 }
3132
3133 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3134 \markboth{\hfill \r@headl \hfill}{\hfill \r@headr \hfill}
3135 \let\tabular\apaSeven@doc@tabular% -- thp 2006/01/02
3136 \let\endtabular\apaSeven@doc@endtabular% -- thp 2006/01/03
3137 % \noindent
3138 }
3139
3140 %\ThreeLevelHeading
3141 %\def\refname{References}
3142 \setlength{\topmargin}{-0.25in}
3143 \setlength{\oddsidemargin}{0.25in}
3144 \setlength{\evensidemargin}{0.25in}
3145 \setlength{\textwidth}{6in}
3146 \setlength{\textheight}{8.5in}
3147 \setcounter{secnumdepth}{0}
3148 \flushbottom
3149
3150 % fix headwidth for even-numbered pages
3151 % suggestion from http://tex.stackexchange.com/questions/42798/apa7-package-heading-line-exceeds-textwidth
3152 \setlength{\headwidth}{\textwidth}
3153
3154 \setcounter{topnumber}{2}
3155 \def\topfraction{.7}
3156 \setcounter{bottomnumber}{2}
3157 \def\bottomfraction{.6}
3158 \setcounter{totalnumber}{3}
3159 \def\textfraction{.2}
3160 \def\floatpagefraction{.7}
3161 \setcounter{dbltopnumber}{2}
3162 \def\dbltopfraction{.8}
3163 \def\dblfloatpagefraction{.8}
3164 \def\dbltextfloatsep{0.8\textfloatsep}
3165
3166 \def\helvetica{\relax}
3167 %%\def\timesroman{\relax}% Commented out all \timesroman -- thp 2005/07/23
3168 %\def\centeredcaption#1{\caption}
3169 %
3170 %\long\def\@makecaption#1#2{
3171 % \let\BBAB\table@BBAB% thp 2005/07/23
3172 % \vskip 10pt
3173 % \setbox\@tempboxa\hbox{#1 #2}
3174 % \ifdim \wd\@tempboxa >\hsize #1 #2\par \else \hbox
3175 %to\hsize{\hfil\box\@tempboxa\hfil}
3176 % \fi
3177 % \let\BBAB\normal@BBAB% thp 2005/07/23
3178 % \vskip 4pt}
3179 %
3180 %\long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
3181 % ext@#1\endcsname}{#1}{\protect\numberline{\csname
3182 % the#1\endcsname}{\ignorespaces #2}}\begingroup
3183 % \@parboxrestore
3184 % \normalsize
3185 % \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
3186 % \endgroup}
3187 %
3188 %\def\fnum@figure{\small {\em\figurename\ {\thefigure}}.\hspace{0.07in}}
3189 %\long\def\fnum@table{\small\tablename\ {\thetable}:}
3190
3191
3192 \@ifundefined{def@apacite}{}{% -- Philip Kime 2008/12/03
3193 % Removed defs as per the instructions of Erik Meijer -- thp 2005/07/23
3194 \renewcommand{\bibliographytypesize}{\small}}
3195 \@ifundefined{def@natbib}{}{% -- Philip Kime 2008/12/03
3196 % Removed defs as per the instructions of Erik Meijer -- thp 2005/07/23
3197 \renewcommand{\bibliographytypesize}{\small}}
3198
3199 %\@ifundefined{def@noapacite}{% -- Philip Kime 2008/12/03
3200 % % Removed defs as per the instructions of Erik Meijer -- thp 2005/07/23
3201 % \renewcommand{\bibliographytypesize}{\small}}{}
3202
3203
3204 }% end of doc mode (regular LaTeX format)
3205
3206 %---------- end of mode specific definitions -----------
3207
3208 % =======================================================
3209 % Some final definitions for all modes
3210 % =======================================================
3211
3212 \let\ignore\@gobble
3213
3214
3215 \@ifundefined{def@apacite}{}{% -- Philip Kime 2008/12/03
3216 \bibliographystyle{apacite}
3217 %
3218 % Thanks to Donald Arsenau for the right way to ignore \bibliographystyle
3219 %
3220 \def\bibliographystyle#1{\ClassWarning{apa7}{\string\bibliographystyle\space
3221 command ignored}}}
3222
3223 \@ifundefined{def@natbib}{}{% -- Philip Kime 2008/12/03
3224 \bibliographystyle{apacite}
3225 %
3226 % Thanks to Donald Arsenau for the right way to ignore \bibliographystyle
3227 %
3228 \def\bibliographystyle#1{\ClassWarning{apa7}{\string\bibliographystyle\space
3229 command ignored}}}
3230
3231 %\@ifundefined{def@noapacite}{% -- Philip Kime 2008/12/03
3232 % \bibliographystyle{apacite}
3233 % %
3234 % % Thanks to Donald Arsenau for the right way to ignore \bibliographystyle
3235 % %
3236 % \def\bibliographystyle#1{\ClassWarning{apa7}{\string\bibliographystyle\space
3237 % command ignored}}}{}
3238
3239
3240
3241
3242 % \end{macrocode}
3243 %\end{macro}
3244 %
3245 % \begin{macrocode}
3246 %</class>
3247 % \end{macrocode}
3248 %
3249 %
3250 % %%%%%%%%%%% SAMPLE FILES %%%%%%%%%%%%
3251 %
3252 %\begin{macro}{bibliography.bib}
3253 % \begin{macrocode}
3254 %<*bibliography>
3255
3256 @ARTICLE{Borst2011a,
3257 author = {Borst, Gr\'{e}goire and Kosslyn, Stephen M. and Kievit, Rogier A. and Thompson, William L.},
3258 title = {A fictitious entry to demonstrate complicated bibliographies},
3259 journal = {Journal of Nothingness},
3260 year = {2011},
3261 volume = {1},
3262 pages = {2--3}
3263 }
3264
3265 @ARTICLE{Borst2011b,
3266 author = {Borst, Gr\'{e}goire and Kievit, Rogier A. and Thompson, William L. and
3267 Kosslyn, Stephen M.},
3268 title = {Mental rotation is not easily cognitively penetrable},
3269 journal = {Journal of Cognitive Psychology},
3270 year = {2011},
3271 volume = {23},
3272 pages = {60--75}
3273 }
3274
3275 @ARTICLE{Borst2011c,
3276 author = {Borst, Gr\'{e}goire and Thompson, William L. and Kosslyn, Stephen M.},
3277 title = {Understanding the dorsal and ventral systems of the human cerebral
3278 cortex: {B}eyond dichotomies},
3279 journal = {American Psychologist},
3280 year = {2011},
3281 volume = {66},
3282 pages = {624--632}
3283 }
3284
3285 @ARTICLE{deWaal2009,
3286 author = {de Waal, Elda and Grosser, M. M.},
3287 title = {Safety and security at school: {A} pedagogical perspective},
3288 journal = {Teaching and Teacher Education},
3289 year = {2009},
3290 volume = {25},
3291 pages = {697--706}
3292 }
3293
3294 @ARTICLE{Franklin2010,
3295 author = {Franklin, Jr., Robert G. and Adams, Jr., Reginald B.},
3296 title = {The two sides of beauty: {L}aterality and the duality of facial attractiveness},
3297 journal = {Brain and Cognition},
3298 year = {2010},
3299 volume = {72},
3300 pages = {300--305}
3301 }
3302
3303 @ARTICLE{Gilbert2004,
3304 author = {Gilbert, David and McClernon, Joseph and Rabinovich, Norka and Sugai, Chihiro
3305 and Plath, Louisette and Asgaard, Greg and Zuo, Yantao and Huggenvik, Jodi and Botros, Nazeih},
3306 title = {Effects of quitting smoking on {EEG} activation and attention last for more than 31
3307 days and are more severe with stress, dependence, {DRD2 A1} allele, and depressive traits},
3308 journal = {Nicotine \& Tobacco Research},
3309 year = {2004},
3310 volume = {6},
3311 pages = {249--267},
3312 number = {2},
3313 doi = {10.1080/14622200410001676305}
3314 }
3315
3316 @INBOOK{Haybron2008,
3317 author = {Haybron, Daniel M.},
3318 title = {Philosophy and the science of subjective well-being},
3319 editor = {Eid, Michael and Larsen, Randy J.},
3320 booktitle = {The science of subjective well-being},
3321 year = {2008},
3322 pages = {17--43},
3323 publisher = {Guilford Press},
3324 address = {New York, NY}
3325 }
3326
3327 @ARTICLE{Herbst-Damm2005,
3328 author = {Herbst-Damm, Kathryn L. and Kulik, James A.},
3329 title = {Volunteer support, marital status, and the survival times of terminally ill patients},
3330 journal = {Health Psychology},
3331 year = {2005},
3332 volume = {24},
3333 pages = {225--229},
3334 number = {2}
3335 }
3336
3337 @ARTICLE{Lassen2006,
3338 author = {Lassen, Stephen R. and Steele, Michael M. and Sailor, Wayne},
3339 title = {The relationship of school-wide positive behavior support to academic achievement in
3340 an urban middle school},
3341 journal = {Psychology in the Schools},
3342 year = {2006},
3343 volume = {43},
3344 pages = {701--712},
3345 number = {6}
3346 }
3347
3348 @ARTICLE{JRLevin2000,
3349 author = {Levin, Joel R. and O'Donnell, Angela M.},
3350 title = {What to do about educational research's credibility gaps?},
3351 journal = {Journal of Cognitive Education and Psychology},
3352 year = {2000},
3353 volume = {1},
3354 pages = {201--256}
3355 }
3356
3357 @ARTICLE{MLevin1990,
3358 author = {Levin, Mary E. and Levin, Joel R.},
3359 title = {Scientific mnemonomies: {M}ethods for maximizing more than memory},
3360 journal = {American Educational Research Journal},
3361 year = {1990},
3362 volume = {27},
3363 pages = {301--321}
3364 }
3365
3366 @ARTICLE{MayerInPressA,
3367 author = {Mayer, Richard E.},
3368 title = {Fake article to illustrate in-press citations},
3369 journal = {Journal of Cognitive Psychology},
3370 year = {in press}
3371 }
3372
3373 @ARTICLE{MayerInPressB,
3374 author = {Mayer, Richard E.},
3375 title = {Second fake article to illustrate in-press citations},
3376 journal = {Journal of Educational Psychology},
3377 year = {in press}
3378 }
3379
3380 @ARTICLE{Mayer2008a,
3381 author = {Mayer, Richard E.},
3382 title = {Applying the science of learning: {E}vidence-based principles for
3383 the design of multimedia instruction},
3384 journal = {American Psychologist},
3385 year = {2008},
3386 volume = {63},
3387 pages = {760--769}
3388 }
3389
3390 @ARTICLE{Mayer2008b,
3391 author = {Mayer, Richard E.},
3392 title = {Old advice for new researchers},
3393 journal = {Educational Psychology Review},
3394 year = {2008},
3395 volume = {20},
3396 pages = {19--28}
3397 }
3398
3399 @BOOK{Shotton1989,
3400 author = {Shotton, Margaret A.},
3401 title = {Computer addiction? {A} study of computer dependency},
3402 publisher = {Taylor \& Francis},
3403 year = {1989},
3404 location = {London, England}
3405 }
3406
3407 @ARTICLE{vonDavier2011,
3408 author = {von Davier, Matthias and Xu, Xueli and Carstensen, Claus H.},
3409 title = {Measuring growth in a longitudinal large-scale assessment with a
3410 general latent variable model},
3411 journal = {Psychometrika},
3412 year = {2011},
3413 volume = {76},
3414 pages = {318--336}
3415 }
3416
3417 %</bibliography>
3418 % \end{macrocode}
3419 %\end{macro}
3420 %
3421 %\begin{macro}{shortsample.tex}
3422 % \begin{macrocode}
3423 %<*shortsample>
3424 \documentclass[jou]{apa7}
3425
3426 \usepackage[american]{babel}
3427
3428 \usepackage{csquotes}
3429 \usepackage[style=apa,backend=biber]{biblatex}
3430 \addbibresource{bibliography.bib}
3431
3432 \title{Sample APA-Style Document Using the \textsf{apa7} Package}
3433
3434 \authorsnames{Daniel A. Weiss}
3435 \authorsaffiliations{Departement of Psychology, A University Somewhere}
3436
3437 \leftheader{Weiss}
3438
3439 \abstract{This demonstration paper uses the \textsf{apa7} \LaTeX\
3440 class to format the document in compliance with the 7th Edition of
3441 the American Psychological Assocation's \textit{Publication Manual.}
3442 The references are managed using \textsf{biblatex}.}
3443
3444 \keywords{APA style, demonstration}
3445
3446 \authornote{\addORCIDlink{Daniel A. Weiss}{0000-0000-0000-0000}, Department of Psychology, A University Somewhere
3447
3448 Changes of Affiliations and other info here to describe what needs to be said}
3449
3450 \begin{document}
3451 \maketitle
3452 We begin with \textcite{Shotton1989}. We can also cite this work in
3453 parenthesis, like this: \parencite{Lassen2006}.
3454
3455 Note the use of five heading levels throughout this demonstration
3456 Method section.
3457
3458 \section{Method}
3459 \subsection{Participants}
3460 We had a lot of people in this study, show in Figure \ref{fig:Figure1}.
3461
3462 \begin{figure}[!htp]
3463 \caption{This is my figure caption.}
3464 \includegraphics[bb=0in 0in 2.5in 2.5in, height=1.4in, width=1.4in]{Figure1.pdf}
3465 \figurenote{This is an awesome figure.}
3466 \label{fig:Figure1}
3467 \end{figure}
3468
3469 \subsection{Materials}
3470 Several materials were used for this project. Some of them were
3471 already created for prior research.
3472
3473 \subsubsection{Paper-and-Pencil Instrument}
3474 We used an instrument that we found to be highly successful.
3475
3476 \paragraph{Reliability}
3477 The reliability of this instrument is extraordinary.
3478
3479 \paragraph{Validity}
3480 We now discuss the validity of our instrument.
3481
3482 \subparagraph{Face validity} The face validity is exceptionally
3483 strong. Everyone should be impressed.
3484
3485 \subparagraph{Construct validity} Also very strong.
3486
3487 \subsection{Design}
3488 This section describes the study's design.
3489
3490 \subsection{Procedure}
3491 The procedure was fairly straightforward, yet required
3492 attention to detail.
3493
3494 \section{Results}
3495 Table \ref{tab:ComplexTable} contains some sample data. Our
3496 statistical prowess in analyzing these data is unmatched.
3497
3498 \begin{table}[htbp]
3499 \vspace*{2em}
3500 \begin{threeparttable}
3501 \caption{A Complex Table}
3502 \label{tab:ComplexTable}
3503 \begin{tabular}{@{}lrrr@{}} \toprule
3504 Distribution type & \multicolumn{2}{l}{Percentage of} & Total number \\
3505 & \multicolumn{2}{l}{targets with} & of trials per \\
3506 & \multicolumn{2}{l}{segment in} & participant \\ \cmidrule(r){2-3}
3507 & Onset & Coda & \\ \midrule
3508 Categorical -- onset\tabfnm{a} & 100 & 0 & 196 \\
3509 Probabilistic & 80 & 20\tabfnm{*} & 200 \\
3510 Categorical -- coda\tabfnm{b} & 0 & 100\tabfnm{*} & 196 \\ \midrule
3511 \end{tabular}
3512 \tablenote{All data are approximate.
3513
3514 \tabfnt{a}Categorical may be onset.
3515 \tabfnt{b}Categorical may also be coda.
3516
3517 \tabfnt{*}\textit{p} < .05.
3518 \tabfnt{**}\textit{p} < .01.
3519 }
3520 \end{threeparttable}
3521 \end{table}
3522
3523 \section{Discussion}
3524 This is a lengthy and erudite discussion. It demonstrates amazing
3525 skill in interpreting the results for the masses.
3526
3527 \printbibliography
3528
3529 \end{document}
3530
3531 %</shortsample>
3532 % \end{macrocode}
3533 %\end{macro}
3534 %
3535 %\begin{macro}{longsample.tex}
3536 % \begin{macrocode}
3537 %<*longsample>
3538 \documentclass[man]{apa7}
3539
3540 \usepackage{lipsum}
3541
3542 \usepackage[american]{babel}
3543
3544 \usepackage{csquotes}
3545 \usepackage[style=apa,backend=biber]{biblatex}
3546 \addbibresource{bibliography.bib}
3547
3548 \title{Sample APA-Style Document Using the \textsf{apa7} Package}
3549 \shorttitle{Sample Document}
3550
3551 \authorsnames{Daniel A. Weiss}
3552 \authorsaffiliations{A University Somewhere}
3553
3554 \leftheader{Weiss}
3555
3556 \abstract{\lipsum[1]}
3557
3558 \keywords{APA style, demonstration}
3559
3560 \authornote{
3561 \addORCIDlink{Daniel A. Weiss}{0000-0000-0000-0000}
3562
3563 Correspondence concerning this article should be addressed to Daniel A. Weiss, Department of Educational Psychology, Counseling and
3564 Special Education, A University Somewhere, 123 Main St., Oneonta, NY
3565 13820. E-mail: [email protected]}
3566
3567
3568 \begin{document}
3569 \maketitle
3570 \lipsum[2]
3571
3572 \Textcite{vonDavier2011} said this,
3573 too \parencite{vonDavier2011,Lassen2006}. Further evidence comes from
3574 other sources \parencite{Shotton1989,Lassen2006}. \lipsum[3]
3575
3576 \section{Method}
3577 \subsection{Participants}
3578 \lipsum[4]
3579
3580 \subsection{Materials}
3581 \lipsum[5]
3582
3583 \subsection{Design}
3584 \lipsum[6]
3585
3586 \subsection{Procedure}
3587 \lipsum[7]
3588
3589 \subsubsection{Instrument \#1}
3590 \lipsum[8]
3591
3592 \paragraph{Reliability}
3593 \lipsum[9]
3594
3595 \subparagraph{Inter-rater reliability}
3596 \lipsum[10]
3597
3598 \subparagraph{Test-retest reliability}
3599 \lipsum[11]
3600
3601 \paragraph{Validity}
3602 \lipsum[12]
3603
3604 \subparagraph{Face validity}
3605 \lipsum[13]
3606
3607 \subparagraph{Construct validity}
3608 \lipsum[14]
3609
3610
3611 \section{Results}
3612 Table~\ref{tab:BasicTable} summarizes the data. \lipsum[15]
3613
3614 \begin{table}
3615 \caption{Sample Basic Table}
3616 \label{tab:BasicTable}
3617 \begin{tabular}{@{}llr@{}} \toprule
3618 \multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2}
3619 Animal & Description & Price \\ \midrule
3620 Gnat & per gram & 13.65 \\
3621 & each & 0.01 \\
3622 Gnu & stuffed & 92.50 \\
3623 Emu & stuffed & 33.33 \\
3624 Armadillo & frozen & 8.99 \\ \bottomrule
3625 \end{tabular}
3626 \end{table}
3627
3628 \begin{figure}
3629 \caption{This is my first figure caption.}
3630 \includegraphics[bb=0in 0in 2.5in 2.5in, height=2.5in, width=2.5in]{Figure1.pdf}
3631 \figurenote{This is a great figure.}
3632 \label{fig:Figure1}
3633 \end{figure}
3634
3635 Figure~\ref{fig:Figure1} shows this trend. \lipsum[16]
3636
3637 \section{Discussion}
3638 \lipsum[17]
3639
3640 \lipsum[18]
3641
3642 \lipsum[19]
3643
3644
3645 \printbibliography
3646
3647 \appendix
3648
3649 \section{Instrument}
3650 \label{app:instrument}
3651
3652 As shown in Figure~\ref{fig:Figure2}, these results are impressive. \lipsum[20]
3653
3654 \begin{figure}
3655 \caption{This is my second figure caption.}
3656 \includegraphics[bb=0in 0in 2.5in 2.5in, height=2.5in, width=2.5in]{Figure1.pdf}
3657 \figurenote{This is a great appendix figure.}
3658 \label{fig:Figure2}
3659 \end{figure}
3660
3661 \lipsum[21]
3662 \section{Pilot Data}
3663 \label{app:surveydata}
3664
3665 The detailed results are shown in Table~\ref{tab:DeckedTable}. \lipsum[22]
3666
3667 \begin{table}
3668 \begin{threeparttable}
3669 \caption{A More Complex Decked Table}
3670 \label{tab:DeckedTable}
3671 \begin{tabular}{@{}lrrr@{}} \toprule
3672 Distribution type & \multicolumn{2}{l}{Percentage of} & Total number \\
3673 & \multicolumn{2}{l}{targets with} & of trials per \\
3674 & \multicolumn{2}{l}{segment in} & participant \\ \cmidrule(r){2-3}
3675 & Onset & Coda & \\ \midrule
3676 Categorical -- onset\tabfnm{a} & 100 & 0 & 196 \\
3677 Probabilistic & 80 & 20\tabfnm{*} & 200 \\
3678 Categorical -- coda\tabfnm{b} & 0 & 100\tabfnm{*} & 196 \\ \midrule
3679 \end{tabular}
3680 \tablenote{All data are approximate.
3681
3682 \tabfnt{a}Categorical may be onset.
3683 \tabfnt{b}Categorical may also be coda.
3684
3685 \tabfnt{*}\textit{p} < .05.
3686 \tabfnt{**}\textit{p} < .01.
3687 }
3688 \end{threeparttable}
3689 \end{table}
3690
3691 \lipsum[23]
3692
3693 \end{document}
3694
3695 %</longsample>
3696 % \end{macrocode}
3697 %\end{macro}
3698 %
3699 % %%%%%%%%%%% CONFIGURATION FILES %%%%%%%%%%%%
3700 %
3701 %\begin{macro}{APA7american.txt}
3702 % \begin{macrocode}
3703 %<*american>
3704 \ProvidesFile{APA7american.txt}[2020/12/02 v1.02 apa7 configuration for American English]
3705
3706 \renewcommand{\lastauthorseparator}{and}
3707 \renewcommand{\acksname}{Author Note}
3708 \renewcommand{\keywordname}{Keywords}
3709 \renewcommand{\notesname}{Footnotes}
3710 \renewcommand{\notelabel}{Note}
3711
3712
3713 %</american>
3714 % \end{macrocode}
3715 %\end{macro}
3716 %
3717 %
3718 %\begin{macro}{APA7british.txt}
3719 % \begin{macrocode}
3720 %<*british>
3721 \ProvidesFile{APA7british.txt}[2020/12/02 v1.02 apa7 configuration for British English]
3722
3723 \renewcommand{\lastauthorseparator}{and}
3724 \renewcommand{\acksname}{Author Note}
3725 \renewcommand{\keywordname}{Keywords}
3726 \renewcommand{\notesname}{Footnotes}
3727 \renewcommand{\notelabel}{Note}
3728
3729
3730 %</british>
3731 % \end{macrocode}
3732 %\end{macro}
3733 %
3734 %
3735 %\begin{macro}{APA7english.txt}
3736 % \begin{macrocode}
3737 %<*english>
3738 \ProvidesFile{APA7english.txt}[2020/12/02 v1.02 apa7 configuration for non-American English]
3739
3740 \renewcommand{\lastauthorseparator}{and}
3741 \renewcommand{\acksname}{Author Note}
3742 \renewcommand{\keywordname}{Keywords}
3743 \renewcommand{\notesname}{Footnotes}
3744 \renewcommand{\notelabel}{Note}
3745
3746 %</english>
3747 % \end{macrocode}
3748 %\end{macro}
3749 %
3750 %
3751 %\begin{macro}{APA7french.txt}
3752 % \begin{macrocode}
3753 %<*french>
3754 \ProvidesFile{APA7french.txt}[2020/12/02 v1.02 apa7 configuration for French] % translation by lejun[at]gmx.fr
3755
3756 \renewcommand{\lastauthorseparator}{et}% and
3757 \renewcommand{\acksname}{Note de l'auteur}% Author Note
3758 \renewcommand{\keywordname}{Mots Clés}% Keywords
3759 \renewcommand{\notesname}{Notes de bas de page}% Footnotes
3760 \renewcommand{\notelabel}{Note}%Note
3761
3762 %</french>
3763 % \end{macrocode}
3764 %\end{macro}
3765 %
3766 %
3767 %\begin{macro}{APA7dutch.txt}
3768 % \begin{macrocode}
3769 %<*dutch>
3770 \ProvidesFile{APA7dutch.txt}[2020/12/02 v1.02 apa7 configuration for Dutch]
3771
3772 \renewcommand{\lastauthorseparator}{en}% and
3773 \renewcommand{\acksname}{Auteursnoot}% Author Note
3774 \renewcommand{\keywordname}{Trefwoorden}% Keywords
3775 \renewcommand{\notesname}{Voetnoten}% Footnotes
3776 \renewcommand{\notelabel}{Noot}%Note
3777
3778 %</dutch>
3779 % \end{macrocode}
3780 %\end{macro}
3781 %
3782 %
3783 %\begin{macro}{APA7german.txt}
3784 % \begin{macrocode}
3785 %<*german>
3786 \ProvidesFile{APA7german.txt}[2020/12/02 v1.02 apa7 configuration for German]
3787
3788 \renewcommand{\lastauthorseparator}{und}% and
3789 \renewcommand{\acksname}{Autorenhinweis}% Author Note
3790 \renewcommand{\keywordname}{Schl\"usselw\"orter}% Keywords
3791 \renewcommand{\notesname}{Fußnoten}% Footnotes
3792 \renewcommand{\notelabel}{Anmerkung}%Note
3793
3794 %</german>
3795 % \end{macrocode}
3796 %\end{macro}
3797 %
3798 %
3799 %\begin{macro}{APA7ngerman.txt}
3800 % \begin{macrocode}
3801 %<*ngerman>
3802 \ProvidesFile{APA7ngerman.txt}[2020/12/02 v1.02 apa7 configuration for "new" German]
3803
3804 \renewcommand{\lastauthorseparator}{und}% and
3805 \renewcommand{\acksname}{Autorenhinweis}% Author Note
3806 \renewcommand{\keywordname}{Schl\"usselw\"orter}% Keywords
3807 \renewcommand{\notesname}{Fußnoten}% Footnotes
3808 \renewcommand{\notelabel}{Anmerkung}%Note
3809
3810 %</ngerman>
3811 % \end{macrocode}
3812 %\end{macro}
3813 %
3814 %
3815 %\begin{macro}{APA7greek.txt}
3816 % \begin{macrocode}
3817 %<*greek>
3818 \ProvidesFile{APA7greek.txt}[2020/12/02 v1.02 apa7 configuration for Greek]
3819
3820 \renewcommand{\lastauthorseparator}{και}% and
3821 \renewcommand{\acksname}{Σημείωση του συγγραφέα}% Author Note
3822 \renewcommand{\keywordname}{λέξεις-κλειδιά}% Keywords
3823 \renewcommand{\notesname}{υποσημείωση}% Footnotes
3824 \renewcommand{\notelabel}{Σημείωση}%Note
3825
3826 %</greek>
3827 % \end{macrocode}
3828 %\end{macro}
3829 %
3830 %
3831 %\begin{macro}{APA7czech.txt}
3832 % \begin{macrocode}
3833 %<*czech>
3834 \ProvidesFile{APA7czech.txt}[2020/12/02 v1.02 apa7 configuration for Czech]
3835
3836 \renewcommand{\lastauthorseparator}{a}% and
3837 \renewcommand{\acksname}{Poznámka~autora}% Author Note
3838 \renewcommand{\keywordname}{Klícová~1slova}% Keywords
3839 \renewcommand{\notesname}{Poznámky}% Footnotes
3840 \renewcommand{\notelabel}{Nota}%Note
3841
3842 %</czech>
3843 % \end{macrocode}
3844 %\end{macro}
3845 %
3846 %
3847 %\begin{macro}{APA7turkish.txt}
3848 % \begin{macrocode}
3849 %<*turkish>
3850 \ProvidesFile{APA7turkish.txt}[2020/12/02 v1.02 apa7 configuration for Turkish]
3851
3852 \renewcommand{\lastauthorseparator}{ve}% and
3853 \renewcommand{\acksname}{Yazar Notu}% Author Note
3854 \renewcommand{\keywordname}{Anahtar Kelimeler}% Keywords
3855 \renewcommand{\notesname}{Dipnotlar}% Footnotes
3856 \renewcommand{\notelabel}{Not}%Note
3857
3858 %</turkish>
3859 % \end{macrocode}
3860 %\end{macro}
3861 %
3862 %
3863 %\begin{macro}{APA7spanish.txt}
3864 % \begin{macrocode}
3865 %<*spanish>
3866 \ProvidesFile{APA7spanish.txt}[2021/08/08 v1.00 apa7 configuration for Spanish]
3867
3868 \renewcommand{\lastauthorseparator}{y}% and
3869 \renewcommand{\acksname}{Nota del Autor}% Author Note
3870 \renewcommand{\keywordname}{Palabras Claves}% Keywords
3871 \renewcommand{\notesname}{Notas}% Footnotes
3872 %Note
3873
3874 %</spanish>
3875 % \end{macrocode}
3876 %\end{macro}
3877 %
3878 %
3879 %\begin{macro}{APA7hungarian.txt}
3880 % \begin{macrocode}
3881 %<*hungarian>
3882 \ProvidesFile{APA7hungarian.txt}[2022/07/25 v1.00 apa7 configuration for Hungarian - added by Robert Fodor]
3883
3884 \renewcommand{\lastauthorseparator}{és}% and
3885 \renewcommand{\acksname}{Szerzői megjegyzés}% Author Note
3886 \renewcommand{\keywordname}{Kulcsszavak}% Keywords
3887 \renewcommand{\notesname}{Lábjegyzet}% Footnotes
3888 \renewcommand{\notelabel}{Megjegyzés}% Note
3889 %Note
3890
3891 %</hungarian>
3892 % \end{macrocode}
3893 %\end{macro}
3894 %
3895 %
3896 %\begin{macro}{APA7endfloat.cfg}
3897 % \begin{macrocode}
3898 %<*APAendfloat>
3899 \ProvidesFile{APA7endfloat.cfg}[2021/03/03 v2.00 apa7 configuration endfloat]
3900 %%
3901 %% This is file `endfloat.cfg',
3902 %% modifed from the original supplied efxmpl.cfg with the endfloat package
3903 %% to handle both sideways floats and longtable
3904 %%
3905 %% Description: LaTeX style to put figures and tables at end of article
3906 %% Keywords: LaTeX, style-option, float, figure, table
3907 %% Authors: James Darrell McCauley <[email protected]>,
3908 %% Jeff Goldberg <[email protected]>,
3909 %% Axel Sommerfeldt <[email protected]>
3910 %% Maintainer: -none-
3911 %% Latest Version: Version 2.7 <April 2019>
3912 %%
3913 \RequirePackage{rotating}
3914 \RequirePackage{longtable}
3915 \DeclareDelayedFloatFlavor{sidewaysfigure}{figure}
3916 \DeclareDelayedFloatFlavor{sidewaystable}{table}
3917 \DeclareDelayedFloatFlavor{longtable}{table}
3918 \endinput%</APAendfloat>
3919 % \end{macrocode}
3920 %\end{macro}
3921 %
3922 %
3923 %\Finale