summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/showkerning/showkerning.sty
blob: 94bb18df31479257a930ef0ddffcddbdf211e0d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% Copyright (c) 2022-2023 Thomas Kelkel kelkel@emaileon.de

% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any later
% version. The latest version of this license is in

%    http://www.latex-project.org/lppl.txt

% and version 1.3c or later is part of all distributions of
% LaTeX version 2009/09/24 or later.

\ProvidesPackage{showkerning}[2023/07/08 v0.3 Showing kerns in a document]
\RequirePackage{ifluatex,luatexbase}

\ifluatex
    \directlua{require ( "showkerning.lua" )}

    \DeclareOption{ontop}{\directlua{showkerning_on_top()}}
    \ProcessOptions
\else
    \errhelp{Compile with LuaLaTeX to be able to use the "showkerning" package.}
    \errmessage{Package "showkerning" error: This package requires LuaLaTeX!}
\fi