[latex3-commits] [latex3/xfrac] main: Further prep. work for 2024-06-01 kernel (4981e33)

github at latex-project.org github at latex-project.org
Tue Feb 13 18:41:45 CET 2024


Repository : https://github.com/latex3/xfrac
On branch  : main
Link       : https://github.com/latex3/xfrac/commit/4981e336b45b8102c351a56e1a2c84a9e0d3c25e

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

commit 4981e336b45b8102c351a56e1a2c84a9e0d3c25e
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Feb 13 17:41:45 2024 +0000

    Further prep. work for 2024-06-01 kernel


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

4981e336b45b8102c351a56e1a2c84a9e0d3c25e
 xfrac.dtx | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/xfrac.dtx b/xfrac.dtx
index e727bca..6c7726c 100644
--- a/xfrac.dtx
+++ b/xfrac.dtx
@@ -983,19 +983,24 @@
 % separate template for each. You already saw the \enquote{text}
 % template, and here is the \enquote{math} template.
 %    \begin{macrocode}
-\DeclareRestrictedTemplate { xfrac } { text } { math }
+\IfFormatAtLeastTF { 2024-06-01 }
   {
-    numerator-font      = \number \fam ,
-    slash-symbol        = /            ,
-    slash-symbol-font   = \number \fam ,
-    denominator-font    = \number \fam ,
-    scale-factor        = 0.7          ,
-    scale-relative      = false        ,
-    scaling             = true         ,
-    denominator-bot-sep = 0 pt         ,
-    math-mode           = true         ,
-    phantom             = ( % )
+    \DeclareTemplateCopy { xfrac } { math } { text }
+    \EditTemplateDefaults { xfrac } { math }
   }
+  { \DeclareRestrictedTemplate { xfrac } { text } { math } }
+    {
+      numerator-font      = \number \fam ,
+      slash-symbol        = /            ,
+      slash-symbol-font   = \number \fam ,
+      denominator-font    = \number \fam ,
+      scale-factor        = 0.7          ,
+      scale-relative      = false        ,
+      scaling             = true         ,
+      denominator-bot-sep = 0 pt         ,
+      math-mode           = true         ,
+      phantom             = ( % )
+    }
 %    \end{macrocode}
 %
 %\subsection{The standard instances}





More information about the latex3-commits mailing list.