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

sile-typesetter / sile / 11170735472

03 Oct 2024 10:32PM UTC coverage: 58.612% (-4.5%) from 63.103%
11170735472

push

github

web-flow
Merge bcab25790 into 783083345

15 of 64 new or added lines in 5 files covered. (23.44%)

828 existing lines in 41 files now uncovered.

10478 of 17877 relevant lines covered (58.61%)

2029.7 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