summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-06 21:32:34 +0000
committerKarl Berry <karl@freefriends.org>2020-03-06 21:32:34 +0000
commit1dae86987b4152b234ab39938157bb6a078b4852 (patch)
treecc9580a69acdf690cb5f30c0fddfae604d7a96cb /Master/texmf-dist/source/latex/l3kernel/l3text.dtx
parent994560f76edc0ba77542b37a69a0f7e2de8733a1 (diff)
l3 (6mar20)
git-svn-id: svn://tug.org/texlive/trunk@54131 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3text.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3kernel/l3text.dtx32
1 files changed, 31 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3text.dtx b/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
index 01af5e5c49d..8d06641d956 100644
--- a/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
+++ b/Master/texmf-dist/source/latex/l3kernel/l3text.dtx
@@ -43,7 +43,7 @@
% }^^A
% }
%
-% \date{Released 2020-03-03}
+% \date{Released 2020-03-06}
%
% \maketitle
%
@@ -180,6 +180,36 @@
% \end{itemize}
% \end{function}
%
+% \subsection{Removing formatting from text}
+%
+% \begin{function}[rEXP, added = 2020-03-05]{\text_purify:n}
+% \begin{syntax}
+% \cs{text_purify:n} \Arg{text}
+% \end{syntax}
+% Takes user input \meta{text} and expands as described for
+% \cs{text_expand:n}, then removes all functions from the resulting
+% text. Math mode material (as delimited by pairs given in
+% \cs{l_text_math_delims_tl} or as the argument to commands listed in
+% \cs{l_text_math_arg_tl}) is left contained in a pair of |$| delimiters.
+% Non-expandable functions present in the \meta{text} must either have a
+% defined equivalent (see \cs{text_declare_purify_equivalent:Nn}) or will
+% be removed from the result. Implicit tokens are converted to their
+% explicit equivalent.
+% \end{function}
+%
+% \begin{function}[added = 2020-03-05]
+% {
+% \text_declare_purify_equivalent:Nn ,
+% \text_declare_purify_equivalent:Nx
+% }
+% \begin{syntax}
+% \cs{text_declare_purify_equivalent:Nn} \meta{cmd} \Arg{replacement}
+% \end{syntax}
+% Declares that the \meta{replacement} tokens should be used whenever the
+% \meta{cmd} (a single token) is encountered. The \meta{replacement} tokens
+% should be expandable.
+% \end{function}
+%
% \subsection{Control variables}
%
% \begin{variable}{\l_text_accents_tl}