diff options
Diffstat (limited to 'macros/latex/contrib/asmeconf/asmeconf.cls')
-rw-r--r-- | macros/latex/contrib/asmeconf/asmeconf.cls | 68 |
1 files changed, 37 insertions, 31 deletions
diff --git a/macros/latex/contrib/asmeconf/asmeconf.cls b/macros/latex/contrib/asmeconf/asmeconf.cls index 0eda4a2701..4f2d8f3d42 100644 --- a/macros/latex/contrib/asmeconf/asmeconf.cls +++ b/macros/latex/contrib/asmeconf/asmeconf.cls @@ -5,9 +5,9 @@ %% %% Please note that ASME's journals follow specifications different from ASME conference papers. %% -%% This file is version 1.15 dated 2020/01/24. - \def\versionno{1.15} - \def\versiondate{2020/01/24\space} +%% This file is version 1.16 dated 2020/02/28. + \def\versionno{1.16} + \def\versiondate{2020/02/28\space} %% %% Author: John H. Lienhard V %% Department of Mechanical Engineering @@ -49,7 +49,7 @@ %% %% LICENSE: %% -%% Copyright (c) 2019 John H. Lienhard +%% Copyright (c) 2020 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, @@ -89,7 +89,7 @@ \RequirePackage{kvoptions} -%\RequirePackage{kvsetkeys} +%\RequirePackage{kvsetkeys} % already loaded by kvoptions \SetupKeyvalOptions{ family=asmeconf, prefix=asmeconf@, @@ -190,7 +190,7 @@ \RequirePackage{graphicx} \RequirePackage[hyperref,fixpdftex,dvipsnames,svgnames,x11names]{xcolor} \RequirePackage{xparse} -\RequirePackage{comment} +%\RequirePackage{comment} % user may load this in preamble if desired. %%%%%%%%%%%%%%%%%%%%%%%% @@ -243,7 +243,7 @@ %% This provides sans serif italic and sans serif bold italic math. -%% It's intended only for use in the figure captions and section heading (recommend \bm{..} elsewhere). +%% It's intended only for use in the figure captions and section headings (recommend \bm{..} elsewhere). \DeclareMathVersion{sansbold} \SetSymbolFont{letters}{sansbold}{OML}{ntxsfmi}{b}{it} \SetSymbolFont{lettersA}{sansbold}{U}{ntxsfmia}{b}{it} @@ -360,16 +360,22 @@ \urlstyle{same} % don't switch to typewriter font -\RequirePackage{doi} % provides hyperlinks for doi in bibliography +\RequirePackage{doi} % provides line breaking for doi hyperlinks in bibliography \renewcommand{\doitext}{DOI } % change the default value, {doi:}, to this per ASME specification \RequirePackage{bookmark} % improves handling of pdf bookmarks %% Since \bm may be useful in headings, this fix will reduce frequency with which -%% alternate pdfstrings must be given in revised section command as \section[pdfstring]{texstring} +%% alternate pdfstrings must be given in revised section command as \section[pdfstring]{texstring} \pdfstringdefDisableCommands{% \def\bm#1#{\relax}% } +%% Let's disable \( and \) in pdf bookmarks, 28/2/20 +\pdfstringdefDisableCommands{% + \def\({\relax}% + \def\){\relax}% +} + %% Let's also make sure \NoCaseChange in section headings won't break pdf bookmarks \pdfstringdefDisableCommands{% \let\NoCaseChange\relax% @@ -383,35 +389,35 @@ %% Let's make sure footnotes in section headings don't break pdf bookmarks. \RequirePackage{etoolbox} \robustify{\footnote} +% \patchcmd{\section}{\sectionmark}{\let\footnote\@gobble\sectionmark}{}{} <== not really needed in this context 28/2/20 \pdfstringdefDisableCommands{% \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 -\RequirePackage{xpatch} -\xpatchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\footnote}{}{} -\xpatchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\eqref}{}{} %% correct 24 Jan 2020 +% +\patchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\footnote}{}{} +\patchcmd{\@uclcnotmath}{\@nonchangecase\ref}{\@nonchangecase\ref\@nonchangecase\eqref}{}{} %% corrected 24 Jan 2020 %%% 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 %%% errors when macros are in section titles. -%%% There should not be errors for $$, \cite, \ref, \label, \footnote, or \bm with current construction. +%%% There should not be errors for $, \cite, \ref, \eqref, \label, \footnote, \NoCaseChange, or \bm with current constructions. \let\svsection\section \RenewDocumentCommand{\section}{s o m}{% \IfBooleanTF {#1} - {\svsection*{#3}\phantomsection + {\svsection*{#3}\phantomsection% {\IfNoValueTF {#2} - {\addcontentsline{toc}{section}{#3} } - {\addcontentsline{toc}{section}{#2} } - } - } + {\addcontentsline{toc}{section}{#3}} + {\addcontentsline{toc}{section}{#2}}% removed trailing space 28/2/20 + }% + }% {\IfNoValueTF {#2} {\svsection{#3}} - {\svsection[#2]{#3}} - } + {\svsection[#2]{#3}}% + }% } %%%%%%%%%%%%% Line numbering and balancing columns on last page %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -482,7 +488,7 @@ }{% \item[#1\hfill]#2% \@itempenalty=-\@lowpenalty% - } + }% } \DeclareDocumentEnvironment{nomenclature}{O{2em} O{\nomname}}{% @@ -491,13 +497,13 @@ \section*{#2} \raggedright \begin{list}{}{% - \setlength{\itemsep}{0pt} - \setlength{\parsep}{\itemsep} + \setlength{\itemsep}{0pt}% + \setlength{\parsep}{\itemsep}% \setlength{\labelsep}{1em}% \setlength{\labelwidth}{\nomenwidth}% \setlength{\leftmargin}{\labelwidth}% \addtolength{\leftmargin}{\labelsep}% - \setlength\savitemsep\itemsep + \setlength\savitemsep\itemsep% }% }{\end{list}} @@ -637,13 +643,13 @@ \DeclareDocumentCommand{\CorrespondingAuthor}{m g}{% \global\CAtrue% \IfNoValueTF{#2}{% - \gdef\@CAsep{\relax} - \gdef\@CAemail{\relax} + \gdef\@CAsep{\relax}% + \gdef\@CAemail{\relax}% }{% - \gdef\@CAsep{:\space} - \gdef\@CAemail{#2} - } - \renewcommand*{\thefootnote}{\fnsymbol{footnote}} + \gdef\@CAsep{:\space}% + \gdef\@CAemail{#2}% + }% + \renewcommand*{\thefootnote}{\fnsymbol{footnote}}% \ignorespaces#1\ignorespaces\footnotemark[1]% } |