[latex3-commits] [git/LaTeX3-latex3-latex3] skip: Keep a copy of \skip_split_finite_else_action:nnNN for xor [ci skip] (1bbda7f)

Joseph Wright joseph.wright at morningstar2.co.uk
Thu Feb 28 08:25:58 CET 2019


Repository : https://github.com/latex3/latex3
On branch  : skip
Link       : https://github.com/latex3/latex3/commit/1bbda7f70c6f480e152e5d16ec0ba3cb6bd7f901

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

commit 1bbda7f70c6f480e152e5d16ec0ba3cb6bd7f901
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Feb 28 07:25:58 2019 +0000

    Keep a copy of \skip_split_finite_else_action:nnNN for xor [ci skip]


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

1bbda7f70c6f480e152e5d16ec0ba3cb6bd7f901
 xpackages/xor/xo-page.dtx |   16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/xpackages/xor/xo-page.dtx b/xpackages/xor/xo-page.dtx
index 329b331..bfd1362 100644
--- a/xpackages/xor/xo-page.dtx
+++ b/xpackages/xor/xo-page.dtx
@@ -1,7 +1,7 @@
 % \iffalse
 %% File xo-page.dtx (C) Copyright 1999-2000 Frank Mittelbach, David Carlisle, Chris Rowley
 %%                  (C) Copyright 2001,2004-2009 Frank Mittelbach, The LaTeX3 Project
-%%                  (C) Copyright 2010-2012,2014 The LaTeX3 Project
+%%                  (C) Copyright 2010-2012,2014,2019 The LaTeX3 Project
 %%
 %% It may be distributed and/or modified under the conditions of the
 %% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -292,7 +292,19 @@
     {Only~ finite~ minus~ or~ plus~ parts~ are~ allowed~ for~ this~ key.}
   }
 }
-
+\cs_new_protected:Npn \skip_split_finite_else_action:nnNN
+  {
+     \skip_if_finite:nTF {#1}
+       {
+         #3 = \tex_gluestretch:D #1 \scan_stop:
+         #4 = \tex_glueshrink:D #1 \scan_stop:
+       }
+       {
+         #3 = \c_zero_skip
+         #4 = \c_zero_skip
+         #2
+       }
+  }
 
 
 \DeclareTemplateCode{pagesetup2}{std}{0}{





More information about the latex3-commits mailing list