texlive[61421] Master/texmf-dist: asmejour (27dec21)
commits+karl at tug.org
commits+karl at tug.org
Mon Dec 27 22:14:04 CET 2021
Revision: 61421
http://tug.org/svn/texlive?view=revision&revision=61421
Author: karl
Date: 2021-12-27 22:14:04 +0100 (Mon, 27 Dec 2021)
Log Message:
-----------
asmejour (27dec21)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/asmejour/README.md
trunk/Master/texmf-dist/doc/latex/asmejour/asmejour-template.pdf
trunk/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex
trunk/Master/texmf-dist/tex/latex/asmejour/asmejour.cls
Modified: trunk/Master/texmf-dist/doc/latex/asmejour/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/asmejour/README.md 2021-12-27 21:13:51 UTC (rev 61420)
+++ trunk/Master/texmf-dist/doc/latex/asmejour/README.md 2021-12-27 21:14:04 UTC (rev 61421)
@@ -1,7 +1,7 @@
#asmejour: A template for ASME journal papers#
- Version 1.16 dated 2021/12/23.
+ Version 1.17 dated 2021/12/26.
####Overview####
This class provides a template to format preprints in the style of journal papers published by the American Society of Mechanical Engineers.
@@ -64,6 +64,9 @@
---
####Change log####
+v1.17 (2021/12/26):
+ - Add code to warn about obsolete LaTeX installations. TeX Live 2020 or later is recommended for the asmejour package.
+
v1.16 (2021/12/23):
- suppress warnings about unused options when calling mathalfa and/or barcolor
- eliminate use of \\entry{} with a single argument to produce subheadings in nomenclature; use \\EntryHeading{} instead. (**not backward compatible**)
Modified: trunk/Master/texmf-dist/doc/latex/asmejour/asmejour-template.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex 2021-12-27 21:13:51 UTC (rev 61420)
+++ trunk/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex 2021-12-27 21:14:04 UTC (rev 61421)
@@ -3,7 +3,7 @@
%%
%% This file is asmejour-template.tex, a template to format papers in the style of ASME journal papers.
%%
-%% This file is version 1.16 dated 2021/12/23
+%% This file is version 1.17 dated 2021/12/26
%%
%% Author: John H. Lienhard V
%% Department of Mechanical Engineering
@@ -90,7 +90,7 @@
pdftitle={ASME Journal Paper LaTeX Template}, % <=== change to YOUR pdf file title
pdfkeywords={ASME journal paper, LaTeX template, BibTeX style, asmejour class},% <=== change to YOUR pdf keywords
pdfsubject = {Describes the asmejour LaTeX template}, % <=== change to YOUR subject
- pdfurl={https://ctan.org/pkg/asmejour},% may delete
+% pdfurl={https://ctan.org/pkg/asmejour},% may delete
pdflicenseurl={https://ctan.org/pkg/asmejour},% may delete
}
@@ -243,12 +243,12 @@
\begin{figure*}[t]
\begin{subfigure}[t]{0.5\textwidth} % You will get same result using \begin{minipage}[t]{0.5\textwidth}
\vbox{
-\vspace*{1.7em}
+\vspace*{1.7em}%
\centering{
\includegraphics{sample-figure-2a.pdf}
-}
+}%
\vspace*{1.7em}
-}
+}%
\subcaption{\label{fig:interior-region}}
\end{subfigure}%
%%%%%%%% don't leave a break here
Modified: trunk/Master/texmf-dist/tex/latex/asmejour/asmejour.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/asmejour/asmejour.cls 2021-12-27 21:13:51 UTC (rev 61420)
+++ trunk/Master/texmf-dist/tex/latex/asmejour/asmejour.cls 2021-12-27 21:14:04 UTC (rev 61421)
@@ -6,8 +6,8 @@
%%
%%
%% This file's version and date are:
- \def\versionno{1.16}
- \def\versiondate{2021/12/23\space}
+ \def\versionno{1.17}
+ \def\versiondate{2021/12/26\space}
%%
%% Author: John H. Lienhard V
%% Department of Mechanical Engineering
@@ -68,23 +68,51 @@
\LoadClass[twoside,9pt,twocolumn]{extarticle}
\ifdefined\NewDocumentCommand\else
- \RequirePackage{xparse}
+ \RequirePackage{xparse}[2020/02/25]
\fi
-\RequirePackage{etoolbox}% dropped xpatch 2020/02/28
+\RequirePackage{etoolbox}
\RequirePackage{ifthen}
-\RequirePackage{iftex}% check whether pdftex or another engine is used
-\providecommand\IfFormatAtLeastTF{\@ifl at t@r\fmtversion}% backward compatibility (Thanks Ulrike Fischer)
+%%%%%%%%%%%%% Test compatibility of older distributions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\providecommand\IfFormatAtLeastTF{\@ifl at t@r\fmtversion}% backward compatibility (thanks Ulrike Fischer)
+
+\IfFormatAtLeastTF{2020/02/25}{%
+ \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 asmejour class. Older formats may generate errors or fail entirely}{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, but your abstract will probably not compile properly.)}%
+}
+
\DeclareDocumentCommand\LogNote{m}{%
\IfFormatAtLeastTF{2021/11/15}{%
- \ClassNoteNoLine{asmejour}{#1}% New with this recent format
+ \ClassNoteNoLine{asmejour}{#1}% New with the recent LaTeX format
}{%
\ClassWarningNoLine{asmejour}{#1}%
}
}
+%% provide iftex command \ifpdftex for those still running old distributions
+\IfFormatAtLeastTF{2019/11/07}{%
+ \RequirePackage{iftex}% check whether pdftex or another engine is used
+ }{%
+ \LogNote{The asmeconf class requires the missing package iftex---trying a work-around.}
+ % Code copied from iftex package written by the LaTeX3 Project (used under LPPL).
+ % \csname and \let construct useful for hiding \ifzzz tokens from outer level \if tests.
+ \def\IFTEX at let#1#2{%
+ \expandafter\let\csname if#1\expandafter\endcsname
+ \csname if#2\endcsname}
+ % pdftex (including in dvi mode)
+ \begingroup\expandafter\expandafter\expandafter\endgroup
+ \expandafter\ifx\csname pdftexversion\endcsname\relax
+ \IFTEX at let{pdftex}{false}
+ \else
+ \IFTEX at let{pdftex}{true}
+ \fi
+ \IFTEX at let{PDFTeX}{pdftex}
+}
+
+
%%%%%%%%%%%%%% Options for the class %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{kvoptions}% this package calls kvsetkeys
@@ -327,7 +355,8 @@
\RequirePackage[utf8]{inputenc}% for backward compatibility with pre-2018 LaTeX distributions
\else
\ifaj at setpdfa\ClassWarningNoLine{asmejour}{pdf-a option requires pdfLaTeX engine. Under LuaLaTeX, use %
- \protect\DeclareDocumentMetadata{pdfstandard=A-3b} before \protect\begin{document}}\fi%
+ \protec\RequirePackage{pdfmanagement-testphase} %
+ \protect\DeclareDocumentMetadata{pdfstandard=A-3b} before \protect\documentclass[..]{asmejour}}\fi%
\ifluatex
\directlua{
if pdf.getminorversion() \string~= 7 then
@@ -773,6 +802,8 @@
\renewcommand{\doitext}{doi:~} % change the default, {doi:}, to this for ASME specification
\RequirePackage{bookmark} % improves handling of pdf bookmarks
+\providecommand*{\toclevel at subfigure}{1}% <== to address unknown bookmark level of subfigure. 2021/12/24
+
\providecommand\hrefurl[2]{\href{#1}{#2}}% to address certain issues around URL recognition with new pdf management code, 2021/12/22
%% This alias is also incorporated into asmejour.bst
More information about the tex-live-commits
mailing list.