summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/l3kernel/l3luatex.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/l3kernel/l3luatex.sty')
-rw-r--r--Master/texmf-dist/tex/latex/l3kernel/l3luatex.sty44
1 files changed, 35 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/l3kernel/l3luatex.sty b/Master/texmf-dist/tex/latex/l3kernel/l3luatex.sty
index cbecb20c036..7494acf9185 100644
--- a/Master/texmf-dist/tex/latex/l3kernel/l3luatex.sty
+++ b/Master/texmf-dist/tex/latex/l3kernel/l3luatex.sty
@@ -46,11 +46,17 @@
%%
%% -----------------------------------------------------------------------
\RequirePackage{l3names}
-\GetIdInfo$Id: l3luatex.dtx 2798 2011-09-10 15:42:13Z will $
+\GetIdInfo$Id: l3luatex.dtx 2995 2011-11-23 16:15:19Z bruno $
{L3 Experimental LuaTeX-specific functions}
\ProvidesExplPackage
{\ExplFileName}{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
\package_check_loaded_expl:
+\msg_kernel_new:nnnn { luatex } { bad-engine }
+ { LuaTeX~engine~not~in~use!~Ignoring~#1. }
+ {
+ The~feature~you~are~using~is~only~available\
+ with~the~luaTeX~engine.~LaTeX3~ignored~`#1#2'.
+ }
\luatex_if_engine:TF
{
\cs_new_eq:NN \lua_now:x \luatex_directlua:D
@@ -59,13 +65,13 @@
{
\cs_new:Npn \lua_now:x #1
{
- \msg_expandable_error:n
- { LuaTeX~ engine~ not~ in~ use!~ Ignoring~ \lua_now:x. }
+ \msg_expandable_kernel_error:nnn
+ { luatex } { bad-engine } { \lua_now:x }
}
\cs_new_protected:Npn \lua_shipout_x:n #1
{
- \msg_expandable_error:n
- { LuaTeX~ engine~ not~ in~ use!~ Ignoring~ \lua_shipout_x:n. }
+ \msg_expandable_kernel_error:nnn
+ { luatex } { bad-engine } { \lua_shipout_x:n }
}
}
\cs_new:Npn \lua_now:n #1
@@ -97,7 +103,13 @@
}
}
\luatex_if_engine:F
- { \cs_set_protected_nopar:Npn \cctab_new:N #1 { \lua_wrong_engine: } }
+ {
+ \cs_set_protected_nopar:Npn \cctab_new:N #1
+ {
+ \msg_kernel_error:nnx { luatex } { bad-engine }
+ { \exp_not:N \cctab_new:N }
+ }
+ }
\luatex_if_engine:T
{
\cs_set_protected_nopar:Npn \cctab_new:N #1
@@ -126,8 +138,16 @@
}
\luatex_if_engine:F
{
- \cs_set_protected_nopar:Npn \cctab_begin:N #1 { \lua_wrong_engine: }
- \cs_set_protected_nopar:Npn \cctab_end: { \lua_wrong_engine: }
+ \cs_set_protected_nopar:Npn \cctab_begin:N #1
+ {
+ \msg_kernel_error:nnxx { luatex } { bad-engine }
+ { \exp_not:N \cctab_begin:N } {#1}
+ }
+ \cs_set_protected_nopar:Npn \cctab_end:
+ {
+ \msg_kernel_error:nnx { luatex } { bad-engine }
+ { \exp_not:N \cctab_end: }
+ }
}
\luatex_if_engine:T
{
@@ -143,7 +163,13 @@
\group_end:
}
\luatex_if_engine:F
- { \cs_set_protected_nopar:Npn \cctab_gset:Nn #1#2 { \lua_wrong_engine: } }
+ {
+ \cs_set_protected_nopar:Npn \cctab_gset:Nn #1#2
+ {
+ \msg_kernel_error:nnxx { luatex } { bad-engine }
+ { \exp_not:N \cctab_gset:Nn } { #1 {#2} }
+ }
+ }
\luatex_if_engine:T
{
\cctab_new:N \c_code_cctab