summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/asmejour
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-27 20:55:16 +0000
committerKarl Berry <karl@freefriends.org>2019-05-27 20:55:16 +0000
commitb0167c50d0281faddeb893289371d006f65693cc (patch)
tree4692164ee3f553f9e19a33d136abe8c3a9d152e8 /Master/texmf-dist/tex/latex/asmejour
parentd2e278139abfbc492dcd7dc8bed5266b9ac25413 (diff)
asmejour (27may19)
git-svn-id: svn://tug.org/texlive/trunk@51233 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/asmejour')
-rw-r--r--Master/texmf-dist/tex/latex/asmejour/asmejour.cls34
1 files changed, 24 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/asmejour/asmejour.cls b/Master/texmf-dist/tex/latex/asmejour/asmejour.cls
index 28409c63cac..5cb23c787c9 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.02 dated 2019/05/22.
+%% This file is version 1.03 dated 2019/05/26.
%%
%% Author: John H. Lienhard V
%% Department of Mechanical Engineering
@@ -52,7 +52,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{asmejour}[2019/05/22 asmejour paper format]
+\ProvidesClass{asmejour}[2019/05/26 asmejour paper format]
\LoadClass[twoside,9pt,twocolumn]{extarticle}
@@ -64,6 +64,7 @@
\setboolean{DefaultSups}{true}
\newboolean{lineno}
+\setboolean{lineno}{false}
\RequirePackage{kvoptions}
\RequirePackage{kvsetkeys}
@@ -112,7 +113,7 @@
\DeclareOption{nocopyright}{%
\AtBeginDocument{\fancypagestyle{title}{%
\fancyhf{}
- \fancyfoot[RO]{\large\sffamily PREPRINT FOR REVIEW \bfseries / \thepage}
+ \fancyfoot[RO]{\large\sffamily \@PreprintString\ \bfseries / \@PaperNumber\thepage}
\fancyfoot[LO]{\large\bfseries\sffamily Journal of \@JourName}
\fancyfoot[CO]{}
}
@@ -137,6 +138,7 @@
\ProcessOptions \relax
+
%%%%%%%%%%%%% end options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[paperheight=285.7mm, paperwidth=215.9mm, left=21.1mm, right=21.1mm, top=15.9mm, bottom = 24mm, footskip=8mm]{geometry}
@@ -151,6 +153,7 @@
\RequirePackage{graphicx}
\RequirePackage[hyperref,fixpdftex,dvipsnames,svgnames,x11names]{xcolor}
\RequirePackage{xparse}
+\RequirePackage{metalogo,hologo} % Access various LaTeX logos if needed
%%%%%%%%%%%%%%%% Table related %%%%%%%%
@@ -214,10 +217,14 @@
\renewcommand{\linenumberfont}{\normalfont\footnotesize\color{red}}
\AtBeginDocument{\linenumbers}
}{%
- \relax%
+ \RequirePackage{balance}% balance is NOT compatible with lineno
}
+\providecommand{\@LN@col}[1]{\relax}
+\providecommand{\@LN}[2]{\relax}
+\providecommand{\balance}{\relax}% balance is NOT compatible with lineno
%% 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)}{}{}
@@ -235,6 +242,12 @@
}
\providecommand\@PaperYear{\the\year}
+\def\@PreprintString{PREPRINT FOR REVIEW}
+\newcommand{\PreprintString}[1]{\gdef\@PreprintString{#1}}
+
+\newcommand{\PaperNumber}[1]{\gdef\@PaperNumber{#1-}}
+\providecommand\@PaperNumber{\relax}
+
%%%%%%
\RequirePackage{fancyhdr}
@@ -245,15 +258,15 @@
\renewcommand{\footrulewidth}{0pt}
\fancyfoot[RE]{\large\bfseries\sffamily Transactions of the ASME}
\fancyfoot[LO]{\large\bfseries\sffamily Journal of \@JourName}
-\fancyfoot[RO]{\large\sffamily PREPRINT FOR REVIEW \bfseries / \thepage}
-\fancyfoot[LE]{\large\sffamily {\bfseries \thepage\ /} PREPRINT FOR REVIEW}
+\fancyfoot[RO]{\large\sffamily \@PreprintString\ \bfseries / \@PaperNumber\thepage}
+\fancyfoot[LE]{\large\sffamily {\bfseries \@PaperNumber\thepage\ /} \@PreprintString\ }
\fancypagestyle{title}{%
\fancyhf{} % clear all header and footer fields
\renewcommand{\headrulewidth}{0pt}
\renewcommand{\footrulewidth}{0pt}
-\fancyfoot[RO]{\large\sffamily PREPRINT FOR REVIEW \bfseries / \thepage}
+\fancyfoot[RO]{\large\sffamily \@PreprintString\ \bfseries / \thepage}
\fancyfoot[LO]{\large\bfseries\sffamily Journal of \@JourName}
\fancyfoot[CO]{\large\bfseries\sffamily Copyright \textcopyright\ \@PaperYear\ by ASME}
}
@@ -300,8 +313,8 @@
\titleformat{\subsubsection}[runin]{\itshape}{\thesubsubsection}{1em}{}[.]
\titlespacing\section{0pt}{14pt plus 3pt minus 2pt}{3pt plus 2pt minus 1pt}
-\titlespacing{\subsection}{\parindent}{14pt plus 3pt minus 2pt}{0.5em}
-\titlespacing{\subsubsection}{\parindent}{14pt plus 3pt minus 2pt}{0.5em}
+\titlespacing{\subsection}{\parindent}{12pt plus 3pt minus 2pt}{0.5em}
+\titlespacing{\subsubsection}{\parindent}{12pt plus 3pt minus 2pt}{0.5em}
%% ASME style does not seem to go lower than third level heading, so ...
%% ....putting \paragraph into \subsubsection settings.
@@ -413,7 +426,8 @@
%% If the second argument of \entry is omitted, a bold section heading is produced, e.g. \entry{Greek Letters}
\DeclareDocumentCommand{\entry}{m g}{%
\IfNoValueTF{#2}{%
- \item[\bfseries#1\hfill]\bigskip\hphantom{M}\smallskip%
+ \bigskip
+ \item[\bfseries#1\hfill]\hphantom{x}\par\smallskip% % ASME is probably closer to \medskip here
}{%
\item[\hfill#1${} = {}$]#2%
\settowidth\@widest{#1${} = {}$}%