Skip to content

Commit

Permalink
Document the initialization of KPathSea
Browse files Browse the repository at this point in the history
  • Loading branch information
Witiko committed Mar 31, 2023
1 parent fac64c2 commit e8bcaf3
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion markdown.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -1112,6 +1112,14 @@ local md5 = require("md5")
% \begin{macrocode}
local kpse
(function()
% \end{macrocode}
% \begin{markdown}
%
% If KPathSea has not been loaded before or if we are using the `texlua`
% interpreter of LUa\TeX, configure KPathSea on top of loading it.
%
% \end{markdown}
% \begin{macrocode}
local should_initialize = package.loaded.kpse == nil
or tex.initialize ~= nil
local ran_ok
Expand Down Expand Up @@ -27714,7 +27722,14 @@ local lfs = require("lfs")
if options.cacheDir and not lfs.isdir(options.cacheDir) then
assert(lfs.mkdir(options["cacheDir"]))
end

% \end{macrocode}
% \begin{markdown}
%
% If KPathSea has not been loaded before or if we are using the `texlua`
% interpreter of LUa\TeX, configure KPathSea on top of loading it.
%
% \end{markdown}
% \begin{macrocode}
local should_initialize = package.loaded.kpse == nil
or tex.initialize ~= nil
local ran_ok, kpse = pcall(require, "kpse")
Expand Down

0 comments on commit e8bcaf3

Please sign in to comment.