summaryrefslogtreecommitdiff
path: root/macros/luatex/latex/showhyphenation/showhyphenation.sty
blob: 866d39c9db8c27e69fee415cecb1d197f0d33376 (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
25
26
27
28
% Copyright (c) 2022 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{showhyphenation}[2022/04/17 v0.1 Show hyphenation points]
\RequirePackage{ifluatex,luatexbase}

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

    \DeclareOption{make}{\directlua{showhyphenation_make()}}
    \DeclareOption{ontop}{\directlua{showhyphenation_on_top()}}
    \DeclareOption{lime}{\directlua{showhyphenation_lime()}}
    \ProcessOptions

    \directlua{showhyphenation_start()}
\else
    \errhelp{Compile with LuaLaTeX to be able to use the "showhyphenation" package.}
    \errmessage{Package "showhyphenation" error: This package requires LuaLaTeX!}
\fi