summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls')
-rw-r--r--Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls35
1 files changed, 22 insertions, 13 deletions
diff --git a/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls b/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls
index 7ed5a6ca179..8a2a2c952fc 100644
--- a/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls
+++ b/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls
@@ -2,11 +2,11 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% This file provides the asmeconf LaTeX class for formatting conference papers according to
-%% ASME conference requirements as represented on ASME's conference web pages in 2021.
+%% ASME conference requirements as represented on ASME's conference web pages in 2022.
%%
%% This file's version and date:
- \def\versionno{1.27}
- \def\versiondate{2021/12/26\space}
+ \def\versionno{1.28}
+ \def\versiondate{2022/02/14\space}
%%
%% Author: John H. Lienhard, V
%% Department of Mechanical Engineering
@@ -28,10 +28,11 @@
%% 11. Support inclusion of passages in languages other than English
%%
%% This class is compatible with either pdfLaTeX or LuaLaTeX. FontSpec may be loaded as an option (to
-%% access language-specific fonts), but the class does not support unicode-math. All packages required
-%% by the class are in TeXLive and CTAN (https://ctan.org/).
+%% access language-specific fonts), but the class does not support unicode-math.
%%
%% Use an up-to-date LaTeX distribution: for pdfLaTeX, TeX Live 2016 or later; for LuaLaTeX, TeX Live 2021 or later.
+%% A complete LaTeX installation is also recommended: asmeconf loads ~30 packages, in addition to LaTeX core packages.
+%% All packages required by the class are in TeXLive and CTAN (https://ctan.org/).
%%
%% Commands for entering conference headers and author names are specific to this class.
%% See asmeconf-template.tex for details.
@@ -46,7 +47,7 @@
%%
%% LICENSE:
%%
-%% Copyright (c) 2021 John H. Lienhard
+%% Copyright (c) 2022 John H. Lienhard
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
%% associated documentation files (the "Software"), to deal in the Software without restriction,
@@ -80,9 +81,9 @@
%%%%%%%%%%%%% Test compatibility of older distributions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}% compare version to date (thanks Ulrike Fischer)
+\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}% compare version to date
-\IfFormatAtLeastTF{2017/01/01}{%
+\IfFormatAtLeastTF{2017/04/15}{%
\ClassInfo{asmeconf}{Your LaTeX format is dated \fmtversion. LaTeX distributions 2020 or later are strongly recommended for best results}
}{%
\ClassError{asmeconf}{Your LaTeX format is dated \fmtversion. Formats dated 2020 or later are recommended for the asmeconf class. Older formats may generate errors}{Please UPDATE your LaTeX distribution to obtain best results. TeX Live is available for download at no charge: \string https://www.tug.org/texlive/. You can try to click past the errors for now.}%
@@ -304,6 +305,11 @@
%
%%% set key [pdfa] to activate pdf/a compliance (default is pdf/A-3u)
\define@key{pdfaopt}{pdf-a}[true]{%
+ \IfFormatAtLeastTF{2018/12/01}{%
+ \ClassInfo{asmeconf}{Your LaTeX format is dated \fmtversion. LaTeX distributions 2019 or later are necessary with the [pdf-a] option}
+ }{%
+ \ClassError{asmeconf}{Your LaTeX format is dated \fmtversion. Formats dated 2018/12/01 or later are necessary for the [pdf-a] option. Older formats may generate errors}{Please UPDATE your LaTeX distribution to obtain best results. TeX Live is available for download at no charge: \string https://www.tug.org/texlive/. Meanwhile, you can remove the [pdf-a] option and try again}%
+ }
\ac@setpdfatrue
\PassOptionsToPackage{pdfa,pdfapart=3,pdfaconformance=u}{hyperref}% note: hyperref takes these options if hyperxmp is loaded
}
@@ -456,8 +462,8 @@
\RequirePackage[utf8]{inputenc} % for backward compatibility with pre-2018 LaTeX distributions
\else
\ifluatex
- \ifac@setpdfa\ClassWarningNoLine{asmejour}{pdf-a option requires pdfLaTeX engine. Under LuaLaTeX, use %
- \protect\DeclareDocumentMetadata{pdfstandard=A-3b} before \protect\begin{document}}%
+ \ifac@setpdfa\ClassWarningNoLine{asmeconf}{pdf-a option requires pdfLaTeX engine. Under LuaLaTeX, use %
+ \protect\DocumentMetadata{pdfstandard=A-3b} before \protect\documentclass[..]{asmeconf}}%
\fi
\directlua{
if pdf.getminorversion() \string~= 7 then
@@ -510,7 +516,7 @@
\renewcommand\rmdefault{ntxtlf} % roman font for math
\RequirePackage[T1]{fontenc} % qhv is not TU encoded, 2021/12/24
\DeclareFontFamily{T1}{\sfdefault}{} % sf for math
- \DeclareFontShape{T1}{\sfdefault}{m}{n}{<-> s*[0.9] ec-qhvr}{} %% see t1qhv.fd
+ \DeclareFontShape{T1}{\sfdefault}{m}{n}{<-> s*[0.94] ec-qhvr}{} %% see t1qhv.fd; 0.9-->0.94 2022/01/15
\RequirePackage[]{newtxmath} % newtxmath still handles mathematics
\RequirePackage[no-math]{fontspec}
\defaultfontfeatures{Ligatures=TeX,}
@@ -532,7 +538,7 @@
BoldFont = *-bold,
BoldItalicFont = *-bolditalic,
Numbers = Lining,
- Scale=0.9,
+ Scale=0.94,% same as for newtx; former value 0.9 too small 2022/01/15
]
\setmonofont{Inconsolatazi4}[% This otf font ships with the LaTeX Inconsolata package (it's in TeX Live)
\MonoNotMono,% match newtxtext if we enable wordspacing
@@ -899,7 +905,7 @@
\babelprovide[import, captions/abstract = Muhtasari, language = Default]{swahili}
%
\else % use lualatex without font support for other languages (easier set-up and still enables luacode for numerics)
- \RequirePackage[]{newtxtext}% will lose some accented characters this way ... better to use fontspec
+ \RequirePackage[nofontspec]{newtxtext}% will lose some accented characters this way ... better to use fontspec
\RequirePackage[varqu,varl]{inconsolata}% sans typewriter font
\RequirePackage[]{newtxmath}
\fi
@@ -1041,6 +1047,9 @@
\newif\if@asme@pdfmanagement% Thanks to Ulrike Fischer
+% New 2021/07/23, don't implement yet
+% \IfPDFManagementActiveTF{\@asme@pdfmanagementtrue}{\@asme@pdfmanagementfalse}
+
\ExplSyntaxOn
\IfFormatAtLeastTF{2020/02/02}{%
\bool_if:nTF