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

sile-typesetter / sile / 7246678005

18 Dec 2023 10:19AM UTC coverage: 67.096% (-7.5%) from 74.62%
7246678005

push

github

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

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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

10583 of 15773 relevant lines covered (67.1%)

3150.6 hits per line

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

85.71
/packages/raiselower/init.lua
1
local base = require("packages.base")
14✔
2

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

6
local function raise (height, content)
7
  SILE.typesetter:pushHbox({
22✔
8
    outputYourself = function (_, typesetter, _)
9
      typesetter.frame:advancePageDirection(-height)
22✔
10
    end
11
  })
12
  SILE.process(content)
11✔
13
  SILE.typesetter:pushHbox({
22✔
14
    outputYourself = function (_, typesetter, _)
15
      if (type(typesetter.state.cursorY)) == "table" then
11✔
16
        typesetter.state.cursorY = typesetter.state.cursorY.length
×
17
      end
18
      typesetter.frame:advancePageDirection(height)
11✔
19
    end
20
  })
21
end
22

23
function package:registerCommands ()
14✔
24

25
  self:registerCommand("raise", function (options, content)
32✔
26
    local height = SU.cast("measurement", options.height)
11✔
27
    raise(height:absolute(), content)
22✔
28
  end, "Raises the contents of the command by the amount specified in the <height> option")
27✔
29

30
  self:registerCommand("lower", function (options, content)
32✔
31
    local height = SU.cast("measurement", options.height)
×
32
    raise(-height:absolute(), content)
×
33
  end, "Lowers the contents of the command by the amount specified in the <height> option")
16✔
34

35
end
36

37
package.documentation = [[
38
\begin{document}
39
If you don’t want your images, rules, or text to be placed along the baseline, you can use the \autodoc:package{raiselower} package to move them up and down.
40

41
It provides two simple commands, \autodoc:command{\raise} and \autodoc:command{\lower}, which both take a \autodoc:parameter{height=<dimension>} parameter.
42
They will respectively raise or lower their argument by the given height.
43
The raised or lowered content will not alter the height or depth of the line.
44

45
Here is some text raised by \raise[height=3pt]{three points}; here is some text lowered by \lower[height=4pt]{four points}.
46

47
The previous paragraph was generated by:
48

49
\begin[type=autodoc:codeblock]{raw}
50
Here is some text raised by \raise[height=3pt]{three points}; here is some text lowered by \lower[height=4pt]{four points}.
51
\end{raw}
52
\end{document}
53
]]
14✔
54

55
return package
14✔
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