| 1 |
%% luakeys-debug.sty |
| 2 |
%% Copyright 2021-2025 Josef Friedrich |
| 3 |
% |
| 4 |
% This work may be distributed and/or modified under the |
| 5 |
% conditions of the LaTeX Project Public License, either version 1.3c |
| 6 |
% of this license or (at your option) any later version. |
| 7 |
% The latest version of this license is in |
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
% and version 1.3c or later is part of all distributions of LaTeX |
| 10 |
% version 2008/05/04 or later. |
| 11 |
% |
| 12 |
% This work has the LPPL maintenance status `maintained'. |
| 13 |
% |
| 14 |
% The Current Maintainer of this work is Josef Friedrich. |
| 15 |
% |
| 16 |
% This work consists of the files luakeys.lua, luakeys.sty, luakeys.tex |
| 17 |
% luakeys-debug.sty and luakeys-debug.tex. |
| 18 |
|
| 19 |
\NeedsTeXFormat{LaTeX2e} |
| 20 |
\ProvidesPackage{luakeys-debug}[2025/07/19 v0.17.0 Debug package for luakeys.] |
| 21 |
|
| 22 |
\directlua |
| 23 |
{ |
| 24 |
luakeys = require('luakeys')() |
| 25 |
if lparse == nil then |
| 26 |
lparse = require('lparse') |
| 27 |
end |
| 28 |
} |
| 29 |
|
| 30 |
\def\luakeysdebug% |
| 31 |
{% |
| 32 |
\directlua% |
| 33 |
{ |
| 34 |
local oarg, marg = lparse.scan('o v') |
| 35 |
luakeys.print_debug(marg, oarg, true) |
| 36 |
}% |
| 37 |
} |