diff options
author | Karl Berry <karl@freefriends.org> | 2019-07-02 21:03:06 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-07-02 21:03:06 +0000 |
commit | 6cd9cb9b90a640486b1e6cf9bf4385e1622dc621 (patch) | |
tree | 55b66dec7d3519db5b1b299ba0ae90aa4fe2714d /Master/texmf-dist/doc/latex/l3kernel/l3prefixes.tex | |
parent | 0eeaf7545f37a529bbc7549c23ec0f2160e509e0 (diff) |
l3 (2jul19)
git-svn-id: svn://tug.org/texlive/trunk@51534 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/l3kernel/l3prefixes.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/l3kernel/l3prefixes.tex | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/l3kernel/l3prefixes.tex b/Master/texmf-dist/doc/latex/l3kernel/l3prefixes.tex new file mode 100644 index 00000000000..06b58ea6606 --- /dev/null +++ b/Master/texmf-dist/doc/latex/l3kernel/l3prefixes.tex @@ -0,0 +1,83 @@ +\iffalse meta-comment + +File:l3prefixes.tex + +Copyright (C) 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 +license or (at your option) any later version. The latest version +of this license is in the file + + https://www.latex-project.org/lppl.txt + +This file is part of the "l3kernel bundle" (The Work in LPPL) +and all files in that bundle must be distributed together. + +The released version of this bundle is available from CTAN. + +----------------------------------------------------------------------- + +The development version of the bundle can be found at + + https://github.com/latex3/latex3 + +for those people who are interested. + +\fi + +\documentclass{article} +\usepackage{expl3} +\usepackage{array} +\usepackage{booktabs} +\usepackage{longtable} +\ExplSyntaxOn +\cs_new_protected:Npn \__prefix_readi:w #1 " #2 " #3 \q_stop + { + \quark_if_nil:nTF {#2} + { \__prefix_readii:w #1 \q_stop } + { \__prefix_readi:w #1 {#2} #3 \q_stop } + } +\cs_new_protected:Npn \__prefix_readii:w #1 , #2 , #3 , #4 \q_stop + { \__prefix_readiii:nnw {#1} {#3} #2 , \q_stop } +\cs_new_protected:Npn \__prefix_readiii:nnw #1 #2 #3 , #4 \q_stop + { + \tl_put_right:Nn \l_tmpb_tl { #1 & #3 & #2 \\ } + \tl_if_blank:nF {#4} + { \clist_map_inline:nn {#4} { \tl_put_right:Nn \l_tmpb_tl { & ##1 \\ } } } + } +\ior_new:N \l_tmpa_ior +\ior_open:Nn \l_tmpa_ior { l3prefixes.csv } +\ior_get:NN \l_tmpa_ior \l_tmpa_tl % Throw away +\cs_new_protected:Npn \PrintTable + { + \tl_set:Nn \l_tmpb_tl + { + \begin { longtable } { @{} *{2}{>{\ttfamily}l} l @{} } + \toprule + \multicolumn{1}{@{}l}{Prefix} + & \multicolumn{1}{l@{}}{Module} + & Registrant \\ + \midrule + \endhead + \bottomrule + \endfoot + } + \ior_map_inline:Nn \l_tmpa_ior + { \__prefix_readi:w ##1 " \q_nil " \q_stop } + \tl_put_right:Nn \l_tmpb_tl { \end { longtable } } + \tl_replace_all:Nnn \l_tmpb_tl { LaTeX3 } { \LaTeX3 } + \tl_use:N \l_tmpb_tl + } +\ExplSyntaxOff +\begin{document} + +This file lists the prefixes which have been registered with the \LaTeX{} +team for use in \textsf{expl3} code. Programmers are invited to register their +(public) prefix use by contacting the team. We recommend that short prefixes +are avoided as there are a limited number of these very general names available. +The file \texttt{l3prefixes.csv} contains more details on each module, for +example any information on source repository or issue tracker. + +\PrintTable +\end{document}
\ No newline at end of file |