diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/asmejour/asmewide_example/asmewide.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/asmejour/asmewide_example/asmewide.sty | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/asmejour/asmewide_example/asmewide.sty b/Master/texmf-dist/doc/latex/asmejour/asmewide_example/asmewide.sty index 949da71852f..58872909090 100644 --- a/Master/texmf-dist/doc/latex/asmejour/asmewide_example/asmewide.sty +++ b/Master/texmf-dist/doc/latex/asmejour/asmewide_example/asmewide.sty @@ -1,7 +1,7 @@ %% %% This file is `asmewide.sty'. %% -%% Copyright (c) 2022 John H. Lienhard. Use under the MIT license: https://ctan.org/license/mit +%% Copyright (c) 2025 John H. Lienhard. Use under the MIT license: https://ctan.org/license/mit %% %% Defines a widetext environment within ASME dimensions %% Use for material spanning both columns (i.e., for wide equations) @@ -12,24 +12,25 @@ %% The modifications made were: follow ASME dimensions; remove revtex-specific macros; update/rework commands; adapt to most recent cuted.sty %% (Leaders don't vanish at pagebreaks, as in revtex, evidently related to how cuted.sty handles strip construction. Have coded around this.) %% -%% Required packages: cuted.sty v2.0 and flushend.sty v4.0 [2021/10/04] or later; asmeconf.cls or asmejour.cls w/their required packages, esp. etoolbox, xparse +%% Required packages: cuted.sty v2.0 and flushend.sty v4.0 [2021/10/04] or later; +%% asmeconf.cls or asmejour.cls w/their required packages, esp. etoolbox, xparse %% -%% The widetext environment can only appear once per page. It clashes with floats and footnotes, and often requires some hand-fitting of page layouts. +%% The widetext environment can only appear once per page. It clashes with floats and footnotes, +%% and often requires some hand-fitting of page layouts. %% -%% USAGE: * \begin{widetext} ...wide material here... \end{widetext} +%% USAGE: \begin{widetext} ...wide material here... \end{widetext} %% OPTIONAL ARGUMENTS: -%% * \begin{widetext[N] .. changes upper/lower separation of wide material from default Xpt to Npt (X = 5pt asmeconf.cls; X = 10pt asmejour.cls) -%% * \begin{widetext}[][tbn]: t = top line only; b = bottom line only; n = no lines. BOTH arguments are REQUIRED, even if first is left empty. +%% \begin{widetext[N] ...change upper/lower separation of wide material from default Xpt to Npt (X = 5pt asmeconf.cls; X = 10pt asmejour.cls) +%% \begin{widetext}[][tbn]: t = top line only; b = bottom line only; n = no lines. BOTH arguments are REQUIRED, even if first is left empty. %% %% asmewide,sty supports one option, [raggedend], which suppresses final page column balancing: \usepackage[raggedend]{asmewide} -%% NB: remove the option [balance] when using [raggedend]! %% %% NB: the strip environment from cuted is incompatible with the [lineno] option to asmeconf and asmejour! %% \NeedsTeXFormat{LaTeX2e} -\def\AW@versionno{1.1} -\def\AW@versiondate{2022/06/26\space} +\def\AW@versionno{1.11} +\def\AW@versiondate{2025/01/22\space} \ProvidesPackage{asmewide}[\AW@versiondate\space v\AW@versionno\space ASME wide equation environment (JHL)] \DeclareOption{raggedend}{% Added 2022/05/08, to suppressed flushend on last page, if desired @@ -46,7 +47,7 @@ \@ifpackagelater{cuted}{2021/10/04}{% \relax }{% - \PackageError{asmewide}{The asmewide package has detected that the version of cuted.sty you are using is too old to be compatible. You can get an update at https://ctan.org/pkg/sttools}{You need at least v2.0 of cuted.sty to run asmewide.sty. Without it, you will get more errors. See discussion of installation process here: https://github.com/John02139/asmeconf/issues/4}% + \PackageError{asmewide}{Your version of cuted.sty is too old. You can get an update at https://ctan.org/pkg/cuted}{You need an up-to-date version of cuted.sty to run asmewide.sty.}% } \RequirePackage{flushend}[2021/10/04] @@ -60,7 +61,8 @@ \newbox\@TopLeader \newbox\@BottomLeader \newlength\savparskip \setlength\savparskip{\parskip} -\newlength\@RuleWidth \AtBeginDocument{\setlength\@RuleWidth{\dimexpr(\columnwidth+0.5\columnsep-1pt)}} +\newlength\@RuleWidth +\appto\maketitle{\setlength\@RuleWidth{\dimexpr(\columnwidth+0.5\columnsep-1pt)}}% do this after entering twocolumn, in \maketitle. 2025/01/22 \newlength\@TopSpace \setlength\@TopSpace{0ex} \newlength\@TopCorr \setlength\@TopCorr{-5pt} \def\@asmeindent{3.5mm} @@ -129,7 +131,7 @@ \setlength\parindent{\@asmeindent}% strip makes parindent zero; enlarge for ASME \setlength\parskip{\savparskip}% strip makes \parskip zero w/o glue; set to match main text }{% - \end{strip}\ignorespaces + \end{strip}\ignorespacesafterend } %% \endinput |