\iffalse meta-comment

File:l3prefixes.tex

Copyright (C) 2019,2021 The LaTeX 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{array}
\usepackage{booktabs}
\usepackage{longtable}
\ExplSyntaxOn
\tl_new:N \l__prefix_table_tl
\tl_new:N \l__prefix_tmp_tl
\ior_new:N \g__prefix_ior
\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__prefix_table_tl { #1 & #3 & #2 \\ }
    \tl_if_blank:nF {#4}
      { \clist_map_inline:nn {#4} { \tl_put_right:Nn \l__prefix_table_tl { & ##1 \\ } } }
  }
\ior_open:Nn \g__prefix_ior { l3prefixes.csv }
\ior_get:NN \g__prefix_ior \l__prefix_tmp_tl % Throw away
\cs_new_protected:Npn \PrintTable
  {
    \tl_set:Nn \l__prefix_table_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 \g__prefix_ior
      { \__prefix_readi:w ##1 " \q_nil " \q_stop }
    \tl_put_right:Nn \l__prefix_table_tl { \end { longtable } }
    \tl_replace_all:Nnn \l__prefix_table_tl { LaTeX3 } { \LaTeX3 }
    \tl_use:N \l__prefix_table_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 at
\begin{quote}
  \texttt{modules@latex-project.org}
\end{quote}
with the relevant information for the \texttt{.csv} file, i.e.,
\textit{Prefix, Module or package, Registrant, Homepage, Source repository, Issue tracker}.


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}
