| 1 |
% Copyright (c) 2022-2023 Thomas Kelkel [email protected] |
| 2 |
|
| 3 |
% This file may be distributed and/or modified under the |
| 4 |
% conditions of the LaTeX Project Public License, either |
| 5 |
% version 1.3c of this license or (at your option) any later |
| 6 |
% version. The latest version of this license is in |
| 7 |
|
| 8 |
% http://www.latex-project.org/lppl.txt |
| 9 |
|
| 10 |
% and version 1.3c or later is part of all distributions of |
| 11 |
% LaTeX version 2009/09/24 or later. |
| 12 |
|
| 13 |
\ProvidesPackage{spacekern}[2023/07/08 v0.3 Kerning between words and against space] |
| 14 |
\RequirePackage{ifluatex,luatexbase} |
| 15 |
|
| 16 |
\ifluatex |
| 17 |
\directlua{require ( "spacekern.lua" )} |
| 18 |
|
| 19 |
\def\redef{true} |
| 20 |
|
| 21 |
\DeclareOption{noiwkern}{\directlua{spacekern_no_iw_kern()}} |
| 22 |
\DeclareOption{noredef}{\def\redef{false}} |
| 23 |
\ProcessOptions |
| 24 |
|
| 25 |
\def\semicolon{\nobreak\hspace{0em};} |
| 26 |
\def\tmp{true} |
| 27 |
\ifx\tmp\redef |
| 28 |
\def\,{;;;} |
| 29 |
\fi |
| 30 |
\else |
| 31 |
\errhelp{Compile with LuaLaTeX to be able to use the "spacekern" package.} |
| 32 |
\errmessage{Package "spacekern" error: This package requires LuaLaTeX!} |
| 33 |
\fi |