summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/asmeconf/asmeconf.cls
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/asmeconf/asmeconf.cls')
-rw-r--r--macros/latex/contrib/asmeconf/asmeconf.cls23
1 files changed, 11 insertions, 12 deletions
diff --git a/macros/latex/contrib/asmeconf/asmeconf.cls b/macros/latex/contrib/asmeconf/asmeconf.cls
index 0b151ded5f..de5fc86ca2 100644
--- a/macros/latex/contrib/asmeconf/asmeconf.cls
+++ b/macros/latex/contrib/asmeconf/asmeconf.cls
@@ -1,19 +1,19 @@
% !TEX encoding = UTF-8 Unicode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
-%% This file provides the asmeconf class for formatting conference papers according to
+%% 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 2020.
%%
%% This file's version and date:
- \def\versionno{1.24}
- \def\versiondate{2021/01/26\space}
+ \def\versionno{1.26}
+ \def\versiondate{2021/02/20\space}
%%
%% Author: John H. Lienhard, V
%% Department of Mechanical Engineering
%% Massachusetts Institute of Technology
%% Cambridge, MA 02139-4307 USA
%%
-%% This class was designed to approach the following aims:
+%% This LaTeX template was designed to approach the following aims:
%%
%% 1. Match ASME's current layout and font specifications
%% 2. With amseconf.bst, match ASME's reference formats and support DOI & URL fields
@@ -64,7 +64,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{asmeconf}[\versiondate ASME Conference Paper Format (JHL)]
+\ProvidesClass{asmeconf}[\versiondate ASME Conference Paper LaTeX Template (JHL)]
\LoadClass[twoside,twocolumn,10pt]{article}
% Even/odd page layout is not used in ASME's specs, although the papers are printed in two-sided format.
@@ -159,7 +159,7 @@
\ProcessKeyvalOptions{asmeconf}
-%% % if main language was not chosen explicitly, default to English
+%% if main language was not chosen explicitly, default to English
\ifac@mainset\relax\else
\PassOptionsToPackage{main=english}{babel}%
\PassOptionsToPackage{pdflang=en}{hyperref}
@@ -383,14 +383,13 @@
%%%%%%%%%%%% Font related %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\RequirePackage[T1,\ac@TtwoA,\ac@LGR,\ac@Tfive]{fontenc}% T2A to support Cyrillic (w/o babel warning); LGR - Greek; T5 - Vietnamese
-
-\ifpdftex
+\ifpdftex % moved fontenc 31 Jan 2021
\ifac@pdfaone
\pdfminorversion=4 % for pdf/a-1 need version 4, not 7
\else
\pdfminorversion=7 % this selection is not essential.
\fi
+ \RequirePackage[T1,\ac@TtwoA,\ac@LGR,\ac@Tfive]{fontenc}% T2A to support Cyrillic (w/o babel warning); LGR - Greek; T5 - Vietnamese
\RequirePackage[utf8]{inputenc} % for backward compatibility with pre-2018 LaTeX distributions
\else
\ifluatex
@@ -706,7 +705,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}
+ \RequirePackage[]{newtxtext}% will lose some accented characters this way ... better to use fontspec
\RequirePackage[varqu,varl]{inconsolata}% sans typewriter font
\RequirePackage[]{newtxmath}
\fi
@@ -761,7 +760,7 @@
\SetSymbolFont{largesymbols}{sansbold}{LMX}{ntxexx}{b}{n}% added 25 Jan 2021
\SetSymbolFont{largesymbolsTXA}{sansbold}{U}{ntxexa}{b}{n}% added 25 Jan 2021
\SetSymbolFont{operators}{sansbold}{\encodingdefault}{\sfdefault}{\bfdefault}{n}
-\SetMathAlphabet{\mathsf}{sansbold}{\encodingdefault}{\sfdefault}{b}{it}
+\SetMathAlphabet{\mathsf}{sansbold}{\encodingdefault}{\sfdefault}{b}{n}% changed from it 31 Jan 2021, \mathsf is upright.
% Nice solution from DPC to prevent aux file errors (due to active characters from babel) when switching from pdflatex to lualatex.
@@ -1506,7 +1505,7 @@
\SetSymbolFont{largesymbols}{sans}{LMX}{ntxexx}{m}{n}
\SetSymbolFont{largesymbolsTXA}{sans}{U}{ntxexa}{m}{n}
\SetSymbolFont{operators}{sans}{\encodingdefault}{\sfdefault}{m}{n}
-\SetMathAlphabet{\mathsf}{sans}{\encodingdefault}{\sfdefault}{m}{it}
+\SetMathAlphabet{\mathsf}{sans}{\encodingdefault}{\sfdefault}{m}{n}% make upright 31 Jan 2021.
%%%%%%%%%%%%%%%%%% Times-like fonts for specific languages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%