diff options
Diffstat (limited to 'macros/luatex/latex/spacekern/spacekern.sty')
-rw-r--r-- | macros/luatex/latex/spacekern/spacekern.sty | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/macros/luatex/latex/spacekern/spacekern.sty b/macros/luatex/latex/spacekern/spacekern.sty new file mode 100644 index 0000000000..4b6e37db2d --- /dev/null +++ b/macros/luatex/latex/spacekern/spacekern.sty @@ -0,0 +1,33 @@ +% 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{spacekern}[2022/05/01 v0.1 Preserve kerning against non-breakable space] +\RequirePackage{ifluatex,luatexbase} + +\ifluatex + \directlua{require ( "spacekern.lua" )} + + \def\redef{true} + + \DeclareOption{noiwkern}{\directlua{spacekern_no_iw_kern()}} + \DeclareOption{noredef}{\def\redef{false}} + \ProcessOptions + + \def\semicolon{\nobreak\hspace{0em};} + \def\tmp{true} + \ifx\tmp\redef + \def\,{;;;} + \fi +\else + \errhelp{Compile with LuaLaTeX to be able to use the "spacekern" package.} + \errmessage{Package "spacekern" error: This package requires LuaLaTeX!} +\fi
\ No newline at end of file |