diff options
author | Karl Berry <karl@freefriends.org> | 2017-08-03 21:07:30 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-08-03 21:07:30 +0000 |
commit | ff587f620cc7c6d0068c33b27a8e554bce2b08fe (patch) | |
tree | 0857cebe6e2e1325bb94305516fbf9b6e27326c0 /Master/texmf-dist/tex/latex/spectralsequences/sseqcheckdefinitions.code.tex | |
parent | 29d69088963132c0a036286f984331c74ac99f1a (diff) |
spectralsequences (3aug17)
git-svn-id: svn://tug.org/texlive/trunk@44942 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/spectralsequences/sseqcheckdefinitions.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/spectralsequences/sseqcheckdefinitions.code.tex | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/spectralsequences/sseqcheckdefinitions.code.tex b/Master/texmf-dist/tex/latex/spectralsequences/sseqcheckdefinitions.code.tex index bdbc68f51b5..a9de53c794c 100644 --- a/Master/texmf-dist/tex/latex/spectralsequences/sseqcheckdefinitions.code.tex +++ b/Master/texmf-dist/tex/latex/spectralsequences/sseqcheckdefinitions.code.tex @@ -1,8 +1,8 @@ %% -%% Package: spectralsequences.sty version 1.0 +%% Package: spectralsequences v1.1.0 %% Author: Hood Chatham %% Email: hood@mit.edu -%% Date: 2017-06-18 +%% Date: 2017-08-02 %% License: Latex Project Public License %% %% File: sseqcheckdefinitions.code.tex @@ -15,13 +15,54 @@ \sseq@tempiftrue \begingroup - +\def\sseq@checkprotecteddef#1{\def\sseq@temp{\sseq@checkdef@{#1}}\afterassignment\sseq@temp\protected\long\@xp\def\csname sseq@check@\sseq@macroname#1\endcsname} \def\sseq@checkdef#1{\def\sseq@temp{\sseq@checkdef@{#1}}\afterassignment\sseq@temp\@xp\def\csname sseq@check@\sseq@macroname#1\endcsname} \def\sseq@checkdef@#1{\@xp\ifx\csname sseq@check@\sseq@macroname#1\endcsname#1\else \sseq@tempiffalse \fi} %% +%% sseqmacromakers.code.tex +%% + +\ExplSyntaxOn +% I should work out how old the version of xparse has to be before this breaks, but I'm too lazy. +% It would also be nice if I could figure out how to ensure that my trick of setting \l__xparse_grab_expandably_bool to false works correctly, but this might be difficult +\@ifpackagelater{xparse}{2017/02/08}{ + \sseq@checkprotecteddef \__xparse_grab_u:w #1#2 \__xparse_run_code:{ + \__xparse_grab_u_aux:nnN {#1} {#2} \cs_set_protected_nopar:Npn + } + + \sseq@checkprotecteddef\__xparse_grab_u_aux:nnN #1#2#3 + { + \tl_set:Nn \l__xparse_signature_tl {#2} + \exp_after:wN #3 \l__xparse_fn_tl ##1 #1 + { \__xparse_add_arg:n {##1} } + \l__xparse_fn_tl + } + + + \sseq@checkprotecteddef \__xparse_normalize_type_u:w #1 { + \quark_if_recursion_tail_stop_do:nn {#1} { \__xparse_bad_arg_spec:wn } + \__xparse_normalize_check_lu:N u + \__xparse_add_arg_spec:n { u {#1} } + \int_incr:N \l__xparse_mandatory_args_int + \tl_clear:N \l__xparse_last_delimiters_tl + \__xparse_normalize_arg_spec_loop:n + } + + \ifsseq@tempif + \global\sseq@patchxparseUtrue + \else + %\sseq@warning{fit-patch-failed} + \global\sseq@patchxparseUfalse + \fi + \sseq@tempiftrue +}{} + +\ExplSyntaxOff + +%% %% sseqkeys.code.tex %% |