diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/heria/heria.cls')
-rw-r--r-- | Master/texmf-dist/tex/latex/heria/heria.cls | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/heria/heria.cls b/Master/texmf-dist/tex/latex/heria/heria.cls index ed545f9b84e..9a52b811408 100644 --- a/Master/texmf-dist/tex/latex/heria/heria.cls +++ b/Master/texmf-dist/tex/latex/heria/heria.cls @@ -8,11 +8,11 @@ %% %% This is a generated file. %% -%% Copyright 2023 Tristan Miller +%% Copyright 2023, 2024 Tristan Miller %% Copyright 2016 John Kormylo %% %% This work may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 +%% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% https://www.latex-project.org/lppl.txt @@ -21,7 +21,7 @@ %% \NeedsTeXFormat{LaTeX2e} \ProvidesClass{heria} -[2023-12-04 v3.2.1.0 Class for Horizon Europe (R)IA proposals] +[2024-08-14 v3.4.1.1 Class for Horizon Europe (R)IA proposals] \LoadClass[11pt,a4paper]{article} \RequirePackage[T1]{fontenc} % T1 font encoding \RequirePackage[left=15mm, @@ -60,6 +60,18 @@ \definecolor{footergrey}{HTML}{D8D8D8} \definecolor{tablegrey}{HTML}{F2F2F2} \definecolor{summaryblue}{HTML}{00B0F0} +\gdef\@templateversion{3.4} % Default version +\def\@supportedtemplateversions{3.2,3.3,3.4} % Supported versions +\ExplSyntaxOn +\NewDocumentCommand{\templateversion}{m}{% + \clist_if_in:NnTF {\@supportedtemplateversions} {#1} + {\gdef\@templateversion{#1}} + {\PackageError{heria}% + {unsupported~template~version}% + {Use~one~of~\@supportedtemplateversions} + }% +} +\ExplSyntaxOff \newcommand{\callname}[1]{\gdef\@callname{#1}}% \newcommand{\callidentifier}[1]{\gdef\@callidentifier{#1}}% \newcommand{\calltopic}[1]{\gdef\@calltopic{#1}}% @@ -718,7 +730,6 @@ }{% \end{tcolorbox}% } -\RequirePackage{everypage} \RequirePackage{environ} \newcounter{abspage}% \thepage not reliab \newcommand{\newSFPage}[1]% #1 = \theabspage @@ -733,15 +744,17 @@ \rotatebox{90}{\parbox[c][\textwidth][c]{\textheight}{\BODY}}% \fi \end{figure}} -\AddEverypageHook{% check if sideways figure on this page - \ifdim\textwidth=\textheight - \stepcounter{abspage}% already in landscape - \else - \@ifundefined{SFPage@\theabspage}{}{\global\pdfpageattr{/Rotate 0}}% - \stepcounter{abspage}% - \@ifundefined{SFPage@\theabspage}{}% - {\global\pdfpageattr{/Rotate 90}}% - \fi} +\AddToHook{shipout/background}{% check if sideways figure on this page + \put(1in,-1in){% + \ifdim\textwidth=\textheight + \stepcounter{abspage}% already in landscape + \else + \@ifundefined{SFPage@\theabspage}{}{\global\pdfpageattr{/Rotate 0}}% + \stepcounter{abspage}% + \@ifundefined{SFPage@\theabspage}{}% + {\global\pdfpageattr{/Rotate 90}}% + \fi}% + } \RequirePackage{newtxtext} % Use Times for main text \RequirePackage{newtxmath} % Use Times for math \renewcommand*\ttdefault{lmvtt} % Latin Modern Typewriter Proportional |