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.cls45
1 files changed, 36 insertions, 9 deletions
diff --git a/macros/latex/contrib/asmejour/asmejour.cls b/macros/latex/contrib/asmejour/asmejour.cls
index b91e54f914..13b1c2a560 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.18}
- \def\versiondate{2022/01/10\space}
+ \def\versionno{1.19}
+ \def\versiondate{2022/06/22\space}
%%
%% Author: John H. Lienhard V
%% Department of Mechanical Engineering
@@ -355,8 +355,8 @@
\RequirePackage[utf8]{inputenc}% for backward compatibility with pre-2018 LaTeX distributions
\else
\ifaj@setpdfa\ClassWarningNoLine{asmejour}{pdf-a option requires pdfLaTeX engine. Under LuaLaTeX, use %
- \protec\RequirePackage{pdfmanagement-testphase} %
- \protect\DeclareDocumentMetadata{pdfstandard=A-3b} before \protect\documentclass[..]{asmejour}}\fi%
+ \protect\RequirePackage{pdfmanagement-testphase} %
+ \protect\DocumentMetadata{pdfstandard=A-3b} before \protect\documentclass[..]{asmejour}}\fi%
\ifluatex
\directlua{
if pdf.getminorversion() \string~= 7 then
@@ -377,9 +377,30 @@
\RequirePackage{mathtools}% loads and extends amsmath
\RequirePackage[]{babel}
-\RequirePackage[]{newtxtext}
-\RequirePackage[varl,varqu]{inconsolata}% sans typewriter font; restored varl, varqu 2020/08/10
-\RequirePackage[]{newtxmath}
+\ifpdftex
+ \RequirePackage[helvratio=0.91]{newtxtext}% add this scaling 2022/06/26
+ \RequirePackage[varl,varqu]{inconsolata}% sans typewriter font; restored varl, varqu 2020/08/10
+ \RequirePackage[]{newtxmath}
+\else % use lualatex without font support for other languages (easier set-up and still enables luacode for numerics). Added 2022/06/26.
+ \renewcommand*\rmdefault{ntxtlf} % roman font for math
+ \RequirePackage[T1]{fontenc} % qhv and zi4 are not TU encoded, 2021/12/24
+ \DeclareFontFamily{T1}{\sfdefault}{} % sf for math
+ \DeclareFontShape{T1}{\sfdefault}{m}{n}{<-> s*[0.94] ec-qhvr}{} %% see t1qhv.fd; 0.9-->0.94 2022/01/15
+ \DeclareFontFamily{T1}{zi4}{}% typewriter (Inconsolata)
+ \DeclareFontShape{T1}{zi4}{m}{n}{<-> s*[1.0] t1-zi4r-5}{}% with options varl and var qu
+ \DeclareFontShape{T1}{zi4}{b}{n}{<-> s*[1.0] t1-zi4b-5}{}
+ \DeclareFontShape{T1}{zi4}{bx}{n}{<-> s*[1.0] t1-zi4b-5}{}
+ \RequirePackage[]{newtxmath} % options will be as passed from newtx
+ \RequirePackage[type1text,nofontspec,helvratio=0.91]{newtxtext}% will lose some accented characters this way ... better to use fontspec
+ \@ifpackagelater{newtxtext}{2022/02/28}{\relax}{%
+ \ClassWarning{asmeconf}{Your copy of the newtxtext package is older than 2022/02/28, so you will see error messages about unknown options 'type1text' and 'nofontspec'. You can click through these for now, but I recommend you update your LaTeX installation for best results.}
+ }
+ \providecommand*{\DeclareFontFamilySubstitution}[3]{\relax}% folks with old latex formats will get a different typewriter font...
+ \AtBeginDocument{%
+ \DeclareFontFamilySubstitution{T1}{\ttdefault}{zi4}
+ }
+\fi
+
%% override \textsu if using default superiors
\ifthenelse{\boolean{DefaultSups}}{\let\textsu\textsuperscript}{\relax}
@@ -406,9 +427,15 @@
\emergencystretch 3em
%% TeX Gyre Heros Condensed is qhvc (regular is qhv).
-\newcommand*{\CondSans}{\selectfont\fontfamily{qhvc}\selectfont}
+\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
+\fi
+\newcommand*{\CondSans}{\fontencoding{T1}\selectfont\fontfamily{qhvc}\selectfont}
\renewcommand\huge{\@setfontsize\huge{14}{14}} %... for author names only
-\newcommand*{\CondSansBold}{\renewcommand\bfdefault{b}\selectfont\fontfamily{qhvc}\selectfont\bfseries}
+\newcommand*{\CondSansBold}{\renewcommand\bfdefault{b}\fontencoding{T1}\fontfamily{qhvc}\selectfont\bfseries}
\renewcommand\Huge{\@setfontsize\Huge{26.5}{26.5}} %... for title font only
\RequirePackage{metalogo,hologo}% Access to various LaTeX logos (for use in the documentation)