• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sile-typesetter / sile / 9400954821

06 Jun 2024 11:12AM UTC coverage: 61.625% (-11.6%) from 73.209%
9400954821

push

github

web-flow
Merge pull request #2041 from alerque/keep-space-after-envs

2 of 30 new or added lines in 2 files covered. (6.67%)

1933 existing lines in 67 files now uncovered.

10613 of 17222 relevant lines covered (61.62%)

2870.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/ifattop/init.lua
UNCOV
1
local base = require("packages.base")
×
2

UNCOV
3
local package = pl.class(base)
×
UNCOV
4
package._name = "ifattop"
×
5

UNCOV
6
function package:registerCommands ()
×
UNCOV
7
   self:registerCommand("ifattop", function (_, content)
×
UNCOV
8
      SILE.typesetter:leaveHmode()
×
UNCOV
9
      if #SILE.typesetter.state.outputQueue == 0 then
×
UNCOV
10
         SILE.process(content)
×
11
      end
12
   end)
13

UNCOV
14
   self:registerCommand("ifnotattop", function (_, content)
×
UNCOV
15
      SILE.typesetter:leaveHmode()
×
UNCOV
16
      if #SILE.typesetter.state.outputQueue ~= 0 then
×
UNCOV
17
         SILE.process(content)
×
18
      end
19
   end)
20
end
21

22
package.documentation = [[
23
\begin{document}
24
This package provides two commands: \autodoc:command{\ifattop} and \autodoc:command{\ifnotattop}.
25
The argument of the command is processed only if the typesetter is at the top of a frame or is not at the top of a frame respectively.
26
\end{document}
UNCOV
27
]]
×
28

UNCOV
29
return package
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc