diff options
author | Norbert Preining <norbert@preining.info> | 2024-02-15 03:01:30 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2024-02-15 03:01:30 +0000 |
commit | 5b6839a58ea5468b40ebd52b579e680b8e62ff13 (patch) | |
tree | 1dfc09f53794115129a07bf566b466cc337606f5 /macros/generic/lt3luabridge | |
parent | a90336c3069c198b41b7b6eb76e3389610ad5eb7 (diff) |
CTAN sync 202402150301
Diffstat (limited to 'macros/generic/lt3luabridge')
-rw-r--r-- | macros/generic/lt3luabridge/docstrip.cfg | 2 | ||||
-rw-r--r-- | macros/generic/lt3luabridge/lt3luabridge.dtx | 44 | ||||
-rw-r--r-- | macros/generic/lt3luabridge/lt3luabridge.pdf | bin | 494475 -> 497075 bytes |
3 files changed, 33 insertions, 13 deletions
diff --git a/macros/generic/lt3luabridge/docstrip.cfg b/macros/generic/lt3luabridge/docstrip.cfg index 4e131f1849..e562506f72 100644 --- a/macros/generic/lt3luabridge/docstrip.cfg +++ b/macros/generic/lt3luabridge/docstrip.cfg @@ -1,6 +1,6 @@ \preamble -Copyright (C) 2016-2022 Vít Novotný +Copyright (C) 2016-2024 Vít Novotný This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c diff --git a/macros/generic/lt3luabridge/lt3luabridge.dtx b/macros/generic/lt3luabridge/lt3luabridge.dtx index 3b9c483ba8..67cc73c738 100644 --- a/macros/generic/lt3luabridge/lt3luabridge.dtx +++ b/macros/generic/lt3luabridge/lt3luabridge.dtx @@ -39,7 +39,7 @@ % } % % \author{^^A -% Vít Novotný\thanks +% Vít Starý Novotný\thanks % {^^A % E-mail: % \href{mailto:witiko@mail.muni.cz} @@ -47,7 +47,7 @@ % }^^A % } % -% \date{Released 2022-10-24} +% \date{Released 2024-02-14} % % \maketitle % @@ -108,6 +108,14 @@ % the \cs{luabridge_now:e} function. % \end{function} % +% \begin{function}[added = 2024-02-14]{\luabridge_tl_set:Nn} +% \begin{syntax} +% \cs{luabridge_tl_set:Nn} \meta{tl var} \Arg{token list} +% \end{syntax} +% Like \cs{lua_now:n} but the result of executing the Lua code is stored in +% \meta{tl var} instead of being inserted into \TeX's input stream. +% \end{function} +% % \section{Setting and getting the method to execute \Lua{} code} % % There are several methods that can be used to execute \Lua{} code. This @@ -286,7 +294,7 @@ \c_luabridge_default_error_output_filename_str } \cs_new:Nn - \luabridge_now:n + \luabridge_tl_set:Nn { \iow_open:NV \g_tmpa_iow @@ -304,7 +312,7 @@ % \begin{macrocode} \tl_set:Nx \l_tmpa_tl - { \tl_to_str:n { #1 } } + { \tl_to_str:n { #2 } } \regex_replace_all:nnN { [\\"] } { \\\0 } @@ -355,9 +363,8 @@ \g_luabridge_helper_script_filename_str } { } - \l_tmpa_tl + #1 { - \l_tmpa_tl } { \msg_error:nn @@ -420,11 +427,11 @@ { \c_luabridge_method_directlua_int } { \cs_new:Nn - \luabridge_now:n + \luabridge_tl_set:Nn { \tl_set:Nn \l_tmpa_tl - { #1 } + { #2 } \tl_set:Nx \l_tmpa_tl { @@ -442,13 +449,26 @@ end~ \exp_not:V \l_tmpa_tl } - \lua_now:V - \l_tmpa_tl + \tl_set:Nf + #1 + { + \lua_now:V + \l_tmpa_tl + } } \cs_generate_variant:Nn \lua_now:n { V } } +\cs_new:Nn + \luabridge_now:n + { + \luabridge_tl_set:Nn + \l_tmpb_tl + { #1 } + \tl_use:N + \l_tmpb_tl + } \cs_new_protected:Npn \luabridgeExecute #1 @@ -472,8 +492,8 @@ \RequirePackage{expl3} \ProvidesExplPackage {lt3luabridge}% - {2022-10-24}% - {2.0.2}% + {2024-02-14}% + {2.1.0}% {An expl3 package that allows you to execute Lua code in LuaTeX or any other TeX engine that exposes the shell} \input lt3luabridge\relax diff --git a/macros/generic/lt3luabridge/lt3luabridge.pdf b/macros/generic/lt3luabridge/lt3luabridge.pdf Binary files differindex 79d59210e7..2972fad79f 100644 --- a/macros/generic/lt3luabridge/lt3luabridge.pdf +++ b/macros/generic/lt3luabridge/lt3luabridge.pdf |