summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/asmejour
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-23 20:58:23 +0000
committerKarl Berry <karl@freefriends.org>2019-05-23 20:58:23 +0000
commitb096ec118c77e9fb53cdce3f5675580a2d63a4cf (patch)
treeb5b02ad2f75074a0d1722285dea63cfccfb63cf1 /Master/texmf-dist/tex/latex/asmejour
parent55bfed05af10de85f241616c0e36077122dbb991 (diff)
asmejour (23may19)
git-svn-id: svn://tug.org/texlive/trunk@51206 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/asmejour')
-rw-r--r--Master/texmf-dist/tex/latex/asmejour/asmejour.cls61
1 files changed, 43 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/asmejour/asmejour.cls b/Master/texmf-dist/tex/latex/asmejour/asmejour.cls
index 1dfd3152fd4..28409c63cac 100644
--- a/Master/texmf-dist/tex/latex/asmejour/asmejour.cls
+++ b/Master/texmf-dist/tex/latex/asmejour/asmejour.cls
@@ -6,7 +6,7 @@
%% The asmejour.cls file should be used with the files asmejour.bst (for citations) and asmejour-template.tex.
%%
%%
-%% This file is version 1.01 dated 2019/04/28.
+%% This file is version 1.02 dated 2019/05/22.
%%
%% Author: John H. Lienhard V
%% Department of Mechanical Engineering
@@ -20,7 +20,7 @@
%% The Times/Helvetica style fonts are from Michael Sharpe's excellent newtxtext and newtxmath packages.
%% This class is not designed for unicode-math or fontspec.
%%
-%% Options for the class are described on lines 73-123.
+%% Options for the class are described on lines 73-133.
%%
%% The class defines an environment for nomenclature. LaTeX must be run twice to align those columns.
%%
@@ -52,40 +52,48 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{asmejour}[2019/04/28 asmejour paper format]
+\ProvidesClass{asmejour}[2019/05/22 asmejour paper format]
\LoadClass[twoside,9pt,twocolumn]{extarticle}
%%%%%%%%%%%%%% Options for the class %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage{ifthen}
+
\newboolean{DefaultSups}
\setboolean{DefaultSups}{true}
+\newboolean{lineno}
+
\RequirePackage{kvoptions}
\RequirePackage{kvsetkeys}
\SetupKeyvalOptions{
- family=asmeconf,
- prefix=asmeconf@,
+ family=asmejour,
+ prefix=asmejour@,
setkeys=\kvsetkeys,
}
%%% for mathalfa, so we may pass options in this format: mathalfa=cal=euler, mathalfa=frak=boondox
-\define@key{asmeconf}{mathalfa}{%
+\define@key{asmejour}{mathalfa}{%
\PassOptionsToPackage{#1}{mathalfa}%
}
%%% set key [nodefaultsups] to obtain newtx superiors font for footnotes.
-\define@key{asmeconf}{nodefaultsups}[false]{%
+\define@key{asmejour}{nodefaultsups}[false]{%
\setboolean{DefaultSups}{#1}
}
%%% set barcolor= to a value defined by xcolor package
\newcommand\@ColorName{black} % default
-\define@key{asmeconf}{barcolor}[Red4]{%
+\define@key{asmejour}{barcolor}[Red4]{%
\renewcommand\@ColorName{#1}
}
+%%% set key [lineno] to obtain linenumbers.
+\define@key{asmejour}{lineno}[true]{%
+ \setboolean{lineno}{#1}
+}
+
\ProcessKeyvalOptions*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -111,6 +119,7 @@
}
}
+
%% Access many options from newtxmath. See newtxmath documentation for details.
\DeclareOption{upint,smallerops,varvw,varg,slantedGreek,frenchmath,varbb,cmbraces}{\PassOptionsToPackage{}{newtxmath}}
@@ -198,6 +207,22 @@
\renewcommand\Huge{\@setfontsize\Huge{26.5}{26.5}} %... for title font only
+%%%%%%%%%%%%%%%%% LINE AND EQUATION NUMBERING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\ifthenelse{\boolean{lineno}}{%
+ \RequirePackage[switch]{lineno}
+ \renewcommand{\linenumberfont}{\normalfont\footnotesize\color{red}}
+ \AtBeginDocument{\linenumbers}
+ }{%
+ \relax%
+}
+%% ASME page proofs seem to align these at top of baseline, rather than bottom as done here.
+
+%% ASME puts equation tags in blue
+\RequirePackage{xpatch}
+\xpatchcmd{\tagform@}{(\ignorespaces#1\unskip\@@italiccorr)}{\color{blue}(\ignorespaces#1\unskip\@@italiccorr)}{}{}
+
+
%%%%%%%%%%%%%%%%% FOOTER SET UP %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%% footer text names %%%%%%%%%%
@@ -270,18 +295,18 @@
\RequirePackage[raggedright,indentafter]{titlesec}
-\titleformat{\section}{\mathversion{bold}\bfseries\large\raggedright}{\thesection}{0.5em}{}
-\titleformat{\subsection}[runin]{\mathversion{bold}\bfseries}{\thesubsection}{0.5em}{}[.]
+\titleformat{\section}{\mathversion{bold}\bfseries\large\raggedright}{\thesection}{1em}{}
+\titleformat{\subsection}[runin]{\mathversion{bold}\bfseries}{\thesubsection}{1em}{}[.]
+\titleformat{\subsubsection}[runin]{\itshape}{\thesubsubsection}{1em}{}[.]
\titlespacing\section{0pt}{14pt plus 3pt minus 2pt}{3pt plus 2pt minus 1pt}
-\titleformat{\subsection}[runin]{\mathversion{bold}\bfseries}{\thesubsection}{0.5em}{}[.]
-
-%% ASME style does not seem to go lower than subsection, so ...
-%% ....putting \subsubsection and \paragraph into \subsection settings.
-\titleformat{\subsubsection}[runin]{\mathversion{bold}\bfseries}{\thesubsection}{0.5em}{}[.]
-\titleformat{\subsubsection}[runin]{\mathversion{bold}\bfseries}{\thesubsection}{0.5em}{}[.]
-\titleformat{\paragraph}[runin]{\mathversion{bold}\bfseries}{\thesubsection}{0.5em}{}[.]
-\titleformat{\paragraph}[runin]{\mathversion{bold}\bfseries}{\thesubsection}{0.5em}{}[.]
+\titlespacing{\subsection}{\parindent}{14pt plus 3pt minus 2pt}{0.5em}
+\titlespacing{\subsubsection}{\parindent}{14pt plus 3pt minus 2pt}{0.5em}
+
+%% ASME style does not seem to go lower than third level heading, so ...
+%% ....putting \paragraph into \subsubsection settings.
+\titleformat{\paragraph}[runin]{\itshape}{\thesubsubsection}{0.5em}{}[.]
+\titlespacing{\paragraph}{\parindent}{14pt plus 3pt minus 2pt}{0.5em}
%% Special handling of the appendices
%% Assumes that appendices are the last technical content in paper