summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-07-05 19:47:07 +0000
committerKarl Berry <karl@freefriends.org>2022-07-05 19:47:07 +0000
commit8af0b385956b56264d6364b497cb8615e3e29c02 (patch)
tree5b0ed0996838a2b6f984641ed361fbbf314cd0d2 /Master/texmf-dist/tex/latex
parent77e4576e9d8b6998092fda95ff47ee527d0bf865 (diff)
asmeconf (5jul22)
git-svn-id: svn://tug.org/texlive/trunk@63814 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r--Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls28
1 files changed, 22 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls b/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls
index c6a5d4a914a..97b2ce84048 100644
--- a/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls
+++ b/Master/texmf-dist/tex/latex/asmeconf/asmeconf.cls
@@ -5,8 +5,8 @@
%% ASME conference requirements as represented on ASME's conference web pages in 2022.
%%
%% This file's version and date:
- \def\versionno{1.30}
- \def\versiondate{2022/03/14\space}
+ \def\versionno{1.31}
+ \def\versiondate{2022/07/04\space}
%%
%% Author: John H. Lienhard, V
%% Department of Mechanical Engineering
@@ -484,7 +484,12 @@
%% Needs to come before babel messes with captions, to keep uppercase text. 2021/12/25
-\RequirePackage{textcase} %% Allows uppercase titles and captions without errors from math and citations
+\ifx\AddToNoCaseChangeList\@undefined % updated July 3, see https://github.com/John02139/asmeconf/issues/5
+ \RequirePackage{textcase} %% Allows uppercase titles and captions without errors from math and citations
+ \typeout{Asmeconf is loading textcase package.}
+\else
+ \NewCommandCopy{\MakeTextUppercase}{\MakeUppercase}
+\fi
\RequirePackage[labelfont={sf,bf},hypcap=false]{caption}
\RequirePackage[hypcap=false,list=true]{subcaption}
@@ -1061,6 +1066,11 @@
\titleformat{\section}{\mathversion{sansbold}\bfseries\sffamily\raggedright}{\MakeTextUppercase{\appendixname}\ \thesection.}{0.5em}{\MakeTextUppercase}
}
+%% This patches titlesec's unprotected re-definition of \footnote. See discussion here: https://github.com/jbezos/titlesec/issues/48
+%% Without this patch, recent versions of LaTeX will require \protect\footnote in section headings.
+\patchcmd{\ttl@select}{\def\footnote}{\protected\def\footnote}{\typeout{Asmeconf.sty patched titlesec to have protected def of footnote}}{}
+
+
%%%%%%%%%% Hyperref, bookmarks, and PDF/A %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newif\if@asme@pdfmanagement% Thanks to Ulrike Fischer
@@ -1179,12 +1189,18 @@
\def\footnote#1{}%
}
+
%% Let's also add \footnote to the \TextUppercase exception list, so that footnote text won't be capitalized
%% if given in section headings. Ditto for \eqref
%
-\patchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\footnote}{}{}
-\patchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\eqref}{}{} %% corrected 2020/01/24
-
+\ifx\AddToNoCaseChangeList\@undefined % updated July 3, see https://github.com/John02139/asmeconf/issues/5
+ \patchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\footnote}{\typeout{Asmeconf patched textcase nonchangecase to include footnote.}}{}
+ \patchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\eqref}{\typeout{Asmeconf patched textcase nonchangecase to include eqref.}}{} %% corrected 2020/01/24
+\else
+ \AddToNoCaseChangeList{\eqref \footnote}
+\fi
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Create an optional argument for unnumbered sections and set pdf bookmark (thru \addcontentsline).
%%% The optional argument will manually set the pdf bookmark for that section; can be used to avoid hyperref