[latex3-commits] [latex3/xfrac] main: Drop template collection in xfrac (3d64d91)

github at latex-project.org github at latex-project.org
Tue Feb 13 13:59:32 CET 2024


Repository : https://github.com/latex3/xfrac
On branch  : main
Link       : https://github.com/latex3/xfrac/commit/3d64d91cf8c39ea51fa221f7a7439d220f6b51b1

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

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

    Drop template collection in xfrac


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

3d64d91cf8c39ea51fa221f7a7439d220f6b51b1
 l3packages/xfrac/xfrac.dtx | 47 +---------------------------------------------
 1 file changed, 1 insertion(+), 46 deletions(-)

diff --git a/l3packages/xfrac/xfrac.dtx b/l3packages/xfrac/xfrac.dtx
index 7e27f1e..6cdf0da 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.