summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/apa7/apa7.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/apa7/apa7.cls')
-rw-r--r--Master/texmf-dist/tex/latex/apa7/apa7.cls60
1 files changed, 30 insertions, 30 deletions
diff --git a/Master/texmf-dist/tex/latex/apa7/apa7.cls b/Master/texmf-dist/tex/latex/apa7/apa7.cls
index 5fc4b5c8296..5c1d9cfb126 100644
--- a/Master/texmf-dist/tex/latex/apa7/apa7.cls
+++ b/Master/texmf-dist/tex/latex/apa7/apa7.cls
@@ -27,7 +27,7 @@
%%
%% ----------------------------------------------------------------------
%%
-\ProvidesClass{apa7}[2021/04/08 v2.12 APA formatting (7th edition)]
+\ProvidesClass{apa7}[2021/05/17 v2.13 APA formatting (7th edition)]
\NeedsTeXFormat{LaTeX2e}
\DeclareOption{man}{%
@@ -788,7 +788,7 @@
\long\def\abstract#1{\long\def\@abstract{#1}}
\long\def\keywords#1{\long\def\@keywords{#1}}
\long\def\authornote#1{\long\def\@acks{#1}}
-\def\journal#1{\RequirePackage{fancyhdr}\def\@journal{#1}}
+\def\journal#1{\def\@journal{#1}}
\def\volume#1{\def\@vvolume{#1}}
\def\ccoppy#1{\def\@ccoppy{#1}}
\def\copnum#1{\def\@copnum{#1}}
@@ -1385,6 +1385,8 @@
\@ifundefined{def@jou}{}{%
+\RequirePackage{fancyhdr}
+
\renewcommand{\addORCIDlink}[2]{\href{https://orcid.org/#2}{{\mbox{\scalerel*{
\begin{tikzpicture}[yscale=-1,transform shape]
\pic{orcidlogo};
@@ -1447,27 +1449,21 @@
\end{center}
] % end of \twocolumn[]
+ \renewcommand{\headrulewidth}{0pt}%
+
\pagenumbering{arabic}
\@ifundefined{@journal}{\thispagestyle{empty}}{%
\@ifundefined{@vvolume}{\def\@vvolume{\strut}}{}%
\@ifundefined{@copnum}{\def\@copnum{\strut}}{}%
\@ifundefined{@ccoppy}{\def\@ccoppy{\strut}}{}%
- \fancyhead{}
- \fancyhead[LO]{\stiny{\@journal}\vspace{-0.15\baselineskip}\\
- \stiny{\@vvolume}}
- \fancyhead[RO]{\stiny{\@ccoppy}\vspace{-0.15\baselineskip}\\
- \stiny{\@copnum}}
- \fancyfoot[CO]{\small\rm\thepage}
- % the following are needed if the starting page number is changed to
- % an even number:
- \fancyhead[LE]{\stiny{\@journal}\vspace{-0.15\baselineskip}\\
- \stiny{\@vvolume}}
- \fancyhead[RE]{\stiny{\@ccoppy}\vspace{-0.15\baselineskip}\\
- \stiny{\@copnum}}
- \fancyfoot[CE]{\small\rm\thepage}
- \renewcommand{\headrulewidth}{0pt}
- \renewcommand{\footrulewidth}{0pt}
- \thispagestyle{fancy}
+ \fancypagestyle{pageone}{%
+ \fancyhf{}%
+ \fancyhead[L]{\stiny{\@journal}\vspace{-0.15\baselineskip}\\
+ \stiny{\@vvolume}}%
+ \fancyhead[R]{\stiny{\@ccoppy}\vspace{-0.15\baselineskip}\\
+ \stiny{\@copnum}}%
+ }
+ \thispagestyle{pageone}
}
\@ifundefined{apaSeven@maskauthoridentity}{% BDB
@@ -1481,11 +1477,6 @@
}{% mask author identity -- show nothing in the author note space
}
- \@ifundefined{apaSeven@maskauthoridentity}{% BDB
- \markboth{\hfill\r@headl\hfill}{\hfill\r@headr\hfill}
- }{% mask author identity -- show the short title for both the left and right headers
- \markboth{\hfill\r@headr\hfill}{\hfill\r@headr\hfill}
- }
\@ifundefined{no@tab}{\let\tabular\apaSeventabular}{}
%\noindent
}
@@ -1508,16 +1499,25 @@
\setcounter{secnumdepth}{0}
-\def\ps@myheadings{%
- \let\@mkboth\@gobbletwo
- \def\@oddhead{\hbox{}\rightmark \hfil\rm\thepage}
- \def\@oddfoot{}
- \def\@evenhead{\rm\thepage\hfil\leftmark\hbox{}}
- \def\@evenfoot{}
+ \fancypagestyle{journalbase}{%
+ \fancyhf{}%
+ \fancyhead[LE]{\thepage}%
+ \fancyhead[RO]{\thepage}%
+ \fancyhead[CO]{\r@headr}%
\def\sectionmark##1{}
\def\subsectionmark##1{}
}
-\pagestyle{myheadings}
+
+\@ifundefined{apaSeven@maskauthoridentity}{% BDB
+ \fancypagestyle{journal}[journalbase]{%
+ \fancyhead[CE]{\r@headl}%
+ }
+}{% mask author identity -- show the short title for both the left and right headers
+ \fancypagestyle{journal}[journalbase]{%
+ \fancyhead[CE]{\r@headr}%
+ }
+ }
+ \pagestyle{journal}
\setcounter{topnumber}{2}