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

sile-typesetter / sile / 7242393151

18 Dec 2023 01:24AM UTC coverage: 68.08% (-6.5%) from 74.62%
7242393151

Pull #1940

github

web-flow
chore(deps): Bump actions/upload-artifact from 3 to 4

Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #1940: chore(deps): Bump actions/upload-artifact from 3 to 4

10743 of 15780 relevant lines covered (68.08%)

6752.38 hits per line

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

50.0
/packages/rebox/init.lua
1
local base = require("packages.base")
4✔
2

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

6
function package:registerCommands ()
4✔
7

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

22
end
23

24
package.documentation = [[
25
\begin{document}
26
This package provides the \autodoc:command{\rebox} command, which allows you to lie to SILE about the size of content.
27
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}.
28

29
For example:
30

31
\begin[type=autodoc:codeblock]{raw}
32
Hello \rebox[width=0pt]{world}overprint.
33

34
Look I’m not \rebox[phantom=true]{here}!
35
\end{raw}
36

37
\begin{autodoc:example}
38
Hello \rebox[width=0pt]{world}overprint.
39

40
Look I’m not \rebox[phantom=true]{here}!
41
\end{autodoc:example}
42
\end{document}
43
]]
4✔
44

45
return package
4✔
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