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

sile-typesetter / sile / 11574339945

29 Oct 2024 12:58PM UTC coverage: 34.309% (-33.9%) from 68.22%
11574339945

push

github

web-flow
Merge pull request #2142 from Omikhleia/fix-math-fraction-padding

fix(math): Fractions must have padding to avoid visual confusion

0 of 26 new or added lines in 1 file covered. (0.0%)

5779 existing lines in 69 files now uncovered.

6014 of 17529 relevant lines covered (34.31%)

4588.59 hits per line

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

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

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

UNCOV
6
function package:registerCommands ()
×
UNCOV
7
   self:registerCommand("rebox", function (options, content)
×
UNCOV
8
      local hbox, hlist = SILE.typesetter:makeHbox(content)
×
UNCOV
9
      if options.width then
×
UNCOV
10
         hbox.width = SILE.types.length(options.width)
×
11
      end
UNCOV
12
      if options.height then
×
UNCOV
13
         hbox.height = SILE.types.length(options.height)
×
14
      end
UNCOV
15
      if options.depth then
×
UNCOV
16
         hbox.depth = SILE.types.length(options.depth)
×
17
      end
UNCOV
18
      if options.phantom then
×
19
         hbox.outputYourself = function (node, typesetter, line)
20
            typesetter.frame:advanceWritingDirection(node:scaledWidth(line))
×
21
         end
22
      end
UNCOV
23
      SILE.typesetter:pushHbox(hbox)
×
UNCOV
24
      SILE.typesetter:pushHlist(hlist)
×
UNCOV
25
   end, "Place the output within a hbox of specified width, height, depth and visibility")
×
26
end
27

28
package.documentation = [[
29
\begin{document}
30
This package provides the \autodoc:command{\rebox} command, which allows you to lie to SILE about the size of content.
31
You can change the \autodoc:parameter{width}, \autodoc:parameter{height}, or \autodoc:parameter{depth} of your content with the respective parameters, or make it invisible by setting the \autodoc:parameter{phantom} parameter to \code{true}.
32

33
For example:
34

35
\begin[type=autodoc:codeblock]{raw}
36
Hello \rebox[width=0pt]{world}overprint.
37

38
Look I’m not \rebox[phantom=true]{here}!
39
\end{raw}
40

41
\begin{autodoc:example}
42
Hello \rebox[width=0pt]{world}overprint.
43

44
Look I’m not \rebox[phantom=true]{here}!
45
\end{autodoc:example}
46
\end{document}
UNCOV
47
]]
×
48

UNCOV
49
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