sile 0.14.8

Simon’s Improved Layout Engine
local base = require("packages.base")

local package = pl.class(base)
package._name = "debug"

function package:registerCommands ()

  self:registerCommand("debug", function (options, _)
    for k, v in pairs(options) do
      SILE.debugFlags[k] = SU.boolean(v, true)
    end
  end)

  self:registerCommand("disable-pushback", function (_, _)
    SILE.typesetter.pushBack = function() end
  end)

end

package.documentation = [[
\begin{document}
This package provides two commands: \autodoc:command{\debug}, which turns on and off SILE’s internal debugging flags (similar to using \code{--debug=...} on the command line), and \autodoc:command{\disable-pushback} which is used by SILE’s developers to turn off the typesetter’s pushback routine, because we don’t really trust it very much.
\end{document}
]]

return package