diff options
author | Karl Berry <karl@freefriends.org> | 2020-03-03 22:59:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-03-03 22:59:01 +0000 |
commit | d005e17dc54b5a6e4698a6c7da03825df81181ec (patch) | |
tree | f63f85bb6cb11275329ed3540f20d62e33feae02 /Master | |
parent | 2fc276d60abc3ce08fc60890eede3a70aa5ac031 (diff) |
asmejour (1mar20)
git-svn-id: svn://tug.org/texlive/trunk@54042 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/bibtex/bst/asmejour/asmejour.bst | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/asmejour/README.md | 10 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/asmejour/asmejour-template.pdf | bin | 476955 -> 481258 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex | 30 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/asmejour/asmejour.cls | 53 |
5 files changed, 62 insertions, 38 deletions
diff --git a/Master/texmf-dist/bibtex/bst/asmejour/asmejour.bst b/Master/texmf-dist/bibtex/bst/asmejour/asmejour.bst index 29876b85da2..426add9076d 100644 --- a/Master/texmf-dist/bibtex/bst/asmejour/asmejour.bst +++ b/Master/texmf-dist/bibtex/bst/asmejour/asmejour.bst @@ -26,13 +26,13 @@ % =============================================================== %------------------------------------------------------------------- %% - %% This file is asmejour.bst, version 1.01 dated 2019/05/26. + %% This file is asmejour.bst, version 1.02 dated 2019/12/03. %% %% This file was generated and edited by John Lienhard. %% This file is a derivative work under Clause 6 of the LPPL license. %% %% The generated file and the modifications are based on what ASME is actually putting into - %% published journal papers in early 2019. The modification mainly relate to handling of online + %% published journal papers in early 2019. The modifications mainly relate to handling of online %% information. Details follow. %% %% Added fields: eventdate, urldate, urltype, venue, version, versiontype @@ -40,6 +40,7 @@ %% Added: urlprefix = {}, format.web.urldate, bbl.urldate; urltype field changes "accessed" to something else. %% Added: venue and eventdate to @inproceedings %% Added: format.version to @book, @online, and @manual; text can be changed with versiontype field. + %% Updated: doi url prefix to https://doi.org/ %% %% Remove "emphasize" from journal article, and linked doi (or else url) to journal name (or book title) %% without explicitly showing the urls. The urls may be added to the note = {..} field to display explicitly @@ -762,7 +763,7 @@ FUNCTION {doilink} { "\href{" url * "}{" * swap$ * "}" * } if$ } - { "\href{http://dx.doi.org/" doi * "}{" * swap$ * "}" * } + { "\href{https://doi.org/" doi * "}{" * swap$ * "}" * } if$ } if$ diff --git a/Master/texmf-dist/doc/latex/asmejour/README.md b/Master/texmf-dist/doc/latex/asmejour/README.md index 6c30bc0159e..cc60f3eee62 100644 --- a/Master/texmf-dist/doc/latex/asmejour/README.md +++ b/Master/texmf-dist/doc/latex/asmejour/README.md @@ -1,11 +1,11 @@ #asmejour: A template for ASME journal papers# - Version 1.09 dated 2019/11/07. + Version 1.11 dated 2020/02/29. ####Overview#### This class provides a template to format preprints submitted to ASME journals in the style that - is being used in 2019. + is being used in 2020. This work is not a publication of ASME itself. @@ -57,6 +57,10 @@ ####Change log#### +v1.11: ensure T1 font encoding, utf-8 input, and LuaLaTeX compatibility; edit documentation. + +v1.10: update asmeconf.bst to most recent Crossref standard prefix for doi (https://doi.org/); remove xpatch package from class file; disable \\( and \\) in pdf bookmarks to avoid warnings; adjust \\eqref in bookmarks; edit documentation. + v1.09: adjust nomenclature list; edit language support v1.08: adjust penalties in nomenclature list; fix minor typos in template @@ -81,7 +85,7 @@ v1.00: initial release ####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, diff --git a/Master/texmf-dist/doc/latex/asmejour/asmejour-template.pdf b/Master/texmf-dist/doc/latex/asmejour/asmejour-template.pdf Binary files differindex 69c3bf0361a..9c0a5568ed7 100644 --- a/Master/texmf-dist/doc/latex/asmejour/asmejour-template.pdf +++ b/Master/texmf-dist/doc/latex/asmejour/asmejour-template.pdf diff --git a/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex b/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex index c6ea3b60f0a..2c0941f9839 100644 --- a/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex +++ b/Master/texmf-dist/doc/latex/asmejour/asmejour-template.tex @@ -1,9 +1,9 @@ % !TEX encoding = UTF-8 Unicode %% %% This file is asmejour-template.tex, a template to format papers in the style of ASME journal papers -%% as they are being published in 2019. +%% as they are being published in 2020. %% -%% This file is version 1.09 dated 2019/11/07 +%% This file is version 1.11 dated 2020/02/29 %% %% Author: John H. Lienhard V %% Department of Mechanical Engineering @@ -60,7 +60,7 @@ %% %% LICENSE: %% -%% Copyright (c) 2019 John Lienhard +%% Copyright (c) 2020 John 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, @@ -83,11 +83,8 @@ %% Class options are described above. \documentclass[largesc,upint,varvw,barcolor=Red4,nocopyright,hyphenate,balance,lang-second=french,lang=english]{asmejour} -\pdfminorversion=7 % This selection is not required. - %%%%% FIELDS TO BE COMPLETED FOLLOW %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%% pdf metadata, the user should edit %%%%%%%%%%%%%%%%%% \hypersetup{% pdftitle={ASME Journal Paper Template}, % <=== change to YOUR pdf file title @@ -95,7 +92,6 @@ pdfauthor={John H. Lienhard}, % <=== change to YOUR name[s]!!! } - %%%% Journal name and optional copyright year %%%%%%%%%%%%%% %% Omit "Journal of" @@ -143,12 +139,12 @@ email: lienhard@mit.edu %%% This command must come BEFORE the end of the abstract. %%% If you don't want keywords, delete the command. -\keywords{ASME, Paper, Template, \LaTeX, \hologo{BibTeX}} +\keywords{ASME, Paper, Template, {\upshape\LaTeX}, {\upshape\hologo{BibTeX}}} %% Abstract should be no more than 250 words \begin{abstract} -This paper is an example and template for the {\upshape\texttt{asmejour}} class. Papers typeset in this class will follow ASME journal style for margins, fonts, headings, captions, and reference formats. Standard \LaTeX\ commands are used. The class will lay out the author, title, and abstract in ASME style. The class will produce a pdf file that that includes hyperlinks, bookmarks, and pdf metadata. The class is intended to be used with the {\upshape\texttt{asmejour.bst}} \hologo{BibTeX} style for typesetting references, which is part of this distribution. This style supports hyperlinks and modern reference formats, following current ASME practice. The class may be invoked with several options, most of which address math fonts. The class calls a number of packages, all of which are in \TeX~Live and in CTAN (\href{http://ctan.org}{ctan.org}). The class is compatible with \hologo{pdfLaTeX} or \LuaLaTeX. +This paper is an example and template for the {\upshape\texttt{asmejour}} class. Papers typeset in this class will follow ASME journal style for margins, fonts, headings, captions, and reference formats. Standard {\upshape\LaTeX} commands are used. The class will lay out the author, title, and abstract in ASME style. The class will produce a pdf file that that includes hyperlinks, bookmarks, and pdf metadata. The class is intended to be used with the {\upshape\texttt{asmejour.bst} \hologo{BibTeX}} style for typesetting references, which is part of this distribution. This style supports hyperlinks and modern reference formats, following current ASME practice. The class may be invoked with several options, most of which address math fonts. The class calls a number of packages, all of which are in {\upshape\TeX~Live} and in CTAN (\href{http://ctan.org}{ctan.org}). The class is compatible with {\upshape\hologo{pdfLaTeX}} or {\upshape\hologo{LuaLaTeX}}. \end{abstract} @@ -222,7 +218,7 @@ Section, subsection, and subsubsection headings should be in title case (first l %% captions go below figures \begin{figure} \centering\includegraphics[width=0.7\linewidth]{sample-figure-1.pdf} -\caption{A figure caption with math, $z = (r,\phi)$ \cite{Lienhard2019b}\label{fig:1}} +\caption{A figure caption with math, Eq.~\eqref{eqn:1}: $z = (r,\phi)$ \cite{Lienhard2019b}\label{fig:1}} \end{figure} %%%%%%%%%%%%% end figure %%%%%%%%%%%%%%%%%%% @@ -284,7 +280,7 @@ The \texttt{booktabs} package \cite{fear} is loaded (and customized) to provide Table~\ref{tab:4} shows a table that spans both text columns. Figure~\ref{fig:2} shows a figure spanning both columns. -Text in the figures should be checked for legibility at either single-column width (about 83~mm) or full-column width (about 170~mm). Figure captions should be placed below figures. +Text in the figures should be checked for legibility at either single-column width (about 83~mm) or full-column width (about 170~mm). Figure captions should be placed below figures. Images in figures are handled by the standard \texttt{graphicx} package. Landscape figures and tables may be produced at full-page size by putting \verb|\usepackage[figuresright]{rotating}| in your \texttt{.tex} file's preamble and using the \texttt{sidewaystable*} and \texttt{sidewaysfigure*} environments~\cite{fairbairns}. @@ -336,7 +332,8 @@ Run 12 & 24 & 68.3 \\ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \section{Reference Formatting with \texttt{asmejour.bst}} -The {\upshape\texttt{asmejour.bst}} \hologo{BibTeX} style follows the reference styles observed in ASME journals in 2019. The vast majority of published references are to journal papers and books. Examples for these and many other cases are given in the \texttt{asmejour-sample.bib} file, which is part of this distribution. Nevertheless, a few comments are necessary. +The {\upshape\texttt{asmejour.bst}} \hologo{BibTeX} style follows the reference styles observed in ASME journals in 2019. The vast majority of published references are to journal papers and books. Examples for these and many other cases are given in the \texttt{asmejour-sample.bib} file, which is part of this distribution. Citations and references are managed by the standard \texttt{natbib} package. +Nevertheless, a few comments are necessary. \subsection{Hyperlinked Titles} If an \verb|@article{..| or \verb|@book{..| includes \verb|doi={..}|, the journal title will be hyperlinked to that doi number, and the doi number will not be printed. If no doi is included, but a url is included, then the title will be hyperlinked to that url. To display the doi (or the url when no doi is given), put it into the \verb|note={..}| field: \begin{quote} @@ -414,7 +411,7 @@ q_\textrm{gray} & q_\textrm{int, $T_1$} & q_\textrm{int, $T_m$} & q_\textrm{exa %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% Dealing with complicated math in a section heading: optional argument of \section provides the pdfbookmark -%% without losing characters or producing warnings/errors. Note that bookmark can include simple math. +%% without losing characters or producing warnings/errors. Note that bookmark can include simple math and \eqref{..}. %% %% Newtxmath provides the option for upright Greek letters as \upomega (vs. \omega), etc. %% @@ -554,9 +551,13 @@ If no language option is given, the package defaults to English. The standard ca An example of use is shown in \selectlanguage{french}\appendixname\ \ref{app:fourier}.\selectlanguage{english} +Font encoding is set to T1 with utf-8 input supported: +%% If you have trouble with the next line (or the French text that follows), your file may not be saved in utf-8 format. You can delete these lines to resolve the issue. +\typeout{If you have trouble with the next line, your file may not be saved in utf-8 format. You can delete that line to resolve the issue.} +àáâäæãåā èéęëêēė îïíīįì ôöòóœøōõ ûüùúū çćč ł ñń ßśš ÿ žźż + No effort has been made to support customization of language-specific fonts, although this is possible by modifying the class file (examples are given in the \texttt{newtx} documentation). The bibliography style, \texttt{asmejour.bst}, is designed in English and aimed at \texttt{BibTeX}. Multilingual bibliographies can be supported using \texttt{BibLaTeX}. - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \selectlanguage{french} \section{Joseph Fourier}\label{app:fourier} @@ -573,7 +574,6 @@ Joseph Fourier est connu pour avoir déterminé, par le calcul, la diffusion de \bibliography{asmejour-sample} %% <=== change this to name of your bib file - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% To omit final list of figures and tables, use the class option [nolists] diff --git a/Master/texmf-dist/tex/latex/asmejour/asmejour.cls b/Master/texmf-dist/tex/latex/asmejour/asmejour.cls index 87bd31d3770..ea70605bda7 100644 --- a/Master/texmf-dist/tex/latex/asmejour/asmejour.cls +++ b/Master/texmf-dist/tex/latex/asmejour/asmejour.cls @@ -6,9 +6,9 @@ %% The asmejour.cls file should be used with the files asmejour.bst (for citations) and asmejour-template.tex. %% %% -%% This file is version 1.09 dated 2019/11/07. - \def\versionno{1.09} - \def\versiondate{2019/11/07\space} +%% This file is version 1.11 dated 2020/02/29. + \def\versionno{1.11} + \def\versiondate{2020/02/29\space} %% %% Author: John H. Lienhard V %% Department of Mechanical Engineering @@ -34,7 +34,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, @@ -209,8 +209,17 @@ %%%%%%%% FONT related %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\RequirePackage[T1]{fontenc} + +\RequirePackage{iftex} % check whether pdftex or another engine is used +\ifpdftex + \pdfminorversion=7 % This selection is not required. + \RequirePackage[utf8]{inputenc} % for backward compatibility with pre-2018 distributions +\else + \relax +\fi + \RequirePackage{mathtools} % extends amsmath -\RequirePackage[utf8]{inputenc} % backward compatibility... \RequirePackage[]{babel} \RequirePackage[]{newtxtext} \RequirePackage[varqu,varl]{inconsolata} % sans typewriter font @@ -223,7 +232,7 @@ \RequirePackage{bm} % load after all math to give access to bold math -%% In addition to the word spacing options declared in line 121... +%% In addition to the word spacing options declared in line 163... %% Relative to size9.clo: leading reduced to 10 pt; displayskips made greater \renewcommand\normalsize{% \@setfontsize\normalsize\@ixpt{10\p@}% % <== was \@xipt @@ -274,8 +283,8 @@ %%%%%%%%%%%%%%%%% EQUATION AND LINE NUMBERING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% ASME puts equation tags in blue -\RequirePackage{xpatch} -\xpatchcmd{\tagform@}{(\ignorespaces#1\unskip\@@italiccorr)}{\color{blue}(\ignorespaces#1\unskip\@@italiccorr)}{}{} +\RequirePackage{etoolbox} % dropped xpatch 28/02/20 +\patchcmd{\tagform@}{(\ignorespaces#1\unskip\@@italiccorr)}{\color{blue}(\ignorespaces#1\unskip\@@italiccorr)}{}{} %% Ensure that the current font is used for equation tags, not \normalfont as set by amsmath \def\maketag@@@#1{\hbox{\m@th#1}} @@ -484,7 +493,7 @@ \urlstyle{same} % don't switch to typewriter font -\RequirePackage{doi} % provides hyperlinks for doi in bibliography +\RequirePackage{doi} % supports nasty characters in some doi's \renewcommand{\doitext}{doi:~} % change the default, {doi:}, to this for ASME specification @@ -494,16 +503,26 @@ \def\bm#1#{\relax}% } +%% Let's disable \( and \) in pdf bookmarks, 28/2/20 +\pdfstringdefDisableCommands{% + \def\({\relax}% + \def\){\relax}% +} + %% Let's just remove citations from pdf bookmarks \pdfstringdefDisableCommands{% \def\cite{\@gobble}% } +%% Ensure that tag color does not follow \eqref into bookmarks, 28/2/20 +\pdfstringdefDisableCommands{% + \def\eqref#1{(\ref{#1})}% +} + %% Let's make sure footnotes in section headings don't break pdf bookmarks. -\RequirePackage{etoolbox} \robustify{\footnote} \pdfstringdefDisableCommands{% - \def\footnote#1{}% + \def\footnote#1{}% } %%% Create an optional argument for unnumbered sections and set pdf bookmark (thru \addcontentsline). @@ -513,16 +532,16 @@ \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}}% remove trailing space 28/2/20 + }% } {\IfNoValueTF {#2} {\svsection{#3}} - {\svsection[#2]{#3}} - } + {\svsection[#2]{#3}}% + }% } |