diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/l3kernel/l3sys.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/l3kernel/l3sys.dtx | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/l3kernel/l3sys.dtx b/Master/texmf-dist/source/latex/l3kernel/l3sys.dtx index a25c0867af0..46263e0b2cd 100644 --- a/Master/texmf-dist/source/latex/l3kernel/l3sys.dtx +++ b/Master/texmf-dist/source/latex/l3kernel/l3sys.dtx @@ -43,7 +43,7 @@ % }^^A % } % -% \date{Released 2022-07-15} +% \date{Released 2022-08-05} % % \maketitle % @@ -290,9 +290,25 @@ % use will be loaded. This command may only be used once. % \end{function} % +% \begin{function}[added = 2022-07-29]{\sys_ensure_backend:} +% \begin{syntax} +% \cs{sys_ensure_backend:} +% \end{syntax} +% Ensures that a backend has been loaded by calling \cs{sys_load_backend:n} +% if required. +% \end{function} +% % \begin{variable}{\c_sys_backend_str} % Set to the name of the backend in use by \cs{sys_load_backend:n} when -% issued. +% issued. Possible values are +% \begin{itemize} +% \item \texttt{pdftex} +% \item \texttt{luatex} +% \item \texttt{xetex} +% \item \texttt{dvips} +% \item \texttt{dvipdfmx} +% \item \texttt{dvisvgm} +% \end{itemize} % \end{variable} % % \begin{function}[added = 2019-09-12]{\sys_load_debug:} @@ -561,6 +577,17 @@ % \end{macro} % \end{macro} % +% \begin{macro}{\sys_ensure_backend:} +% A simple wrapper. +% \begin{macrocode} +\cs_new_protected:Npn \sys_ensure_backend: + { + \str_if_exist:NF \c_sys_backend_str + { \sys_load_backend:n { } } + } +% \end{macrocode} +% \end{macro} +% % \begin{variable}{\g_@@_debug_bool} % \begin{macrocode} \bool_new:N \g_@@_debug_bool |