summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/scontents/scontents.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/scontents/scontents.sty')
-rw-r--r--Master/texmf-dist/tex/latex/scontents/scontents.sty28
1 files changed, 21 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/scontents/scontents.sty b/Master/texmf-dist/tex/latex/scontents/scontents.sty
index af503554a91..90c73f93acd 100644
--- a/Master/texmf-dist/tex/latex/scontents/scontents.sty
+++ b/Master/texmf-dist/tex/latex/scontents/scontents.sty
@@ -6,13 +6,13 @@
%%
%% scontents.dtx (with options: `loader,latex')
%%
-%% Copyright (C) 2019-2022 by Pablo González L <pablgonz@educarchile.cl>
+%% Copyright (C) 2019-2024 by Pablo González L <pablgonz@educarchile.cl>
%%
%% This work may be distributed and/or modified under the conditions of the
%% LaTeX Project Public License, either version 1.3c of this license or (at
%% your option) any later version. The latest version of this license is in
%%
-%% http://www.latex-project.org/lppl.txt
+%% https://www.latex-project.org/lppl.txt
%%
%% and version 1.3c or later is part of all distributions of LaTeX version
%% 2005/12/01 or later.
@@ -27,10 +27,18 @@
%% t-scontents.mkiv and
%% scontents-code.tex.
%%
-\def\ScontentsFileDate{2022-04-04}%
-\def\ScontentsFileVersion{2.0}%
+\def\ScontentsFileDate{2024-06-14}%
+\def\ScontentsFileVersion{2.1}%
\def\ScontentsFileDescription{Stores LaTeX contents in memory or files}%
-\RequirePackage{l3keys2e}[2020/02/08]
+\IfFormatAtLeastTF { 2022-06-01 }
+ { }
+ {
+ \RequirePackage{l3keys2e}[2020/02/08]
+ \PackageWarning { scontents }
+ {
+ The next update removes compatibility with versions prior to 2024.
+ }
+ }
\ProvidesExplPackage
{scontents} {\ScontentsFileDate} {\ScontentsFileVersion} {\ScontentsFileDescription}
\tl_new:N \g__scontents_end_verbatimsc_tl
@@ -55,7 +63,11 @@
{#1} % LaTeX
\keys_define:nn { scontents }
{ verb-font .initial:n = \ttfamily }
-\ProcessKeysOptions { scontents }
+\IfFormatAtLeastTF { 2022-06-01 }
+ {
+ \ProcessKeyOptions [ scontents ]
+ }
+ { \ProcessKeysOptions { scontents } }
\NewDocumentCommand \newenvsc { m O{} }
{
\cs_if_exist:cTF { #1 }
@@ -89,6 +101,8 @@
{ \__scontents_foreachsc_internal:nn {#1} {#2} }
\NewDocumentCommand \typestored { o m }
{ \__scontents_typestored_internal:nn {#1} {#2} }
+\NewDocumentCommand \mergesc { o m }
+ { \__scontents_mergesc_internal:nn {#1} {#2} }
\use:x
{
\cs_new_protected:Npn \exp_not:N \__scontents_xverb:w
@@ -112,7 +126,7 @@
\NewExpandableDocumentCommand \countsc { m }
{ \seq_count:c { g__scontents_name_#1_seq } }
\NewDocumentCommand \cleanseqsc { m }
- { \seq_clear_new:c { g__scontents_name_#1_seq } }
+ { \seq_gclear_new:c { g__scontents_name_#1_seq } }
\endinput
%%
%% End of file `scontents.sty'.