[latex3-commits] [latex3/latex3] templates: Drop template collection in xfrac (2358c9e2b)

github at latex-project.org github at latex-project.org
Tue Jan 30 14:27:04 CET 2024


Repository : https://github.com/latex3/latex3
On branch  : templates
Link       : https://github.com/latex3/latex3/commit/2358c9e2bb846cf9be0f1a9228be2d62bcde05cb

>---------------------------------------------------------------

commit 2358c9e2bb846cf9be0f1a9228be2d62bcde05cb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Nov 14 06:16:24 2023 +0000

    Drop template collection in xfrac


>---------------------------------------------------------------

2358c9e2bb846cf9be0f1a9228be2d62bcde05cb
 l3packages/CHANGELOG.md    |  3 +++
 l3packages/xfrac/xfrac.dtx | 47 +---------------------------------------------
 2 files changed, 4 insertions(+), 46 deletions(-)

diff --git a/l3packages/CHANGELOG.md b/l3packages/CHANGELOG.md
index f79987a0d..8bb102a1b 100644
--- a/l3packages/CHANGELOG.md
+++ b/l3packages/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Removed
+- Collection `plainmath` from `xfrac`
+
 ## [2023-10-10]
 
 ### Changed
diff --git a/l3packages/xfrac/xfrac.dtx b/l3packages/xfrac/xfrac.dtx
index 7e27f1ee3..6cdf0da84 100644
--- a/l3packages/xfrac/xfrac.dtx
+++ b/l3packages/xfrac/xfrac.dtx
@@ -275,37 +275,6 @@
 % That is, if \cs{DeclareMathAlphabet} is unbeknownst to you, then
 % just don't go there.
 %
-% Another example: If we want \cs{sfrac} to produce split fractions
-% without doing anything at all, we can choose the collection
-% |plainmath|, which is defined as
-% \begin{verbatim}
-%   \DeclareCollectionInstance{plainmath}{xfrac}{mathdefault}{math}
-%     {
-%       denominator-bot-sep = 0 pt,
-%       numerator-bot-sep   = 0 pt,
-%       numerator-top-sep   = \c_max_dim,
-%       scaling             = false,
-%       slash-right-mkern   = 0 mu,
-%       slash-left-mkern    = 0 mu
-%     }
-% \end{verbatim}
-% This creates an alternative version of the instance |mathdefault|
-% with settings as specified by the keys. In the default math setup
-% \key{numerator-top-sep} is set to 0~pt, and here we set
-% \key{numerator-bot-sep} to 0~pt as well, so in order to avoid
-% over-specification (and an error message) we must set
-% \key{numerator-top-sep} to \cs{c_max_dim}. We activate (obeying
-% normal scoping rules) it with:
-% \begin{verbatim}
-%   \UseCollection{xfrac}{plainmath}
-% \end{verbatim}
-% Then |$\sfrac{8}{13}$| produces^^A
-% \begingroup
-%   \UseCollection{xfrac}{plainmath}
-%   $\sfrac{8}{13}$ and just typing |$8/13$| gives the same result:
-%   $8/13$.
-% \endgroup
-%
 % \section{The Template Interface}
 %
 % \begin{TemplateInterfaceDescription}{xfrac}
@@ -995,26 +964,12 @@
 %    \end{macrocode}
 %
 %  The default \enquote{math(s)} instance. We annot set the
-%  |numerator-top-sep| in the restricted template above as it clashes
-%  with the requirements of the |plainmath| collection which comes next.
+%  |numerator-top-sep| in the restricted template above.
 %    \begin{macrocode}
 \DeclareInstance { xfrac } { mathdefault } { math }
   { numerator-top-sep = 0pt }
 %    \end{macrocode}
 %
-%    \begin{macrocode}
-\DeclareCollectionInstance { plainmath } { xfrac } { mathdefault } { math }
-  {
-    numerator-bot-sep   = 0 pt       ,
-    numerator-top-sep   = \c_max_dim ,
-    scale-factor        = 1          ,
-    scale-relative      = false      ,
-    scaling             = true       ,
-    slash-right-mkern   = 0 mu       ,
-    slash-left-mkern    = 0 mu
-  }
-%    \end{macrocode}
-%
 % Default Computer Modern setup. Far from optimal, but better than
 % nothing.
 %    \begin{macrocode}





More information about the latex3-commits mailing list.