Skip to content

Commit

Permalink
Add \sys_if_format_context: to l3candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Jul 21, 2022
1 parent 5d07474 commit fa9d14c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions l3kernel/l3candidates.dtx
Expand Up @@ -503,6 +503,13 @@
% releases of \XeTeX{}.
% \end{function}
%
% \begin{function}[added = 2022-07-21, EXP, pTF]{\sys_if_format_context:},
% \begin{syntax}
% \cs{sys_if_format_context:TF} \Arg{true code} \Arg{false code}
% \end{syntax}
% Conditionals which give the current \TeX{} format.
% \end{function}
%
% \section{Additions to \pkg{l3tl}}
%
% \begin{function}[EXP, added = 2017-07-15]
Expand Down Expand Up @@ -1391,6 +1398,13 @@
% \end{macrocode}
% \end{variable}
%
% \begin{macro}[pTF, EXP]{\sys_if_format_context:}
% \begin{macrocode}
\@@_const:nn { sys_if_format_context }
{ \cs_if_exist_p:N \contextversion }
% \end{macrocode}
% \end{macro}
%
% \subsection{Additions to \pkg{l3file}}
%
% \begin{macrocode}
Expand Down
8 changes: 4 additions & 4 deletions l3kernel/l3file.dtx
Expand Up @@ -981,7 +981,7 @@
\int_step_inline:nnn
{ 0 }
{
\cs_if_exist:NTF \normalend
\sys_if_format_context:TF
{ \tex_count:D 38 ~ }
{
\tex_count:D 16 ~ %
Expand Down Expand Up @@ -1061,7 +1061,7 @@
% \begin{macrocode}
\exp_args:NNf \cs_new_protected:Npn \@@_new:N
{ \exp_args:NNc \exp_after:wN \exp_stop_f: { newread } }
\cs_if_exist:NT \normalend
\sys_if_format_context:T
{
\cs_new_eq:NN \@@_new_aux:N \@@_new:N
\cs_set_protected:Npn \@@_new:N #1
Expand Down Expand Up @@ -1441,7 +1441,7 @@
\int_step_inline:nnn
{ 0 }
{
\cs_if_exist:NTF \normalend
\sys_if_format_context:TF
{ \tex_count:D 39 ~ }
{
\tex_count:D 17 ~
Expand Down Expand Up @@ -1505,7 +1505,7 @@
% \begin{macrocode}
\exp_args:NNf \cs_new_protected:Npn \@@_new:N
{ \exp_args:NNc \exp_after:wN \exp_stop_f: { newwrite } }
\cs_if_exist:NT \normalend
\sys_if_format_context:T
{
\cs_new_eq:NN \@@_new_aux:N \@@_new:N
\cs_set_protected:Npn \@@_new:N #1
Expand Down

0 comments on commit fa9d14c

Please sign in to comment.