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

sile-typesetter / sile / 9304049654

30 May 2024 02:12PM UTC coverage: 60.021% (-14.7%) from 74.707%
9304049654

push

github

web-flow
Merge 1a26b4f22 into a1fd105f8

6743 of 12900 new or added lines in 186 files covered. (52.27%)

347 existing lines in 49 files now uncovered.

10311 of 17179 relevant lines covered (60.02%)

3307.34 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 ()
×
NEW
7
   self:registerCommand("ifattop", function (_, content)
×
NEW
8
      SILE.typesetter:leaveHmode()
×
NEW
9
      if #SILE.typesetter.state.outputQueue == 0 then
×
NEW
10
         SILE.process(content)
×
11
      end
12
   end)
13

NEW
14
   self:registerCommand("ifnotattop", function (_, content)
×
NEW
15
      SILE.typesetter:leaveHmode()
×
NEW
16
      if #SILE.typesetter.state.outputQueue ~= 0 then
×
NEW
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