diff --git a/CHANGELOG.md b/CHANGELOG.md index 46c1c568f6f1ceb27e46909d58fb10ae36317645..491e65e22639a11137cffe131550205cef9eafb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. +## [3.2] + +### Fixed + +- missing comma caused \opt{1} to not work (#18) + +### Changed + +- moved all localization commands into one place + ## [3.1] ### Fixed diff --git a/src/HsH-article.cls b/src/HsH-article.cls index 59d25ab4ae36e9afc76fd5de01cf00c20009133b..dcbc0d87dc3daaf9cc3f9aed17fab8e7f455ec4d 100644 --- a/src/HsH-article.cls +++ b/src/HsH-article.cls @@ -4,7 +4,7 @@ %% %% The original source files were: %% -%% HsH-classes.dtx (with options: `article') +%% HsH-classes.dtx (with options: `article,localisation') %% %% Copyright (C) 2024 by Jan Wille <mail@janiwlle.de> %% @@ -195,7 +195,7 @@ \HsH@Options@DeclareAlias{ngerman}{language=ngerman} \def\HsH@opt@faculty{1} \FamilyNumericalKey{HsH}{faculty}{HsH@opt@faculty}{% - {0}{1}, {none}{1}, {false}{1}, {off}{1}% + {0}{1}, {none}{1}, {false}{1}, {off}{1},% {1}{2}, {f1}{2},% {2}{3}, {f2}{3},% {3}{4}, {f3}{4},% @@ -367,26 +367,6 @@ \ifnum\count@>\@ne\global\singleauthorfalse\else\global\singleauthortrue\fi \endgroup } -\newcommand{\decofauthname}{Declaration of Authorship} -\newcaptionname{english}\decofauthname{Declaration of Authorship} -\newcaptionname{german,ngerman}\decofauthname{Selbstst\"andigkeitserkl\"arung} -\newcommand{\decofauthtext}{Language not supported!} -\newcaptionname{english}\decofauthtext{% - \ifsingleauthor{I}\else{We}\fi\space hereby certify that the work \ifsingleauthor{I}\else{we}\fi\space - \ifsingleauthor am\else are\fi\space submitting is entirely of \ifsingleauthor{my}\else{our}\fi own - making except where otherwise indicated. \ifsingleauthor{I}\else{We}\fi\space - \ifsingleauthor{am}\else{are}\fi\space aware of regulations concerning plagiarism, including - disciplinary actions that may result from it. Any use of the works of any other author, in any form, - is properly acknowledged at their point of use. -} -\newcaptionname{german,ngerman}\decofauthtext{% - Hiermit best{\"a}tige\ifsingleauthor\else{n}\fi\space \ifsingleauthor ich\else wir\fi, dass die - folgende Arbeit eigenst{\"a}ndig von \ifsingleauthor{mir}\else{uns}\fi\space allein erstellt und - unter Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie dem Arbeitsmaterial - unter Angabe aller verwendeten Quellen erarbeitet wurde. Die Regelungen und Konsequenzen eines - Plagiats, inklusive disziplinarischer Ma{\ss}nahmen, sind \ifsingleauthor{mir}\else{uns}\fi\space - bewusst. Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmenals solche kenntlich gemacht. -} \def\declarationAuthorship{% \ClassWarning{\HsHClassName}{% Command \string\declarationAuthorship\space is deprecate.\MessageBreak @@ -424,9 +404,6 @@ \renewcommand{\labelitemii}{\raisebox{.3ex}{\scalebox{0.7}{$\circ$}}} \renewcommand{\labelitemiii}{\raisebox{.1ex}{-}} \renewcommand{\labelitemiv}{\raisebox{-.1ex}{\scalebox{1.3}{$\cdot$}}} -\defcaptionname{german,ngerman}\abstractname{Abstract} -\newcaptionname{english}\keywordsname{Keywords} -\newcaptionname{german,ngerman}\keywordsname{Schl{\"u}sselw{\"o}rter} \renewenvironment{abstract}{ \quotation \setparsizes{\z@}{\z@}{.25\linewidth \@plus 1fil}\selectfont @@ -477,15 +454,6 @@ \ofoot*{\pagemark} \pagestyle{HsHheadings} \automark{section} -\newcommand{\professortext}{Professor} -\newcommand{\firstexaminertext}{First examiner} -\newcommand{\secondexaminertext}{Second examiner} -\newcaptionname{english}\professortext{Professor} -\newcaptionname{english}\firstexaminertext{First examiner} -\newcaptionname{english}\secondexaminertext{Second examiner} -\newcaptionname{german,ngerman}\professortext{Professor(in)/Lehrbeauftragte(r)} -\newcaptionname{german,ngerman}\firstexaminertext{Erstpr{\"u}fer(in)} -\newcaptionname{german,ngerman}\secondexaminertext{Zweitpr{\"u}fer(in)} \newtoks\@tabtoks \newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}} \newcommand\eaddtabtoks[1]{\edef\mytmp{#1}\expandafter\addtabtoks\expandafter{\mytmp}} @@ -594,9 +562,9 @@ \if\@param l\begin{tabular}{@{}l l}\fi \if\@param c\begin{tabular}{l l}\fi \if\@param r\begin{tabular}{r r@{}}\fi - \if\@professor\@empty\else\textbf{\professortext:}&\@professor\\\fi - \if\@firstexaminer\@empty\else\textbf{\firstexaminertext:}&\@firstexaminer\\\fi - \if\@secondexaminer\@empty\else\textbf{\secondexaminertext:}&\@secondexaminer\\\fi + \if\@professor\@empty\else\textbf{\professorname:}&\@professor\\\fi + \if\@firstexaminer\@empty\else\textbf{\firstexaminername:}&\@firstexaminer\\\fi + \if\@secondexaminer\@empty\else\textbf{\secondexaminername:}&\@secondexaminer\\\fi \end{tabular} } \ifx\@dedication\@empty\else @@ -644,6 +612,37 @@ \fi \global\let\and\relax } +\newcaptionname{english}\professorname{Professor} +\newcaptionname{german,ngerman}\professorname{Professor(in)/Lehrbeauftragte(r)} +\newcaptionname{english}\firstexaminername{First examiner} +\newcaptionname{german,ngerman}\firstexaminername{Erstpr{\"u}fer(in)} +\newcaptionname{english}\secondexaminername{Second examiner} +\newcaptionname{german,ngerman}\secondexaminername{Zweitpr{\"u}fer(in)} +\newcaptionname{english}\decofauthname{Declaration of Authorship} +\newcaptionname{german,ngerman}\decofauthname{Selbstst{\"a}ndigkeitserkl{\"a}rung} +\newcaptionname{english}\decofauthtext{% + \ifsingleauthor{I}\else{We}\fi\space hereby certify that the work + \ifsingleauthor{I}\else{we}\fi\space \ifsingleauthor am\else are\fi + submitting is entirely of \ifsingleauthor{my}\else{our}\fi own making + except where otherwise indicated. \ifsingleauthor{I}\else{We}\fi + \ifsingleauthor{am}\else{are}\fi\space aware of regulations concerning + plagiarism, including disciplinary actions that may result from it. Any + use of the works of any other author, in any form, is properly + acknowledged at their point of use. +} +\newcaptionname{german,ngerman}\decofauthtext{% + Hiermit best{\"a}tige\ifsingleauthor\else{n}\fi + \ifsingleauthor{ich}\else{wir}\fi, dass die folgende Arbeit eigenst{\"a}ndig + von \ifsingleauthor{mir}\else{uns}\fi\space allein erstellt und unter + Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie + dem Arbeitsmaterial unter Angabe aller verwendeten Quellen erarbeitet wurde. + Die Regelungen und Konsequenzen eines Plagiats, inklusive disziplinarischer + Ma{\ss}nahmen, sind \ifsingleauthor{mir}\else{uns}\fi\space bewusst. + Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmen als + solche kenntlich gemacht. +} +\newcaptionname{english}\keywordsname{Keywords} +\newcaptionname{german,ngerman}\keywordsname{Schl{\"u}sselw{\"o}rter} \endinput %% %% End of file `HsH-article.cls'. diff --git a/src/HsH-classes.cfg b/src/HsH-classes.cfg index 26e505cc615580067e8efddab638b6602ecd8d63..90d9e5fe30e0db3ea7463b3dd691e9a2d88f0b02 100644 --- a/src/HsH-classes.cfg +++ b/src/HsH-classes.cfg @@ -1,3 +1,5 @@ +%% opinionated settings: +\defcaptionname{german,ngerman}\abstractname{Abstract} %% configs for optional packages: \@ifpackageloaded{biblatex}{ \ExecuteBibliographyOptions{ diff --git a/src/HsH-classes.pdf b/src/HsH-classes.pdf index d8658378e80ede5cd72ede4124c8a027071c9848..e838e9f960a402c12a0ecf35b8f40292a8cbe3c9 100644 --- a/src/HsH-classes.pdf +++ b/src/HsH-classes.pdf @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:f8ded54f026e76b9a601a3e11c36b02ade14144ceba8415fe2bcaa6494fcd2d7 -size 315327 +oid sha256:fb61ed5a06123e4c93a0d6e2cc52c0db4cb3bacbf4ac7dcd32ec0f789a613b68 +size 312304 diff --git a/src/HsH-report.cls b/src/HsH-report.cls index 9582d332d5446bf6a717480b7c1e82d5e175e757..9e54599942512ccd966c6d8d1bc0d80f14830273 100644 --- a/src/HsH-report.cls +++ b/src/HsH-report.cls @@ -4,7 +4,7 @@ %% %% The original source files were: %% -%% HsH-classes.dtx (with options: `report') +%% HsH-classes.dtx (with options: `report,localisation') %% %% Copyright (C) 2024 by Jan Wille <mail@janiwlle.de> %% @@ -195,7 +195,7 @@ \HsH@Options@DeclareAlias{ngerman}{language=ngerman} \def\HsH@opt@faculty{1} \FamilyNumericalKey{HsH}{faculty}{HsH@opt@faculty}{% - {0}{1}, {none}{1}, {false}{1}, {off}{1}% + {0}{1}, {none}{1}, {false}{1}, {off}{1},% {1}{2}, {f1}{2},% {2}{3}, {f2}{3},% {3}{4}, {f3}{4},% @@ -380,26 +380,6 @@ \ifnum\count@>\@ne\global\singleauthorfalse\else\global\singleauthortrue\fi \endgroup } -\newcommand{\decofauthname}{Declaration of Authorship} -\newcaptionname{english}\decofauthname{Declaration of Authorship} -\newcaptionname{german,ngerman}\decofauthname{Selbstst\"andigkeitserkl\"arung} -\newcommand{\decofauthtext}{Language not supported!} -\newcaptionname{english}\decofauthtext{% - \ifsingleauthor{I}\else{We}\fi\space hereby certify that the work \ifsingleauthor{I}\else{we}\fi\space - \ifsingleauthor am\else are\fi\space submitting is entirely of \ifsingleauthor{my}\else{our}\fi own - making except where otherwise indicated. \ifsingleauthor{I}\else{We}\fi\space - \ifsingleauthor{am}\else{are}\fi\space aware of regulations concerning plagiarism, including - disciplinary actions that may result from it. Any use of the works of any other author, in any form, - is properly acknowledged at their point of use. -} -\newcaptionname{german,ngerman}\decofauthtext{% - Hiermit best{\"a}tige\ifsingleauthor\else{n}\fi\space \ifsingleauthor ich\else wir\fi, dass die - folgende Arbeit eigenst{\"a}ndig von \ifsingleauthor{mir}\else{uns}\fi\space allein erstellt und - unter Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie dem Arbeitsmaterial - unter Angabe aller verwendeten Quellen erarbeitet wurde. Die Regelungen und Konsequenzen eines - Plagiats, inklusive disziplinarischer Ma{\ss}nahmen, sind \ifsingleauthor{mir}\else{uns}\fi\space - bewusst. Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmenals solche kenntlich gemacht. -} \def\declarationAuthorship{% \ClassWarning{\HsHClassName}{% Command \string\declarationAuthorship\space is deprecate.\MessageBreak @@ -437,9 +417,6 @@ \renewcommand{\labelitemii}{\raisebox{.3ex}{\scalebox{0.7}{$\circ$}}} \renewcommand{\labelitemiii}{\raisebox{.1ex}{-}} \renewcommand{\labelitemiv}{\raisebox{-.1ex}{\scalebox{1.3}{$\cdot$}}} -\defcaptionname{german,ngerman}\abstractname{Abstract} -\newcaptionname{english}\keywordsname{Keywords} -\newcaptionname{german,ngerman}\keywordsname{Schl{\"u}sselw{\"o}rter} \renewenvironment{abstract}{ \quotation \setparsizes{\z@}{\z@}{.25\linewidth \@plus 1fil}\selectfont @@ -491,15 +468,6 @@ \pagestyle{HsHheadings} \automark{chapter} \renewcommand*{\chapterpagestyle}{HsHheadings} -\newcommand{\professortext}{Professor} -\newcommand{\firstexaminertext}{First examiner} -\newcommand{\secondexaminertext}{Second examiner} -\newcaptionname{english}\professortext{Professor} -\newcaptionname{english}\firstexaminertext{First examiner} -\newcaptionname{english}\secondexaminertext{Second examiner} -\newcaptionname{german,ngerman}\professortext{Professor(in)/Lehrbeauftragte(r)} -\newcaptionname{german,ngerman}\firstexaminertext{Erstpr{\"u}fer(in)} -\newcaptionname{german,ngerman}\secondexaminertext{Zweitpr{\"u}fer(in)} \newtoks\@tabtoks \newcommand\addtabtoks[1]{\global\@tabtoks\expandafter{\the\@tabtoks#1}} \newcommand\eaddtabtoks[1]{\edef\mytmp{#1}\expandafter\addtabtoks\expandafter{\mytmp}} @@ -624,9 +592,9 @@ \if\@param l\begin{tabular}{@{}l l}\fi \if\@param c\begin{tabular}{l l}\fi \if\@param r\begin{tabular}{r r@{}}\fi - \if\@professor\@empty\else\textbf{\professortext:}&\@professor\\\fi - \if\@firstexaminer\@empty\else\textbf{\firstexaminertext:}&\@firstexaminer\\\fi - \if\@secondexaminer\@empty\else\textbf{\secondexaminertext:}&\@secondexaminer\\\fi + \if\@professor\@empty\else\textbf{\professorname:}&\@professor\\\fi + \if\@firstexaminer\@empty\else\textbf{\firstexaminername:}&\@firstexaminer\\\fi + \if\@secondexaminer\@empty\else\textbf{\secondexaminername:}&\@secondexaminer\\\fi \end{tabular} } \par @@ -714,6 +682,37 @@ \fi \global\let\and\relax } +\newcaptionname{english}\professorname{Professor} +\newcaptionname{german,ngerman}\professorname{Professor(in)/Lehrbeauftragte(r)} +\newcaptionname{english}\firstexaminername{First examiner} +\newcaptionname{german,ngerman}\firstexaminername{Erstpr{\"u}fer(in)} +\newcaptionname{english}\secondexaminername{Second examiner} +\newcaptionname{german,ngerman}\secondexaminername{Zweitpr{\"u}fer(in)} +\newcaptionname{english}\decofauthname{Declaration of Authorship} +\newcaptionname{german,ngerman}\decofauthname{Selbstst{\"a}ndigkeitserkl{\"a}rung} +\newcaptionname{english}\decofauthtext{% + \ifsingleauthor{I}\else{We}\fi\space hereby certify that the work + \ifsingleauthor{I}\else{we}\fi\space \ifsingleauthor am\else are\fi + submitting is entirely of \ifsingleauthor{my}\else{our}\fi own making + except where otherwise indicated. \ifsingleauthor{I}\else{We}\fi + \ifsingleauthor{am}\else{are}\fi\space aware of regulations concerning + plagiarism, including disciplinary actions that may result from it. Any + use of the works of any other author, in any form, is properly + acknowledged at their point of use. +} +\newcaptionname{german,ngerman}\decofauthtext{% + Hiermit best{\"a}tige\ifsingleauthor\else{n}\fi + \ifsingleauthor{ich}\else{wir}\fi, dass die folgende Arbeit eigenst{\"a}ndig + von \ifsingleauthor{mir}\else{uns}\fi\space allein erstellt und unter + Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie + dem Arbeitsmaterial unter Angabe aller verwendeten Quellen erarbeitet wurde. + Die Regelungen und Konsequenzen eines Plagiats, inklusive disziplinarischer + Ma{\ss}nahmen, sind \ifsingleauthor{mir}\else{uns}\fi\space bewusst. + Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmen als + solche kenntlich gemacht. +} +\newcaptionname{english}\keywordsname{Keywords} +\newcaptionname{german,ngerman}\keywordsname{Schl{\"u}sselw{\"o}rter} \endinput %% %% End of file `HsH-report.cls'. diff --git a/src/HsH-standalone.cls b/src/HsH-standalone.cls index f23662b6d82fa2aa57bcaf9b5ec2f0f2eaf4bcfd..d7b88ee86bafaec4e360facd60c3322ba1ba710e 100644 --- a/src/HsH-standalone.cls +++ b/src/HsH-standalone.cls @@ -4,7 +4,7 @@ %% %% The original source files were: %% -%% HsH-classes.dtx (with options: `standalone') +%% HsH-classes.dtx (with options: `standalone,localisation') %% %% Copyright (C) 2024 by Jan Wille <mail@janiwlle.de> %% @@ -66,7 +66,7 @@ \HsH@Options@DeclareAlias{ngerman}{language=ngerman} \def\HsH@opt@faculty{1} \FamilyNumericalKey{HsH}{faculty}{HsH@opt@faculty}{% - {0}{1}, {none}{1}, {false}{1}, {off}{1}% + {0}{1}, {none}{1}, {false}{1}, {off}{1},% {1}{2}, {f1}{2},% {2}{3}, {f2}{3},% {3}{4}, {f3}{4},% @@ -203,26 +203,6 @@ \ifnum\count@>\@ne\global\singleauthorfalse\else\global\singleauthortrue\fi \endgroup } -\newcommand{\decofauthname}{Declaration of Authorship} -\newcaptionname{english}\decofauthname{Declaration of Authorship} -\newcaptionname{german,ngerman}\decofauthname{Selbstst\"andigkeitserkl\"arung} -\newcommand{\decofauthtext}{Language not supported!} -\newcaptionname{english}\decofauthtext{% - \ifsingleauthor{I}\else{We}\fi\space hereby certify that the work \ifsingleauthor{I}\else{we}\fi\space - \ifsingleauthor am\else are\fi\space submitting is entirely of \ifsingleauthor{my}\else{our}\fi own - making except where otherwise indicated. \ifsingleauthor{I}\else{We}\fi\space - \ifsingleauthor{am}\else{are}\fi\space aware of regulations concerning plagiarism, including - disciplinary actions that may result from it. Any use of the works of any other author, in any form, - is properly acknowledged at their point of use. -} -\newcaptionname{german,ngerman}\decofauthtext{% - Hiermit best{\"a}tige\ifsingleauthor\else{n}\fi\space \ifsingleauthor ich\else wir\fi, dass die - folgende Arbeit eigenst{\"a}ndig von \ifsingleauthor{mir}\else{uns}\fi\space allein erstellt und - unter Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie dem Arbeitsmaterial - unter Angabe aller verwendeten Quellen erarbeitet wurde. Die Regelungen und Konsequenzen eines - Plagiats, inklusive disziplinarischer Ma{\ss}nahmen, sind \ifsingleauthor{mir}\else{uns}\fi\space - bewusst. Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmenals solche kenntlich gemacht. -} \def\declarationAuthorship{% \ClassWarning{\HsHClassName}{% Command \string\declarationAuthorship\space is deprecate.\MessageBreak @@ -240,9 +220,6 @@ \renewcommand{\labelitemii}{\raisebox{.3ex}{\scalebox{0.7}{$\circ$}}} \renewcommand{\labelitemiii}{\raisebox{.1ex}{-}} \renewcommand{\labelitemiv}{\raisebox{-.1ex}{\scalebox{1.3}{$\cdot$}}} -\defcaptionname{german,ngerman}\abstractname{Abstract} -\newcaptionname{english}\keywordsname{Keywords} -\newcaptionname{german,ngerman}\keywordsname{Schl{\"u}sselw{\"o}rter} \renewenvironment{abstract}{ \quotation \setparsizes{\z@}{\z@}{.25\linewidth \@plus 1fil}\selectfont @@ -257,6 +234,37 @@ \upsubscripts \raggedbottom \let\layercontentsmeasure\relax +\newcaptionname{english}\professorname{Professor} +\newcaptionname{german,ngerman}\professorname{Professor(in)/Lehrbeauftragte(r)} +\newcaptionname{english}\firstexaminername{First examiner} +\newcaptionname{german,ngerman}\firstexaminername{Erstpr{\"u}fer(in)} +\newcaptionname{english}\secondexaminername{Second examiner} +\newcaptionname{german,ngerman}\secondexaminername{Zweitpr{\"u}fer(in)} +\newcaptionname{english}\decofauthname{Declaration of Authorship} +\newcaptionname{german,ngerman}\decofauthname{Selbstst{\"a}ndigkeitserkl{\"a}rung} +\newcaptionname{english}\decofauthtext{% + \ifsingleauthor{I}\else{We}\fi\space hereby certify that the work + \ifsingleauthor{I}\else{we}\fi\space \ifsingleauthor am\else are\fi + submitting is entirely of \ifsingleauthor{my}\else{our}\fi own making + except where otherwise indicated. \ifsingleauthor{I}\else{We}\fi + \ifsingleauthor{am}\else{are}\fi\space aware of regulations concerning + plagiarism, including disciplinary actions that may result from it. Any + use of the works of any other author, in any form, is properly + acknowledged at their point of use. +} +\newcaptionname{german,ngerman}\decofauthtext{% + Hiermit best{\"a}tige\ifsingleauthor\else{n}\fi + \ifsingleauthor{ich}\else{wir}\fi, dass die folgende Arbeit eigenst{\"a}ndig + von \ifsingleauthor{mir}\else{uns}\fi\space allein erstellt und unter + Ber{\"u}cksichtigung der zur Verf{\"u}gung gestellten Aufgabenstellung sowie + dem Arbeitsmaterial unter Angabe aller verwendeten Quellen erarbeitet wurde. + Die Regelungen und Konsequenzen eines Plagiats, inklusive disziplinarischer + Ma{\ss}nahmen, sind \ifsingleauthor{mir}\else{uns}\fi\space bewusst. + Insbesondere wurden alle Zitate und gedanklichen {\"U}bernahmen als + solche kenntlich gemacht. +} +\newcaptionname{english}\keywordsname{Keywords} +\newcaptionname{german,ngerman}\keywordsname{Schl{\"u}sselw{\"o}rter} \endinput %% %% End of file `HsH-standalone.cls'.