summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-10-03 21:09:28 +0000
committerKarl Berry <karl@freefriends.org>2019-10-03 21:09:28 +0000
commit25aff3bb866d4722d9372cacffcb1bc0cb6afabc (patch)
tree69d44b6c3f5ec343aa1bfd3dc737b3b03d2fbf2b /Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx
parentc855cf241a4beeea9508caf359f9090c6419cf8f (diff)
knowledge (3oct19)
git-svn-id: svn://tug.org/texlive/trunk@52273 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx')
-rw-r--r--Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx15
1 files changed, 14 insertions, 1 deletions
diff --git a/Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx b/Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx
index af2d372a40d..dc0f0deed7c 100644
--- a/Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx
+++ b/Master/texmf-dist/source/latex/knowledge/knowledge-utils.dtx
@@ -523,6 +523,18 @@
%
% \subsection{References}
%
+% This is an old part of the code which is difficult to read.
+% It should probably be cleaned.
+%
+% When using \cs{\cell_new_type:nnn}, a new name space is created,
+% in which can be stored information. The first parameter is the name space. The second
+% is the description (expl3 style) of the parameters defining an entry, and the third is the
+% string of character (that can use the arguments defined) used to address this space.
+% For instance \verb|\cell_new_type:nnn{carots}{nn}{K@ROT:{#1}{#2}}|
+% define a cell type named `carot' that is indexed by two parameters.
+% In particular, it defines the macro \cs{\carot:Nnn} that takes a token, and parameters, that executes the
+% token with as first parameter the token identifying the location of the carot.
+% For instance, \verb|\carot_at:Nnn\show{A}{B}| will display the content of the carot defined by the parameters A and B.
% \begin{macrocode}
\cs_new:Nn\cell_new_type:nnn
{
@@ -532,7 +544,8 @@
{\exp_not:n{\exp_after:wN\exp_args:Nc\exp_after:wN}
##1 \exp_not:c{#1_id_b:#2}}
}
-
+% \end{macrocode}
+% \begin{macrocode}
\cs_new:Nn\cell_specialize:nnn
{\cs_new:cpx{#1_#2_id:#3}
{\exp_not:c{#1_id:n#3}{#2}}