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

sile-typesetter / sile / 11645827362

02 Nov 2024 09:08PM UTC coverage: 54.19% (-15.2%) from 69.34%
11645827362

push

github

web-flow
Merge pull request #2151 from Omikhleia/math-more-fixes-and-features

Math more fixes and features

103 of 208 new or added lines in 4 files covered. (49.52%)

2652 existing lines in 91 files now uncovered.

9816 of 18114 relevant lines covered (54.19%)

671.83 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