summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/asmejour/asmejour.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/asmejour/asmejour.cls')
-rw-r--r--macros/latex/contrib/asmejour/asmejour.cls32
1 files changed, 28 insertions, 4 deletions
diff --git a/macros/latex/contrib/asmejour/asmejour.cls b/macros/latex/contrib/asmejour/asmejour.cls
index 13b1c2a560..283ab8a382 100644
--- a/macros/latex/contrib/asmejour/asmejour.cls
+++ b/macros/latex/contrib/asmejour/asmejour.cls
@@ -6,8 +6,8 @@
%%
%%
%% This file's version and date are:
- \def\versionno{1.19}
- \def\versiondate{2022/06/22\space}
+ \def\versionno{1.20}
+ \def\versiondate{2022/12/30\space}
%%
%% Author: John H. Lienhard V
%% Department of Mechanical Engineering
@@ -430,8 +430,8 @@
\ifluatex % 2022/05/08
\RequirePackage[T1]{fontenc} % qhvc is not TU encoded
\DeclareFontFamily{T1}{qhvc}{}
- \DeclareFontShape{T1}{qhvc}{m}{n}{<-> s*[0.94] ec-qhvcr}{} %% see t1qhvc.fd; 0.9-->0.94 2022/01/15
- \DeclareFontShape{T1}{qhvc}{b}{n}{<-> s*[0.94] ec-qhvcb}{} %% see t1qhvc.fd; 0.9-->0.94 2022/01/15
+ \DeclareFontShape{T1}{qhvc}{m}{n}{<-> s*[0.91] ec-qhvcr}{} %% see t1qhvc.fd; 0.9-->0.94 2022/01/15; 0.94-->0.91 2022/06/26
+ \DeclareFontShape{T1}{qhvc}{b}{n}{<-> s*[0.91] ec-qhvcb}{} %% see t1qhvc.fd; 0.9-->0.94 2022/01/15; 0.94-->0.91 2022/06/26
\fi
\newcommand*{\CondSans}{\fontencoding{T1}\selectfont\fontfamily{qhvc}\selectfont}
\renewcommand\huge{\@setfontsize\huge{14}{14}} %... for author names only
@@ -560,6 +560,19 @@
%% Ensure that the current font is used for equation tags, not \normalfont as set by amsmath
\def\maketag@@@#1{\hbox{\m@th#1}}
+%% Italicize alph part of subequation numbers. 30 Dec 2022.
+\RenewDocumentEnvironment{subequations}{}{%
+ \refstepcounter{equation}%
+ \protected@edef\theparentequation{\theequation}%
+ \setcounter{parentequation}{\value{equation}}%
+ \setcounter{equation}{0}%
+ \def\theequation{\theparentequation{\itshape\alph{equation}}}%
+ \ignorespaces
+}{%
+ \setcounter{equation}{\value{parentequation}}%
+ \ignorespacesafterend
+}
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ifaj@lineno
@@ -806,6 +819,17 @@
\RequirePackage{hyperxmp} %% to fix transfer of metadata to Acrobat pdf
+% Patch bug in hyperxmp, unless a more recent version is used.
+\@ifpackagelater{hyperxmp}{2022/07/07}{% 2020/11/22}{%
+ \relax
+ }{%
+ \newcount\hypxmp@tempcnt
+ \define@key{Hyp}{pdfapart}{%
+ \afterassignment\hyxmp@no@bad@parts\hypxmp@tempcnt=0#1\relax
+ \hyxmp@pdfstringdef\@pdfapart{\the\hypxmp@tempcnt}%
+ }
+}
+
\RequirePackage[psdextra]{hyperref} % recent kernel transition suggests providing most hyperref options via \hypersetup,
% but setting psdextra here (for additional math support in bookmarks) 2021/12/23
\hypersetup{%