texlive[76018] Master/texmf-dist: fhj-script (10aug25)

commits+karl at tug.org commits+karl at tug.org
Sun Aug 10 21:50:06 CEST 2025


Revision: 76018
          https://tug.org/svn/texlive?view=revision&revision=76018
Author:   karl
Date:     2025-08-10 21:50:06 +0200 (Sun, 10 Aug 2025)
Log Message:
-----------
fhj-script (10aug25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/fhj-script/README.md
    trunk/Master/texmf-dist/doc/latex/fhj-script/fhjDATLogo.img.pdf
    trunk/Master/texmf-dist/doc/latex/fhj-script/fhjIITLogo.img.pdf
    trunk/Master/texmf-dist/doc/latex/fhj-script/fhjbook.pdf
    trunk/Master/texmf-dist/doc/latex/fhj-script/fhjcommon.pdf
    trunk/Master/texmf-dist/doc/latex/fhj-script/fhjpaper.pdf
    trunk/Master/texmf-dist/source/latex/fhj-script/fhjbook.dtx
    trunk/Master/texmf-dist/source/latex/fhj-script/fhjcommon.dtx
    trunk/Master/texmf-dist/source/latex/fhj-script/fhjpaper.dtx
    trunk/Master/texmf-dist/tex/latex/fhj-script/fhjbook.cls
    trunk/Master/texmf-dist/tex/latex/fhj-script/fhjcommon.sty
    trunk/Master/texmf-dist/tex/latex/fhj-script/fhjpaper.cls

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.de.img.pdf
    trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.en.img.pdf

Modified: trunk/Master/texmf-dist/doc/latex/fhj-script/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fhj-script/README.md	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/doc/latex/fhj-script/README.md	2025-08-10 19:50:06 UTC (rev 76018)
@@ -1,4 +1,4 @@
-# FHJ-Script 2025-08-04 v4.0b
+# FHJ-Script 2025-08-10 v4.0c
 
 Copyright [Michael Hammer](mailto:michael.hammer at fh-joanneum.at) 2025
 

Modified: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjDATLogo.img.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjIITLogo.img.pdf
===================================================================
(Binary files differ)

Added: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.de.img.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.de.img.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.de.img.pdf	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.de.img.pdf	2025-08-10 19:50:06 UTC (rev 76018)

Property changes on: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.de.img.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Added: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.en.img.pdf
===================================================================
(Binary files differ)

Index: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.en.img.pdf
===================================================================
--- trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.en.img.pdf	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.en.img.pdf	2025-08-10 19:50:06 UTC (rev 76018)

Property changes on: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjInformaticsLogo.en.img.pdf
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pdf
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjbook.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjcommon.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/fhj-script/fhjpaper.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/fhj-script/fhjbook.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fhj-script/fhjbook.dtx	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/source/latex/fhj-script/fhjbook.dtx	2025-08-10 19:50:06 UTC (rev 76018)
@@ -25,7 +25,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}[2023-11-01]
 %<class>\ProvidesClass{fhjbook}
 %<*class>
-    [2025-08-04 v4.0b A class for formatting books/thesis in the FHJ style]
+    [2025-08-10 v4.0c A class for formatting books/thesis in the FHJ style]
 %</class>
 %
 %<*driver>
@@ -353,19 +353,20 @@
 }
 
 % Main title page
-\newcommand{\FHJMakeTitlePage}{
-\check at title
-\thispagestyle{empty}
+\newcommand{\FHJMakeTitlePage}{%
+\check at title%
+\thispagestyle{empty}%
 \begin{center}
+%%  \IfStrEqCase{\FHJProgramShort}{
+%%  {DAT}{%
+%%    \includegraphics[width=70mm]{fhjInformaticsLogo.img.pdf}
+%%  }{IMS}{%
+%%    \includegraphics[width=70mm]{fhjInformaticsLogo.img.pdf}
+%%  }
+\iflanguage{ngerman}{\includegraphics[width=70mm]{fhjInformaticsLogo.de.img.pdf}}{}
+\iflanguage{english}{\includegraphics[width=70mm]{fhjInformaticsLogo.en.img.pdf}}{}
+\\[10mm]
 
-  \IfStrEqCase{\FHJProgramShort}{
-  {DAT}{%
-    \includegraphics[width=70mm]{fhjDATLogo.img.pdf}
-  }{IMS}{%
-    \includegraphics[width=70mm]{fhjIITLogo.img.pdf}
-  }
-}\\[10mm]
-
 % Masterarbeit, Titel, Untertitel
 \iflanguage{ngerman}{\textbf{MASTERARBEIT}}{}
 \iflanguage{english}{\textbf{MASTER'S THESIS}}{}

Modified: trunk/Master/texmf-dist/source/latex/fhj-script/fhjcommon.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fhj-script/fhjcommon.dtx	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/source/latex/fhj-script/fhjcommon.dtx	2025-08-10 19:50:06 UTC (rev 76018)
@@ -21,7 +21,7 @@
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}[2023-11-01]
 %<package>\ProvidesPackage{fhjcommon}
-%<package>[2025-08-04 v4.0b Common macros for the FHJ bundle]
+%<package>[2025-08-10 v4.0c Common macros for the FHJ bundle]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -189,7 +189,7 @@
     image generator applications [e.g., Dall-E], or programming applications [e.g.,
     Github Copilot]) and indicated their usage at the corresponding text passages.
     \item that this original thesis, in its current form, has not been submitted to any
-    other academic institution for the purpose of obtaining an academic degree
+    other academic institution for the purpose of obtaining an academic degree.
 \end{itemize}
 
 I have been informed that my work may be checked for plagiarism and for third-party

Modified: trunk/Master/texmf-dist/source/latex/fhj-script/fhjpaper.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/fhj-script/fhjpaper.dtx	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/source/latex/fhj-script/fhjpaper.dtx	2025-08-10 19:50:06 UTC (rev 76018)
@@ -25,7 +25,7 @@
 %<class>\NeedsTeXFormat{LaTeX2e}[2023-11-01]
 %<class>\ProvidesClass{fhjpaper}
 %<*class>
-    [2025-08-04 v4.0b A class for formatting papers in the FHJ style]
+    [2025-08-10 v4.0c A class for formatting papers in the FHJ style]
 %</class>
 %
 %<*driver>
@@ -41,11 +41,12 @@
 % \fi
 %
 % \GetFileInfo{fhjpaper.dtx}
+% \newcommand{\classname}{fhjpaper}
 %
 % \changes{v4.0}{2025/08/03}{Initial package version}
 %
-% \title{The \textsf{fhjpaper} class\thanks{This document
-% corresponds to \textsf{fhjpaper}~\fileversion,
+% \title{The \textsf{\classname} class\thanks{This document
+% corresponds to \textsf{\classname}~\fileversion,
 % dated \filedate.}}
 % \author{Michael E. Hammer \\ \texttt{michael.hammer at fh-joanneum.at}}
 %
@@ -100,18 +101,6 @@
 \RequirePackage{hyperref}
 %    \end{macrocode}
 % 
-% \subsection{Page style}
-% 
-% The footer contains the short title of the document and the header contains the
-% long title of the study program. The section counter is limited to two levels 
-% (|subsection| maximum).
-%
-%    \begin{macrocode}
-\ofoot{\@shorttitle}
-\ifoot{\FHJProgramLong}
-\setcounter{secnumdepth}{2}
-%    \end{macrocode}
-% 
 % \section{Title}
 % 
 % To support in the creation of the title and abstract on the first page we provide a
@@ -133,6 +122,11 @@
 % This supports the reader if multiple documents are printed together in a single
 % collection.
 % 
+%    \begin{macrocode}
+\renewcommand*{\title}[1]{\renewcommand*{\@title}{{#1}}}
+\newcommand{\shorttitle}[1]{\newcommand{\@shorttitle}{{#1}}}
+%    \end{macrocode}
+% 
 % \subsection{Authors and Affiliations}
 %  
 % This code is based on APA 7th edition style guide without including the deprecated 
@@ -184,13 +178,23 @@
 % \hspace{2em}|{MRC Cognition and Brain Science Unit, Cambridge, England},| \par
 % \hspace{2em}|{Department of Psychology, University of Cambridge}}| \par
 %
+% \subsection{Page style}
+% 
+% The footer contains the short title of the document and the header contains the
+% long title of the study program. The section counter is limited to two levels 
+% (|subsection| maximum).
+%
+%    \begin{macrocode}
+\ofoot{\@shorttitle}
+\ifoot{\FHJProgramLong}
+\setcounter{secnumdepth}{2}
+%    \end{macrocode}
+% 
 % \MaybeStop{\PrintChanges}
 % 
 % \section{Implementation}
 % 
 %    \begin{macrocode}
-\renewcommand*{\title}[1]{\renewcommand*{\@title}{{#1}}}
-\newcommand{\shorttitle}[1]{\newcommand{\@shorttitle}{{#1}}}
 
 %%-------------------------------------------------------------------------------------
 %% authors handling
@@ -205,26 +209,29 @@
 \newcommand*\listauthors{}
 \newcommand*\listsuperscripts{}
 \newcommand*\listaffiliations{}
+\newcounter{NumberOfAuthors}
+\newcounter{NumberOfSuperscripts}
 
-\newcommand*{\authorsnames}[2][]{
+\newcommand*{\authorsnames}[2][]{%
   \def\def at multipleauthors{\@multipleauthorsmode} %
   \renewcommand*\listauthors{}
   \renewcommand*\listsuperscripts{}
-  \newcounter{NumberOfAuthors}
-  \newcounter{NumberOfSuperscripts}
+  \setcounter{NumberOfAuthors}{0}
+  \setcounter{NumberOfSuperscripts}{0}
   \forcsvlist{\stepcounter{NumberOfAuthors}\listadd\listauthors}{#2}
   \forcsvlist{\stepcounter{NumberOfSuperscripts}\listadd\listsuperscripts}{#1}
-  }
-  
-  \newcommand*{\authorsaffiliations}[1]{
+}
+
+\newcounter{NumberOfAffiliations}
+\newcommand*{\authorsaffiliations}[1]{%
   \def\def at multipleaffils{\@multipleaffilsmode} %
   \renewcommand*\listaffiliations{}
-  \newcounter{NumberOfAffiliations}
+  \setcounter{NumberOfAffiliations}{0}
   \forcsvlist{\stepcounter{NumberOfAffiliations}\listadd\listaffiliations}{#1}
-  }
+}
 
-\makeatletter
-  \catcode`\|=3
+%% \makeatletter
+%%   \catcode`\|=3
   
 \def\looptwo#1#2{%
     \edef\tmp{\noexpand\xtwo%
@@ -244,8 +251,7 @@
     {\xtwo#2\relax#4\relax}%
   }%
 
-  \catcode`\|=12
-\makeatother
+%%  \catcode`\|=12
 
 \newcommand*{\dotwo}[2]{}
 
@@ -260,29 +266,29 @@
   \renewcommand*{\prelastauthor}{}%
   \renewcommand*{\prelastauthorsep}{}%
   \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print authors without superscripts.
-	\renewcommand*{\do}[1]{%
+	  \renewcommand*{\do}[1]{%
       \authorsep%
-    \lastauthor%
-    \renewcommand{\lastauthor}{%
-      \renewcommand{\authorsep}{, 
-        \renewcommand*{\prelastauthorsep}{,}}%
-      \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
-      ##1%
+      \lastauthor%
+      \renewcommand{\lastauthor}{%
+        \renewcommand{\authorsep}{, 
+          \renewcommand*{\prelastauthorsep}{,}}%
+        \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
+        ##1%
+      }%
     }%
-      }%
     \dolistloop{\listauthors}%
   \else
     \renewcommand*{\dotwo}[2]{%
-    \authorsep%
-    \lastauthor%
-    \renewcommand{\lastauthor}{%
-      \renewcommand{\authorsep}{, 
-        \renewcommand*{\prelastauthorsep}{,}}%
-      \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
-      ##1\textsuperscript{##2}%
+      \authorsep%
+      \lastauthor%
+      \renewcommand{\lastauthor}{%
+        \renewcommand{\authorsep}{, 
+          \renewcommand*{\prelastauthorsep}{,}}%
+        \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
+        ##1\textsuperscript{##2}%
+      }%
     }%
-  }%
-  \looptwo\listauthors\listsuperscripts%
+    \looptwo\listauthors\listsuperscripts%
   \fi
   \prelastauthor \lastauthor%
 }
@@ -289,28 +295,31 @@
 
 \newcommand{\displayaffiliations}{%
   \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print affiliations without superscripts.
-  \renewcommand*{\do}[1]{%
-      ##1\\%
-  }%
+    \renewcommand*{\do}[1]{%
+        ##1\\%
+    }%
   \else
-  \newcounter{AffiliationNumber}
-  \renewcommand*{\do}[1]{%
-      \stepcounter{AffiliationNumber}
-      \textsuperscript{\arabic{AffiliationNumber}}##1\\%
-  }%
+    \newcounter{AffiliationNumber}
+    \renewcommand*{\do}[1]{%
+        \stepcounter{AffiliationNumber}
+        \textsuperscript{\arabic{AffiliationNumber}}##1\\%
+    }%
   \fi
   \dolistloop{\listaffiliations}%
 }
 
-\makeatletter
+\newcommand{\check at title}{%
+  \@ifundefined{@title}{%
+    \ClassWarningNoLine{fhjpaper}{Title not defined \title{Title}}}
+  \@ifundefined{@shorttitle}{%
+    \ClassWarningNoLine{fhjpaper}{Shorttitle not defined \shorttitle{Shorttitle}}}
+}
 
-\def\check at author{%
+\newcommand{\check at author}{%
   \@ifundefined{def at multipleauthors}{%
-    \ClassWarningNoLine{apa7}{Author not defined}\authorsnames{Author}}{}
-  \@ifundefined{@title}{%
-    \ClassWarningNoLine{apa7}{Title not defined}\def\@title{Title}}{}
+    \ClassWarningNoLine{fhjpaper}{Author not defined \authorsnames{Author}}}
   \@ifundefined{def at multipleaffils}{%
-    \ClassWarningNoLine{apa7}{Affiliation not defined}\authorsaffiliations{Affiliation}}{}
+    \ClassWarningNoLine{fhjpaper}{Affiliation not defined \authorsaffiliations{Affiliation}}}
   \@ifundefined{def at multipleauthors}{}{%
 	   \ifnum\value{NumberOfSuperscripts}=0%
 	   	% do nothing. If no superscripts are specified, print authors and affiliations without superscripts.
@@ -318,7 +327,7 @@
       \ifnum\value{NumberOfAuthors}=\value{NumberOfSuperscripts}%
         % do nothing
       \else 
-        \ClassError{apa7}{Number of Authors does not match number of Superscripts}%
+        \ClassError{fhjpaper}{Number of Authors does not match number of Superscripts}%
           {Please provide an equal number of authors and superscripts.}%
 		  \fi
 	   \fi
@@ -330,6 +339,7 @@
 \renewcommand*{\@maketitle}{
   \cleardoublepage
   \check at author
+  \check at title
   % title
   \begin{minipage}{\textwidth}\begin{center}
     \fontsize{14}{18}\selectfont

Modified: trunk/Master/texmf-dist/tex/latex/fhj-script/fhjbook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fhj-script/fhjbook.cls	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/tex/latex/fhj-script/fhjbook.cls	2025-08-10 19:50:06 UTC (rev 76018)
@@ -25,7 +25,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesClass{fhjbook}
-    [2025-08-04 v4.0b A class for formatting books/thesis in the FHJ style]
+    [2025-08-10 v4.0c A class for formatting books/thesis in the FHJ style]
 \newcommand{\@ClassName}{fhjbook}
 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrbook}}
 \ProcessOptions\relax
@@ -89,19 +89,20 @@
   \if#2f \cosupervisorfemaletrue \fi
 }
 
-\newcommand{\FHJMakeTitlePage}{
-\check at title
-\thispagestyle{empty}
+\newcommand{\FHJMakeTitlePage}{%
+\check at title%
+\thispagestyle{empty}%
 \begin{center}
+%%  \IfStrEqCase{\FHJProgramShort}{
+%%  {DAT}{%
+%%    \includegraphics[width=70mm]{fhjInformaticsLogo.img.pdf}
+%%  }{IMS}{%
+%%    \includegraphics[width=70mm]{fhjInformaticsLogo.img.pdf}
+%%  }
+\iflanguage{ngerman}{\includegraphics[width=70mm]{fhjInformaticsLogo.de.img.pdf}}{}
+\iflanguage{english}{\includegraphics[width=70mm]{fhjInformaticsLogo.en.img.pdf}}{}
+\\[10mm]
 
-  \IfStrEqCase{\FHJProgramShort}{
-  {DAT}{%
-    \includegraphics[width=70mm]{fhjDATLogo.img.pdf}
-  }{IMS}{%
-    \includegraphics[width=70mm]{fhjIITLogo.img.pdf}
-  }
-}\\[10mm]
-
 \iflanguage{ngerman}{\textbf{MASTERARBEIT}}{}
 \iflanguage{english}{\textbf{MASTER'S THESIS}}{}
 \\[10mm]

Modified: trunk/Master/texmf-dist/tex/latex/fhj-script/fhjcommon.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fhj-script/fhjcommon.sty	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/tex/latex/fhj-script/fhjcommon.sty	2025-08-10 19:50:06 UTC (rev 76018)
@@ -25,7 +25,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesPackage{fhjcommon}
-[2025-08-04 v4.0b Common macros for the FHJ bundle]
+[2025-08-10 v4.0c Common macros for the FHJ bundle]
 \newcommand{\PackageName}{fhjcommon}
 \RequirePackage{xstring}
 \newcommand{\FHJ}{FH JOANNEUM}
@@ -109,7 +109,7 @@
     image generator applications [e.g., Dall-E], or programming applications [e.g.,
     Github Copilot]) and indicated their usage at the corresponding text passages.
     \item that this original thesis, in its current form, has not been submitted to any
-    other academic institution for the purpose of obtaining an academic degree
+    other academic institution for the purpose of obtaining an academic degree.
 \end{itemize}
 
 I have been informed that my work may be checked for plagiarism and for third-party

Modified: trunk/Master/texmf-dist/tex/latex/fhj-script/fhjpaper.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/fhj-script/fhjpaper.cls	2025-08-10 05:38:33 UTC (rev 76017)
+++ trunk/Master/texmf-dist/tex/latex/fhj-script/fhjpaper.cls	2025-08-10 19:50:06 UTC (rev 76018)
@@ -25,7 +25,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}[2023-11-01]
 \ProvidesClass{fhjpaper}
-    [2025-08-04 v4.0b A class for formatting papers in the FHJ style]
+    [2025-08-10 v4.0c A class for formatting papers in the FHJ style]
 \newcommand{\@ClassName}{fhjpaper}
 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{scrartcl}}
 \ProcessOptions\relax
@@ -36,11 +36,11 @@
 \RequirePackage{scrlayer-scrpage}
 \PassOptionsToPackage{hidelinks}{hyperref}
 \RequirePackage{hyperref}
+\renewcommand*{\title}[1]{\renewcommand*{\@title}{{#1}}}
+\newcommand{\shorttitle}[1]{\newcommand{\@shorttitle}{{#1}}}
 \ofoot{\@shorttitle}
 \ifoot{\FHJProgramLong}
 \setcounter{secnumdepth}{2}
-\renewcommand*{\title}[1]{\renewcommand*{\@title}{{#1}}}
-\newcommand{\shorttitle}[1]{\newcommand{\@shorttitle}{{#1}}}
 
 %%-------------------------------------------------------------------------------------
 %% authors handling
@@ -54,26 +54,29 @@
 \newcommand*\listauthors{}
 \newcommand*\listsuperscripts{}
 \newcommand*\listaffiliations{}
+\newcounter{NumberOfAuthors}
+\newcounter{NumberOfSuperscripts}
 
-\newcommand*{\authorsnames}[2][]{
+\newcommand*{\authorsnames}[2][]{%
   \def\def at multipleauthors{\@multipleauthorsmode} %
   \renewcommand*\listauthors{}
   \renewcommand*\listsuperscripts{}
-  \newcounter{NumberOfAuthors}
-  \newcounter{NumberOfSuperscripts}
+  \setcounter{NumberOfAuthors}{0}
+  \setcounter{NumberOfSuperscripts}{0}
   \forcsvlist{\stepcounter{NumberOfAuthors}\listadd\listauthors}{#2}
   \forcsvlist{\stepcounter{NumberOfSuperscripts}\listadd\listsuperscripts}{#1}
-  }
+}
 
-  \newcommand*{\authorsaffiliations}[1]{
+\newcounter{NumberOfAffiliations}
+\newcommand*{\authorsaffiliations}[1]{%
   \def\def at multipleaffils{\@multipleaffilsmode} %
   \renewcommand*\listaffiliations{}
-  \newcounter{NumberOfAffiliations}
+  \setcounter{NumberOfAffiliations}{0}
   \forcsvlist{\stepcounter{NumberOfAffiliations}\listadd\listaffiliations}{#1}
-  }
+}
 
-\makeatletter
-  \catcode`\|=3
+%% \makeatletter
+%%   \catcode`\|=3
 
 \def\looptwo#1#2{%
     \edef\tmp{\noexpand\xtwo%
@@ -93,8 +96,7 @@
     {\xtwo#2\relax#4\relax}%
   }%
 
-  \catcode`\|=12
-\makeatother
+%%  \catcode`\|=12
 
 \newcommand*{\dotwo}[2]{}
 
@@ -109,29 +111,29 @@
   \renewcommand*{\prelastauthor}{}%
   \renewcommand*{\prelastauthorsep}{}%
   \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print authors without superscripts.
-\renewcommand*{\do}[1]{%
+  \renewcommand*{\do}[1]{%
       \authorsep%
-    \lastauthor%
-    \renewcommand{\lastauthor}{%
-      \renewcommand{\authorsep}{,
-        \renewcommand*{\prelastauthorsep}{,}}%
-      \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
-      ##1%
+      \lastauthor%
+      \renewcommand{\lastauthor}{%
+        \renewcommand{\authorsep}{,
+          \renewcommand*{\prelastauthorsep}{,}}%
+        \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
+        ##1%
+      }%
     }%
-      }%
     \dolistloop{\listauthors}%
   \else
     \renewcommand*{\dotwo}[2]{%
-    \authorsep%
-    \lastauthor%
-    \renewcommand{\lastauthor}{%
-      \renewcommand{\authorsep}{,
-        \renewcommand*{\prelastauthorsep}{,}}%
-      \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
-      ##1\textsuperscript{##2}%
+      \authorsep%
+      \lastauthor%
+      \renewcommand{\lastauthor}{%
+        \renewcommand{\authorsep}{,
+          \renewcommand*{\prelastauthorsep}{,}}%
+        \renewcommand{\prelastauthor}{\prelastauthorsep\ \lastauthorseparator\ }% Terminated commands with \ to preserve following space
+        ##1\textsuperscript{##2}%
+      }%
     }%
-  }%
-  \looptwo\listauthors\listsuperscripts%
+    \looptwo\listauthors\listsuperscripts%
   \fi
   \prelastauthor \lastauthor%
 }
@@ -138,28 +140,31 @@
 
 \newcommand{\displayaffiliations}{%
   \ifnum\value{NumberOfSuperscripts}=0% If no superscripts are specified, print affiliations without superscripts.
-  \renewcommand*{\do}[1]{%
-      ##1\\%
-  }%
+    \renewcommand*{\do}[1]{%
+        ##1\\%
+    }%
   \else
-  \newcounter{AffiliationNumber}
-  \renewcommand*{\do}[1]{%
-      \stepcounter{AffiliationNumber}
-      \textsuperscript{\arabic{AffiliationNumber}}##1\\%
-  }%
+    \newcounter{AffiliationNumber}
+    \renewcommand*{\do}[1]{%
+        \stepcounter{AffiliationNumber}
+        \textsuperscript{\arabic{AffiliationNumber}}##1\\%
+    }%
   \fi
   \dolistloop{\listaffiliations}%
 }
 
-\makeatletter
+\newcommand{\check at title}{%
+  \@ifundefined{@title}{%
+    \ClassWarningNoLine{fhjpaper}{Title not defined \title{Title}}}
+  \@ifundefined{@shorttitle}{%
+    \ClassWarningNoLine{fhjpaper}{Shorttitle not defined \shorttitle{Shorttitle}}}
+}
 
-\def\check at author{%
+\newcommand{\check at author}{%
   \@ifundefined{def at multipleauthors}{%
-    \ClassWarningNoLine{apa7}{Author not defined}\authorsnames{Author}}{}
-  \@ifundefined{@title}{%
-    \ClassWarningNoLine{apa7}{Title not defined}\def\@title{Title}}{}
+    \ClassWarningNoLine{fhjpaper}{Author not defined \authorsnames{Author}}}
   \@ifundefined{def at multipleaffils}{%
-    \ClassWarningNoLine{apa7}{Affiliation not defined}\authorsaffiliations{Affiliation}}{}
+    \ClassWarningNoLine{fhjpaper}{Affiliation not defined \authorsaffiliations{Affiliation}}}
   \@ifundefined{def at multipleauthors}{}{%
    \ifnum\value{NumberOfSuperscripts}=0%
     % do nothing. If no superscripts are specified, print authors and affiliations without superscripts.
@@ -167,7 +172,7 @@
       \ifnum\value{NumberOfAuthors}=\value{NumberOfSuperscripts}%
         % do nothing
       \else
-        \ClassError{apa7}{Number of Authors does not match number of Superscripts}%
+        \ClassError{fhjpaper}{Number of Authors does not match number of Superscripts}%
           {Please provide an equal number of authors and superscripts.}%
   \fi
    \fi
@@ -179,6 +184,7 @@
 \renewcommand*{\@maketitle}{
   \cleardoublepage
   \check at author
+  \check at title
   % title
   \begin{minipage}{\textwidth}\begin{center}
     \fontsize{14}{18}\selectfont



More information about the tex-live-commits mailing list.